Commit 5d7dbd9b by 王悦

专家辅助注册

parent 450e3803
...@@ -70,10 +70,13 @@ class Need extends APIBase { ...@@ -70,10 +70,13 @@ class Need extends APIBase {
break; break;
case "icpNotify"://icp方案更新 case "icpNotify"://icp方案更新
opResult = await this.utilsNeedSve.icpNotify(pobj, pobj.actionBody); opResult = await this.utilsNeedSve.icpNotify(pobj, pobj.actionBody);
if (opResult.status == 0 && pobj.actionBody.status == 1) { if (!pobj.actionBody.bizId.startsWith("TM_") && opResult.status == 0 && (pobj.actionBody.status == 1||pobj.actionBody.status == 0)) {
opResult = await self.centerorderSve.icppaysuccess(pobj, pobj.actionBody); opResult = await self.centerorderSve.icppaysuccess(pobj, pobj.actionBody);
} }
break; break;
case "tmNotifySub"://tm建案成功
opResult = await self.centerorderSve.tmsave(pobj, pobj.actionBody);
break;
case "writeCommunicationLog"://icp接收方案反馈信息 case "writeCommunicationLog"://icp接收方案反馈信息
opResult = await this.utilsNeedSve2.writeCommunicationLog(pobj); opResult = await this.utilsNeedSve2.writeCommunicationLog(pobj);
break; break;
......
...@@ -500,5 +500,17 @@ class AppServiceBase { ...@@ -500,5 +500,17 @@ class AppServiceBase {
} }
return system.getResultSuccess(); return system.getResultSuccess();
} }
async getFQbossSign(pobj){
var signArr = [];
var keys = Object.keys(pobj).sort();
for (let k = 0; k < keys.length; k++) {
const tKey = keys[k];
if (tKey != "sign" && pobj[tKey]) {
signArr.push(tKey + "=" + pobj[tKey]);
}
}
var resultSignStr = signArr.join("&") + "&key=" + "9c83f5f5c41347fc9bb47951fef3199b";
return md5(resultSignStr).toUpperCase();
}
} }
module.exports = AppServiceBase; module.exports = AppServiceBase;
...@@ -234,7 +234,14 @@ class CenterorderService extends AppServiceBase { ...@@ -234,7 +234,14 @@ class CenterorderService extends AppServiceBase {
} }
return system.getResultSuccess(data.data); return system.getResultSuccess(data.data);
} }
//商标保存tm_、创建方案
async tmsave(pobj){
pobj.actionType = "addOrderDelivery"
let url = this.centerOrderUrl + "action/tmreview/springBoard";
let result = await this.restPostUrl(pobj, url);
return result;
}
//状态更新
async icppaysuccess(pobj) { async icppaysuccess(pobj) {
var sobj = { var sobj = {
actionType: "getaliicpProduce", actionType: "getaliicpProduce",
......
...@@ -271,6 +271,13 @@ var settings = { ...@@ -271,6 +271,13 @@ var settings = {
return "https://fqgirl.gongsibao.com/"; return "https://fqgirl.gongsibao.com/";
} }
}, },
fqbossTmUrl: function(){
if (this.env == "dev") {
return "https://fqgirlstage.gongsibao.com/api/tmsub/channelTmNotify"
} else {
return "https://fqgirl.gongsibao.com/api/tmsub/channelTmNotify"
}
},
ucommuneUrl: function () { ucommuneUrl: function () {
if (this.env == "dev") { if (this.env == "dev") {
return "https://m-dev.ucommune.com/"// 优客测试环境 return "https://m-dev.ucommune.com/"// 优客测试环境
......
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