Commit 47c8e55f by 宋毅

去除多余的代码

parent cb79012f
...@@ -114,12 +114,15 @@ class UtilsFqAliyunService extends AppServiceBase { ...@@ -114,12 +114,15 @@ class UtilsFqAliyunService extends AppServiceBase {
try { try {
var rc = system.getObject("util.aliyunClient"); var rc = system.getObject("util.aliyunClient");
var rtn = await rc.post(url, key, secret, params); var rtn = await rc.post(url, key, secret, params);
let tmpSuccess = rtn.success;
let tmpCode = rtn.code;
this.execClientNew.execLogs(`utilsFqAliyunSve-opAliyunClientPost-result:url=${url}`, pobj, "center-channel-opAliyunClientPost", rtn, null); this.execClientNew.execLogs(`utilsFqAliyunSve-opAliyunClientPost-result:url=${url}`, pobj, "center-channel-opAliyunClientPost", rtn, null);
console.log(rtn, ".....................opAliyunClientPost.........................11111111......") console.log(rtn, ".....................opAliyunClientPost.........................11111111......")
console.log(JSON.stringify(rtn), ".....................opAliyunClientPost............22222...................") console.log(JSON.stringify(rtn), ".....................opAliyunClientPost............22222...................")
console.log(rtn.success, ".....................opAliyunClientPost............3333...................") console.log(rtn, ".....................opAliyunClientPost.........................11111111.22222222222222222.....")
console.log(rtn.code, ".....................opAliyunClientPost............4444...................") console.log(tmpSuccess, ".....................opAliyunClientPost............3333...................")
if (rtn.success && rtn.code == 200) { console.log(tmpCode, ".....................opAliyunClientPost............4444...................")
if (tmpSuccess && tmpCode == 200) {
return system.getResultSuccess(rtn.data, "推送成功"); return system.getResultSuccess(rtn.data, "推送成功");
} else { } else {
return system.getResultFail(-1, `推送失败,失败原因11:${JSON.stringify(rtn)}`); return system.getResultFail(-1, `推送失败,失败原因11:${JSON.stringify(rtn)}`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment