Commit 7b0d2221 by 宋毅

去除多余的代码

parent b8f9a8bf
......@@ -115,7 +115,7 @@ class SignService{
}
module.exports = SignService;
// var task = new SignService();
var task = new SignService();
// var obj = {
// "actionType": "serviceProviderSubmitMaterial",
// "actionBody": {
......@@ -190,15 +190,15 @@ module.exports = SignService;
// "bizScope":"经营范围",
// "hasAddress":true
// };
// //需求
// var obj={
// "intentionBizId": "baidu_test_00085",
// "phone": "18506013355",
// "userName": "测试03",
// "description": "测试03描述",
// "area": "上海",
// "consultType": "7"
// };
// task.createSign(obj,"7cbb892450174167b5c7e01we4716t51").then(sign=>{
// console.log(sign,"..............Sign");
// });
\ No newline at end of file
//需求
var obj={
"intentionBizId": "baidu_test_00086",
"phone": "18506013355",
"userName": "测试03",
"description": "测试03描述",
"area": "上海",
"consultType": "7"
};
task.createSign(obj,"7cbb892450174167b5c7e01we4716t51").then(sign=>{
console.log(sign,"..............Sign");
});
\ No newline at end of file
......@@ -117,10 +117,12 @@ class UtilsFqAliyunService extends AppServiceBase {
this.execClientNew.execLogs(`utilsFqAliyunSve-opAliyunClientPost-result:url=${url}`, pobj, "center-channel-opAliyunClientPost", rtn, null);
console.log(rtn, ".....................opAliyunClientPost.........................11111111......")
console.log(JSON.stringify(rtn), ".....................opAliyunClientPost............22222...................")
if (rtn.success.toString() === "true" && rtn.code.toString() === "200") {
console.log(rtn.success, ".....................opAliyunClientPost............3333...................")
console.log(rtn.code, ".....................opAliyunClientPost............4444...................")
if (rtn.success && rtn.code == 200) {
return system.getResultSuccess(rtn.data, "推送成功");
} else {
return system.getResultFail(-1, `推送失败,失败原因:${JSON.stringify(rtn)}`);
return system.getResultFail(-1, `推送失败,失败原因11${JSON.stringify(rtn)}`);
}
} catch (e) {
const stackStr = e.stack ? e.stack : JSON.stringify(e);
......@@ -179,6 +181,33 @@ class UtilsFqAliyunService extends AppServiceBase {
}
//--------------------------------------------------内部辅助方法-------------------end-----------------
// async tttt(){
// let rtn={
// "requestId":null,
// "code":"200",
// "data":{
// "_id":"261931196584429568",
// "operator":"null",
// "operator_name":null,
// "customer":"261918243919368192"
// },
// "success":true,
// "errorCode":"OK",
// "errorMessage":"操作成功",
// "timestamp":"2021-03-30T16:45:15.730+0800"
// }
// if (rtn.success && rtn.code == 200) {
// console.log(11111)
// } else {
// console.log(22222)
// }
//
// }
}
module.exports = UtilsFqAliyunService;
\ No newline at end of file
module.exports = UtilsFqAliyunService;
// let tmp=new UtilsFqAliyunService();
// tmp.tttt();
\ No newline at end of file
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