|
|
|
@ -900,9 +900,9 @@ class OrderController extends Controller
|
|
|
|
'appointment_back_info' => json_encode($appointment_info['data'][0], JSON_UNESCAPED_UNICODE)
|
|
|
|
'appointment_back_info' => json_encode($appointment_info['data'][0], JSON_UNESCAPED_UNICODE)
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
$is_sendMsg = DB::table('configs')->where(['label' => '预约完成短信通知'])->first();
|
|
|
|
$is_sendMsg = DB::table('configs')->where(['label' => '预约完成短信通知'])->first();
|
|
|
|
if (!!$is_sendMsg and $is_sendMsg->value == 1) {
|
|
|
|
if (!!$is_sendMsg and $is_sendMsg->value == 1 and strlen($cha->phone)>0) {
|
|
|
|
$asp = new AspNetZhuanController();
|
|
|
|
$asp = new AspNetZhuanController();
|
|
|
|
$asp::SendMsg($cha->hospital_id, $cha->phone, $cha->name, $cha->appointment_date . ' ' . substr($cha->appointment_time, 0, 5));
|
|
|
|
$asp::SendMsg($cha->hospital_id, $cha->phone, $cha->name, $cha->appointment_date . ' ' . substr($cha->appointment_time, 0, 5),$cha->sex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ['status' => true, 'msg' => "完成"];
|
|
|
|
return ['status' => true, 'msg' => "完成"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|