Commit aaf201d0 by 宋毅

判断条件修改

parent 69d98b76
...@@ -115,11 +115,9 @@ class UtilsFqAliyunService extends AppServiceBase { ...@@ -115,11 +115,9 @@ class UtilsFqAliyunService extends AppServiceBase {
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);
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);
if (rtn.code != 200 && rtn.success != true) {
return system.getResultFail(-1, `推送失败,失败原因11:${JSON.stringify(rtn)}`); if (rtn.success !== true && rtn.code != 200) {
} return system.getResultFail(-1, `推送失败,失败原因:${JSON.stringify(rtn)}`);
if (rtn.code != "200" && rtn.success != true) {
return system.getResultFail(-1, `推送失败,失败原因12:${JSON.stringify(rtn)}`);
} }
return system.getResultSuccess(rtn.data, "推送成功"); return system.getResultSuccess(rtn.data, "推送成功");
} catch (e) { } catch (e) {
......
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