Commit 1e116783 by 宋毅

tj

parent 55c2b0ff
......@@ -65,6 +65,7 @@ class TmOrderAPI extends APIBase {
// sy
case "jdAddQifuOrder":
pobj.actionBody.quantity = 1;
pobj.actionBody.channelOrder = {};
pobj.actionBody.channelOrder.channelServiceNo = pobj.actionBody.needNo;
pobj.actionBody.channelOrder.channelOrderNo = pobj.actionBody.needNoOrderNo;
pobj.actionBody.channelOrder.payTime = new Date();
......
......@@ -947,7 +947,7 @@ class OrderService extends ServiceBase {
* @param {*} pobj
* @param {*} actionBody
*/
async addQifuOrder(pobj, actionBody, app) {
async addQifuOrder(pobj, actionBody, req) {
if (!actionBody.channelItemCode) {
return system.getResult(null, "actionBody.channelItemCode can not be empty");
}
......@@ -955,7 +955,7 @@ class OrderService extends ServiceBase {
return system.getResult(null, "actionBody.quantity can not be empty");
}
var token = "";
var tokenRes = await this.getCenterChannelToken(app);
var tokenRes = await this.getCenterChannelToken(req.app);
if (tokenRes && tokenRes.status == 0 && tokenRes.data) {
token = tokenRes.data.token;
}
......
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