Commit a6145aad by 宋毅

Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel

parents 936478b9 180f9552
node_modules/
.idea
.history/
\ No newline at end of file
......@@ -137,7 +137,7 @@ class UtilsNeedService extends AppServiceBase {
}
var rtn = await this.execClient.execPost(pobj, url);
var data = JSON.parse(rtn.stdout);
if (data.data.channelTypeCode == 1||data.data.channelTypeCode == 2) {//商标
if (data.data && (data.data.channelTypeCode == 1||data.data.channelTypeCode == 2)) {//商标
this.execPostUrl({
"actionProcess": "AliTm",
"appCode": "100099",
......@@ -388,6 +388,7 @@ class UtilsNeedService extends AppServiceBase {
if (!actionBody.bizId) {
return system.getResult(null, "actionBody.bizId can not be empty,100495");
}
actionBody.BizId = actionBody.bizId;
let isTM = actionBody.bizId.startsWith("TM_")
if (isTM){//商标
let result = await this.getSolutionByChannelSolutionNo(pobj, pobj.actionBody);
......@@ -401,7 +402,6 @@ class UtilsNeedService extends AppServiceBase {
actionBody.fileUrl = await self.opDownFileInfo(actionBody.fileUrl);
}
}else {
actionBody.BizId = actionBody.bizId;
if (!actionBody.status) {
return system.getResult(null, "actionBody.status can not be empty,100495");
}
......@@ -451,7 +451,8 @@ class UtilsNeedService extends AppServiceBase {
this.utilsPushSve.aliBusiness2Fq(pobj, "pushTMpayRefund");
}
//通知fqboss
this.execPostUrl({ "actionProcess": "AliTm", "appCode": "100099", "sign": await this.getFQbossSign(actionBody), actionBody },settings.fqbossTmUrl())
let pushres = await this.execPostUrl({ "actionProcess": "AliTm", "appCode": "100099", "sign": await this.getFQbossSign(actionBody), actionBody },settings.fqbossTmUrl())
console.log("推送fqboos----->",pushres)
}else {
if (actionBody.status == 2) {
var deliveryObj = {
......
......@@ -543,9 +543,9 @@ class UtilsTmAliyunService extends AppServiceBase {
}
var reqUrl = settings.centerOrderUrl() + "opaction/opOrder/springBoard";
var result = await this.restPostUrl(tmpPobj, reqUrl);
if (result.status != 0) {
return await this.disposePushResultFail(tmpPobj, result, "ali->tmCreateApplicant->addChannelTmApplicantResult->新增ali渠道商标交付信息失败", this.pushlogFailType.FAILLOG);
}
// if (result.status != 0) {
// return await this.disposePushResultFail(tmpPobj, result, "ali->tmCreateApplicant->addChannelTmApplicantResult->新增ali渠道商标交付信息失败", this.pushlogFailType.FAILLOG);
// }
return result;
}
async updateAliChannelTmApplicant(pobj, actionBody) {//新增ali渠道商标交付信息
......@@ -556,9 +556,9 @@ class UtilsTmAliyunService extends AppServiceBase {
}
var reqUrl = settings.centerOrderUrl() + "opaction/opOrder/springBoard";
var result = await this.restPostUrl(tmpPobj, reqUrl);
if (result.status != 0) {
return await this.disposePushResultFail(tmpPobj, result, "ali->tmCreateApplicant->addChannelTmApplicantResult->新增ali渠道商标交付信息失败", this.pushlogFailType.FAILLOG);
}
// if (result.status != 0) {
// return await this.disposePushResultFail(tmpPobj, result, "ali->tmCreateApplicant->addChannelTmApplicantResult->新增ali渠道商标交付信息失败", this.pushlogFailType.FAILLOG);
// }
return result;
}
async getAliChannelTmDelivery(pobj) {//查询ali渠道商标交付信息
......
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