|
@@ -213,12 +213,14 @@ class Order extends BaseModel
|
|
|
|
|
|
//给医生发送消息
|
|
//给医生发送消息
|
|
if (in_array($order['product_type'], [1,2])) {
|
|
if (in_array($order['product_type'], [1,2])) {
|
|
- $official_arr = [$user['openid'], $order['order_sn'], config('config.product_type_map')[$order['product_type']], $orderPatient['name'], $orderPatient['phone']];
|
|
|
|
|
|
+ $docter_openid = Docter::where('id', $order['docter_id'])->value('openid');
|
|
|
|
+ $official_arr = [$docter_openid, $order['order_sn'], config('config.product_type_map')[$order['product_type']], $orderPatient['name'], $orderPatient['phone']];
|
|
send_wechat_message(10, $official_arr);
|
|
send_wechat_message(10, $official_arr);
|
|
}
|
|
}
|
|
elseif ($order['product_type'] == 3) {
|
|
elseif ($order['product_type'] == 3) {
|
|
|
|
+ $docter_openid = Docter::where('id', $order['docter_id'])->value('openid');
|
|
$keyword4 = date('Y-m-d H:i', $orderPatient['appoint_start_time']).' - '.date('H:i', $orderPatient['appoint_end_time']);
|
|
$keyword4 = date('Y-m-d H:i', $orderPatient['appoint_start_time']).' - '.date('H:i', $orderPatient['appoint_end_time']);
|
|
- $official_arr = [$user['openid'], $orderPatient['name'], $orderPatient['phone'], $keyword4, $order['organization']['name'], $docter['name']];
|
|
|
|
|
|
+ $official_arr = [$docter_openid, $orderPatient['name'], $orderPatient['phone'], $keyword4, $order['organization']['name'], $docter['name']];
|
|
send_wechat_message(11, $official_arr);
|
|
send_wechat_message(11, $official_arr);
|
|
}
|
|
}
|
|
|
|
|