Commit e4b61d22 by 庄冰

tlpay

parent 3aa9ffa3
......@@ -884,7 +884,24 @@ class OrderService extends ServiceBase {
return system.getResultFail(-102, "订单数据不存在");
}
if (orderInfo.orderPayStatus == "yfk") {
return system.getResultSuccess({ orderPayStatus: "yfk" });
var returnObj={
"busPayOrderCode": "",
"code": orderInfo.orderNo,
"app_id": app.id,
"sveItemCode": orderInfo.itemCode,
"sveItemName": orderInfo.itemName,
"totalSum": orderInfo.totalSum,
"orderPayStatus": "yfk",
};
var orderReceiptVoucher = await this.orderReceiptVoucherDao.model.findOne({
where:{uapp_id:app.uAppId,sourceOrderNo:orderInfo.orderNo},
raw:true
});
if(orderReceiptVoucher && orderReceiptVoucher.busPayOrderCode){
returnObj.busPayOrderCode = orderReceiptVoucher.busPayOrderCode;
}
return system.getResultSuccess(returnObj);
}
var payTrxid = opType == "wx" ? wxPayOrderCode : aliPayOrderCode;
var opComanyId = comanyId;
......
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