完善发货流程
This commit is contained in:
@@ -484,16 +484,19 @@ class DemandService
|
||||
exception('更新发货状态失败');
|
||||
}
|
||||
Db::commit();
|
||||
//给客户发送发货通知
|
||||
//给客户发送确认收货提醒(跳转需求详情查看交付内容)
|
||||
$msgData = [
|
||||
'page' => SubscribeMessageService::PAGE_DEMAND_DETAIL,
|
||||
'param' => ['id' => $demand->id],
|
||||
'values' => [
|
||||
//character_string 字段不支持中文,产品名称填需求编号
|
||||
$demand->parent_order_no,
|
||||
$finalOrder->order_no,
|
||||
mb_substr($demand->title, 0, 20),
|
||||
'已发货',
|
||||
'开发成果已交付,请到需求详情查看交付内容并确认收货',
|
||||
$finalOrder->payment_amount,
|
||||
mb_substr($remark ?: SubscribeMessageService::MSG_MAP[SubscribeMessageService::MSG_TEMP_CONFIRM_RECEIPT]['remark'], 0, 20),
|
||||
]
|
||||
];
|
||||
(new EasyWeChatService)->sendMsg($demand->user_id, SubscribeMessageService::MSG_TEMP_ORDER_SHIPPED, $msgData);
|
||||
(new EasyWeChatService)->sendMsg($demand->user_id, SubscribeMessageService::MSG_TEMP_CONFIRM_RECEIPT, $msgData);
|
||||
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
@@ -623,6 +626,18 @@ class DemandService
|
||||
]
|
||||
];
|
||||
(new EasyWeChatService)->sendMsg($demand->winBidding->user_id, SubscribeMessageService::MSG_TEMP_WORK_ACCEPT_RESULT, $msgData);
|
||||
//给开发者发送发货提醒(客户已支付尾款,跳转需求详情去发货)
|
||||
$shipMsgData = [
|
||||
'page' => SubscribeMessageService::PAGE_DEMAND_DETAIL,
|
||||
'param' => ['id' => $demand->id],
|
||||
'values' => [
|
||||
$demandOrder->order_no,
|
||||
mb_substr($demand->title, 0, 20),
|
||||
'待发货',
|
||||
'客户已支付尾款,请及时发货交付',
|
||||
]
|
||||
];
|
||||
(new EasyWeChatService)->sendMsg($userId, SubscribeMessageService::MSG_TEMP_ORDER_SHIPPED, $shipMsgData);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user