Commit 83982219 by 孙亚楠

d

parent 28c1fc2e
......@@ -43,7 +43,7 @@ class OrderService extends ServiceBase {
console.log(JSON.stringify(rs));
if(params.audit_status == "20" && rs.status === 0 && params.ids && params.ids.length > 0) {
for(let id of params.ids) {
this.pushOrderToDeliver(id,params.deliver_id);
this.pushOrderToDeliver(id,params.deliver_id,params);
}
}
return rs;
......@@ -54,7 +54,7 @@ class OrderService extends ServiceBase {
* @param id
* @returns {Promise<void>}
*/
async pushOrderToDeliver(id,deliver_id) {
async pushOrderToDeliver(id,deliver_id,params) {
console.log("推送参数 "+id +"===>"+deliver_id)
let order = await this.callms("order", "saasOrderInfo", {id: id}) || {};
......@@ -78,7 +78,8 @@ class OrderService extends ServiceBase {
guest_mail_mobile:order.saasOrderDeliverInfo.deliver_mobile || "",
saas_id:order.saas_id,
deliver_id:deliver_id,
price:order.price || 0
price:order.price || 0,
chooseItems:params.service_items || []
};
console.log("推送订单到交付平台参数"+JSON.stringify(data))
// 推送订单到交付平台
......
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