Browse Source

屏蔽日志

main
haptear 3 years ago
parent
commit
4ffb483022
  1. 6
      luobook/jdapp.js

6
luobook/jdapp.js

@ -225,7 +225,7 @@ function Env(t, e) {
}, t => e(t))) : this.isNode() && ( }, t => e(t))) : this.isNode() && (
this.initGotEnv(t), this.initGotEnv(t),
// 打印请求todo // 打印请求todo
console.log("GET请求: "+JSON.stringify(t)), //console.log("GET请求: "+JSON.stringify(t)),
this.got(t).on("redirect", (t, e) => { this.got(t).on("redirect", (t, e) => {
try { try {
var i=0; var i=0;
@ -295,7 +295,7 @@ function Env(t, e) {
...i ...i
} = t; } = t;
// 打印请求todo // 打印请求todo
console.log("POST请求: "+ JSON.stringify(t)), // console.log("POST请求: "+ JSON.stringify(t)),
this.got.post(s, i).then(t => { this.got.post(s, i).then(t => {
const { const {
statusCode: s, statusCode: s,
@ -306,7 +306,7 @@ function Env(t, e) {
//todo //todo
//console.log(t.requestUrl) //console.log(t.requestUrl)
//打印返回 //打印返回
console.log(" 返回: "+ t.body) //console.log(" 返回: "+ t.body)
let o2=o; let o2=o;
if(t.requestUrl.indexOf("https://api.yuncheapp.cn/pearl-incentive/api/v1/task/invite/verify")>-1) if(t.requestUrl.indexOf("https://api.yuncheapp.cn/pearl-incentive/api/v1/task/invite/verify")>-1)
{ {

Loading…
Cancel
Save