Commit 5cda7c2e by 任晓松

商标驳回复审推送

parent 401fc13e
...@@ -5,9 +5,8 @@ class utilsDeliverSve extends AppServiceBase{ ...@@ -5,9 +5,8 @@ class utilsDeliverSve extends AppServiceBase{
constructor() { constructor() {
super(); super();
this.centerOrderUrl = settings.centerOrderUrl(); this.centerOrderUrl = settings.centerOrderUrl();
this.centerAppUrl = settings.centerAppUrl();
this.fileDealUrl = settings.fileDealUrl(); this.fileDealUrl = settings.fileDealUrl();
this.utilsDeliverSystemSve = system.getObject("service.utilsSve.utilsDeliverSystemSve") this.utilsPushSve = system.getObject("service.utilsSve.utilsPushSve");
} }
/** /**
...@@ -15,11 +14,18 @@ class utilsDeliverSve extends AppServiceBase{ ...@@ -15,11 +14,18 @@ class utilsDeliverSve extends AppServiceBase{
* @param pobj * @param pobj
* @returns {Promise<*>} * @returns {Promise<*>}
*/ */
async pushDeliver(pobj){ async pushTmReDeliver(pobj){
try{
var verifyResult = await this.verifyParam(pobj); var verifyResult = await this.verifyParam(pobj);
if(verifyResult.status !=0){
return system.getResultFail();
}
pobj.actionBody = verifyResult.data; pobj.actionBody = verifyResult.data;
var result = await this.utilsDeliverSystemSve.pushBusiness2DeliverSystem(pobj); this.utilsPushSve.aliBusiness2Delivery(pobj, "pushTmReDeliver");
return result; return system.getResultSuccess();
}catch (e) {
return system.getResultFail();
}
} }
...@@ -95,6 +101,7 @@ class utilsDeliverSve extends AppServiceBase{ ...@@ -95,6 +101,7 @@ class utilsDeliverSve extends AppServiceBase{
*/ */
async addReviewList(pobj,actionBody){ async addReviewList(pobj,actionBody){
//参数重组 //参数重组
try{
let verifyResult = await this.verifyParam(pobj.actionBody); let verifyResult = await this.verifyParam(pobj.actionBody);
if (verifyResult.status != 0) { if (verifyResult.status != 0) {
return await this.disposePushResultFail(pobj, verifyResult, "delivery->pushDelivery->verifyResult", ""); return await this.disposePushResultFail(pobj, verifyResult, "delivery->pushDelivery->verifyResult", "");
...@@ -117,19 +124,13 @@ class utilsDeliverSve extends AppServiceBase{ ...@@ -117,19 +124,13 @@ class utilsDeliverSve extends AppServiceBase{
if(orderResult.data && orderResult.data.orderStatus === 2){ if(orderResult.data && orderResult.data.orderStatus === 2){
// 推送交付中心 // 推送交付中心
pobj.actionBody = verifyResult.data; pobj.actionBody = verifyResult.data;
let appUrl = this.centerAppUrl + 'action/opProduct/springBoard'; this.utilsPushSve.aliBusiness2Delivery(pobj, "pushTmReDeliver");
let params = {
actionType:"getAppInterface",
actionBody:pobj.actionBody
}
let reveResult = await this.restPostUrl(params,appUrl);
if(reveResult.status !=0){
return system.getResult(null,'获取接口数据失败');
}
pobj.interface_info = reveResult.data;
result = await this.utilsDeliverSystemSve.pushBusiness2DeliverSystem(pobj);
} }
return result; return result;
}catch (e) {
return system.getResultFail(-1,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