Commit 4eb4a17a by 宋毅

sy

parent 3dfa5a54
......@@ -41,7 +41,7 @@ class Need extends APIBase {
opResult = system.getResult(null, "验证码错误");
return opResult;
}
await self.utilsMsgSendSve.removeVerificationCode(pobj.actionBody.Info[0].formInfo.contactsPhone);
await self.utilsMsgSendSve.removeVerificationCode(pobj.actionBody.ContactsMobile);
}
switch (action_type) {
case "test"://测试
......
......@@ -31,7 +31,7 @@ class TxPushLogService extends ServiceBase {
try {
var loginfo = await this.findOne({ deal_name: pobj.interface.para.dealName, push_action_type: "orderPayNotify" });
if (loginfo) {
return self.returnTX(1, "cgateway", "ok", { "flowId": loginfo.flow_id, "resourceIds": [pobj.interface.para.dealName] })
return self.returnTX(0, "cgateway", "ok", { "flowId": loginfo.flow_id, "resourceIds": [pobj.interface.para.dealName] })
}
var flow_id = await this.getBusUid("f");
var newobj = {
......@@ -60,7 +60,7 @@ class TxPushLogService extends ServiceBase {
};
var a = await this.execPostByTimeOut(req, pushobj, settings.opPushUrl());
return self.returnTX(1, "cgateway", "ok", { "flowId": creatlog.flow_id, "resourceIds": [pobj.interface.para.dealName] })
return self.returnTX(0, "cgateway", "ok", { "flowId": creatlog.flow_id, "resourceIds": [pobj.interface.para.dealName] })
} catch (e) {
this.execClient.execLogs("txPushLogSve.js/createCbsInstance方法出现异常", { params: orderNum }, "txPushLogSve_createCbsInstance_error", null, e.stack);
return this.returnTX(-1, "cgateway", "请求失败", null)
......@@ -86,7 +86,7 @@ class TxPushLogService extends ServiceBase {
if (orderInfo.status == 320) {
status = 3;
}
return self.returnTX(1, "cgateway", "ok", { "status": status })
return self.returnTX(0, "cgateway", "ok", { "status": status })
}
......@@ -119,7 +119,7 @@ class TxPushLogService extends ServiceBase {
}
resources.push(resource);
}
return self.returnTX(1, "cgateway", "ok", { "resources": resources })
return self.returnTX(0, "cgateway", "ok", { "resources": resources })
}
//用户所有资源拉取
......@@ -159,7 +159,7 @@ class TxPushLogService extends ServiceBase {
}
resources.push(resource);
}
return self.returnTX(1, "cgateway", "ok", { "total": orderProduct.count, "resources": resources })
return self.returnTX(0, "cgateway", "ok", { "total": orderProduct.count, "resources": resources })
}
//隔离资源
......@@ -173,13 +173,13 @@ class TxPushLogService extends ServiceBase {
return self.returnTX(-1, "mall_logic", "资源不存在", null)
}
if (orderProduct.dataValues.status == 2) {
return self.returnTX(1, "mall_logic", "ok", null)
return self.returnTX(0, "mall_logic", "ok", null)
}
if (orderProduct.dataValues.status == 3) {
return self.returnTX(-1, "mall_logic", "资源已销毁", null)
}
await this.orderProductDao.update({ id: orderProduct.dataValues.id, status: 2, isolated_time: new Date() });
return self.returnTX(1, "mall_logic", "ok", null)
return self.returnTX(0, "mall_logic", "ok", null)
}
......@@ -197,7 +197,7 @@ class TxPushLogService extends ServiceBase {
return self.returnTX(-1, "mall_logic", "资源未隔离", null)
}
if (orderProduct.dataValues.status == 3) {
return self.returnTX(1, "mall_logic", "资源已销毁", null)
return self.returnTX(0, "mall_logic", "资源已销毁", null)
}
var flow_id = await this.getBusUid("f");
var newobj = {
......@@ -214,7 +214,7 @@ class TxPushLogService extends ServiceBase {
return self.returnTX(-1, "mall_logic", "请求错误", null)
}
await this.orderProductDao.update({ id: orderProduct.dataValues.id, status: 3 });
return self.returnTX(1, "mall_logic", "ok", { flowId: flow_id })
return self.returnTX(0, "mall_logic", "ok", { flowId: flow_id })
}
......
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