Commit 75798b7e by 庄冰

receiveSolutionPayInfo

parent e2ff7626
......@@ -413,6 +413,20 @@ class OrderInfoService extends ServiceBase {
}
//接收方案状态及支付信息
async receiveSolutionPayInfo(channelSolutionNo,status,orderPrice,self,t){
var needsolutioninfo = await self.needsolutionDao.findOne({ channelSolutionNo: channelSolutionNo }, t);
if(!needsolutioninfo || !needsolutioninfo.id){
return system.getResultFail(-400,"未知方案");
}
var solutionContent = needsolutioninfo.solutionContent;
solutionContent = JSON.parse(solutionContent);
solutionContent["totalSum"] = orderPrice;
needsolutioninfo.solutionContent = JSON.stringify(solutionContent);
needsolutioninfo.status = status;
await self.needsolutionDao.update(needsolutioninfo, t);
return system.getResultSuccess();
}
async createChannelSource(pobj) {//创建渠道来源订单
var orderNo = await self.getBusUid("oc" + pobj.appInfo.uapp_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