Commit f2c7e26a by 宋毅

判断条件修改

parent 9402e525
...@@ -192,12 +192,12 @@ module.exports = SignService; ...@@ -192,12 +192,12 @@ module.exports = SignService;
// }; // };
// //需求 // //需求
// var obj={ // var obj={
// "intentionBizId": "baidu_test_00081", // "intentionBizId": "baidu_test_00083",
// "phone": "18506013333", // "phone": "18506013355",
// "userName": "测试01", // "userName": "测试03",
// "description": "测试01描述", // "description": "测试03描述",
// "area": "上海", // "area": "上海",
// "consultType": "5" // "consultType": "7"
// }; // };
// task.createSign(obj,"7cbb892450174167b5c7e01we4716t51").then(sign=>{ // task.createSign(obj,"7cbb892450174167b5c7e01we4716t51").then(sign=>{
// console.log(sign,"..............Sign"); // console.log(sign,"..............Sign");
......
...@@ -116,10 +116,11 @@ class UtilsFqAliyunService extends AppServiceBase { ...@@ -116,10 +116,11 @@ class UtilsFqAliyunService extends AppServiceBase {
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.success != true || !(rtn.code == "200")) { if (rtn.success == true && rtn.code == 200) {
return system.getResultSuccess(rtn.data, "推送成功");
} else {
return system.getResultFail(-1, `推送失败,失败原因:${JSON.stringify(rtn)}`); return system.getResultFail(-1, `推送失败,失败原因:${JSON.stringify(rtn)}`);
} }
return system.getResultSuccess(rtn.data, "推送成功");
} catch (e) { } catch (e) {
const stackStr = e.stack ? e.stack : JSON.stringify(e); const stackStr = e.stack ? e.stack : JSON.stringify(e);
this.execClientNew.execLogs(`utilsFqAliyunSve-opAliyunClientPost-error:url=${url}`, pobj, "center-channel-opAliyunClientPost", null, stackStr); this.execClientNew.execLogs(`utilsFqAliyunSve-opAliyunClientPost-error:url=${url}`, pobj, "center-channel-opAliyunClientPost", null, stackStr);
......
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