...
|
...
|
@@ -314,7 +314,6 @@ class YuyueController extends UserBaseController |
|
|
|
|
|
$res = Db::name('yuyue')->insert($data);
|
|
|
if ($res) {
|
|
|
|
|
|
$stu_info = Db::name('user')->where(['id' => $data['uid']])->find();
|
|
|
$tea_info = Db::name('user')->where(['id' => $data['teach_id']])->find();
|
|
|
$msg = "您好!您已成功预约:{$data['yuyue_day']}/{$data['yuyue_begin']}:00 - {$data['yuyue_end']}:00 时间段{$tea_info['user_nickname']}的课程,请按时上课,教练电话:{$tea_info['mobile']},如有问题可直接与教练或您的学车顾问进行联系。【悠乐驾】";
|
...
|
...
|
@@ -353,9 +352,6 @@ class YuyueController extends UserBaseController |
|
|
$res = $tool->wxtemsg_send($param1);
|
|
|
$res = $tool->wxtemsg_send($param2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return json(['code' => '1', 'msg' => '预约成功']);
|
|
|
} else {
|
|
|
return json(['code' => '0', 'msg' => '抱歉,预约失败']);
|
...
|
...
|
|