改约发送短信

main
yanzai 10 months ago
parent d296546109
commit c85ef90c57

@ -756,6 +756,11 @@ class OrderController extends Controller
'appointment_time' => $planInfo->time, 'appointment_time' => $planInfo->time,
'doctor' => isset($doctor) ? $doctor : null, 'doctor' => isset($doctor) ? $doctor : null,
]); ]);
$is_sendMsg = DB::table('configs')->where(['label' => '预约完成短信通知'])->first();
if (!!$is_sendMsg and $is_sendMsg->value == 1 and strlen($orderInfo->phone)>0) {
$asp = new AspNetZhuanController();
$asp::SendMsg($orderInfo->hospital_id, $orderInfo->phone, $orderInfo->name, $planInfo->date . ' ' . substr($planInfo->time, 0, 5),$orderInfo->sex);
}
} }
return \Yz::Return(true, "操作完成", []); return \Yz::Return(true, "操作完成", []);
} }

Loading…
Cancel
Save