作者 xiaohu thinkpad

取消预约短信

... ... @@ -31,7 +31,6 @@ class ToolController extends HomeBaseController
for($t = 6;$t<=18;$t++){
$all_arr[]=$t;
}
$arr = [];
for($i = 0;$i<count($res);$i++){
$begin = $res[$i]["yuyue_begin"];
... ... @@ -48,7 +47,6 @@ class ToolController extends HomeBaseController
$ok_arr[] = "yes";
}
}
if ($ok_arr){
return json(['code'=>'1','msg'=>'获取成功','data'=>json_encode($ok_arr,true)]);
}else{
... ...
... ... @@ -524,9 +524,9 @@ class YuyueController extends UserBaseController
$tea_info = Db::name('user')->where(['id' => $data['teach_id']])->find();
$msg = "您好!您已成功取消:{$data['yuyue_day1']}--{$data['yuyue_begin']}:00 - {$data['yuyue_end']}:00 时间段{$tea_info['user_nickname']}的课程,欢迎您再次预约。【悠乐驾】";
$msg = "您好!您已成功取消:{$data['yuyue_day']}--{$data['yuyue_begin']}:00 - {$data['yuyue_end']}:00 时间段{$tea_info['user_nickname']}的课程,欢迎您再次预约。【悠乐驾】";
$tool->get_sms_code_p($stu_info['mobile'], $msg);
$msg1 = "您好!您的:{$data['yuyue_day1']}--{$data['yuyue_begin']}:00 - {$data['yuyue_end']}:00 时间段课程已被{$stu_info['user_nickname']}学员取消,该时间段将进入待预约状态。
$msg1 = "您好!您的:{$data['yuyue_day']}--{$data['yuyue_begin']}:00 - {$data['yuyue_end']}:00 时间段课程已被{$stu_info['user_nickname']}学员取消,该时间段将进入待预约状态。
【悠乐驾】";
$tool->get_sms_code_p($tea_info['mobile'], $msg1);
... ...