作者 xiaohu thinkpad

取消预约短信

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