|
|
@@ -303,8 +303,6 @@ async function recognizeCaptchaByDdddocr(captchaInfo) {
|
|
|
rspData = body;
|
|
|
}
|
|
|
magicJS.logger.info(`rspData=${JSON.stringify(rspData)}`);
|
|
|
-
|
|
|
-
|
|
|
return rspData;
|
|
|
} catch (e) {
|
|
|
magicJS.logger.error(e);
|
|
|
@@ -333,7 +331,7 @@ function generateRandString(length) {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
-async function clyRequest(method, url, reqData) {
|
|
|
+async function clyRequest(method, url, reqData, printRspData=true) {
|
|
|
let nowTime = Date.now();
|
|
|
let newrelicData = {
|
|
|
"d": {
|
|
|
@@ -385,7 +383,9 @@ async function clyRequest(method, url, reqData) {
|
|
|
} else if (typeof body === "object") {
|
|
|
rspData = body;
|
|
|
}
|
|
|
- magicJS.logger.info(`rspData=${JSON.stringify(rspData)}`);
|
|
|
+ if (printRspData) {
|
|
|
+ magicJS.logger.info(`rspData=${JSON.stringify(rspData)}`);
|
|
|
+ }
|
|
|
if (rspData) {
|
|
|
return rspData;
|
|
|
} else {
|