|
|
|
|
@ -391,6 +391,7 @@ class PlanListController extends Controller
|
|
|
|
|
{
|
|
|
|
|
date_default_timezone_set('PRC');
|
|
|
|
|
$nowdatetime = date("Y-m-d H:i:s");
|
|
|
|
|
$do_userid=request('do_user');
|
|
|
|
|
$planid = request('planid');
|
|
|
|
|
$appointment_type = request('appointment_type');//渠道id
|
|
|
|
|
$mainlistid = request('mainlistid');//主表id
|
|
|
|
|
@ -398,7 +399,7 @@ class PlanListController extends Controller
|
|
|
|
|
if (!isset($do_type)) return \Yz::echoError1('参数:操作类型 不能为空');
|
|
|
|
|
|
|
|
|
|
$service = new PlanListService();
|
|
|
|
|
return $service->YuYue($planid, $appointment_type, $mainlistid, $do_type);
|
|
|
|
|
return $service->YuYue($planid, $appointment_type, $mainlistid, $do_type,$do_userid);
|
|
|
|
|
}
|
|
|
|
|
//自动预约
|
|
|
|
|
public function AutoYuYue()
|
|
|
|
|
@ -454,10 +455,11 @@ class PlanListController extends Controller
|
|
|
|
|
$reg_num = request('reg_num');
|
|
|
|
|
$password = request('password');
|
|
|
|
|
$userid = $request->get('userid');//中间件产生的参数
|
|
|
|
|
$do_userid=request('do_user');
|
|
|
|
|
$query = DB::table('users')->where(['id' => $userid])->get();
|
|
|
|
|
if (password_verify($password, $query[0]->pwd)) {
|
|
|
|
|
$service = new PlanListService();
|
|
|
|
|
return $service->CancelYuYue($MainListId, $reg_num);
|
|
|
|
|
return $service->CancelYuYue($MainListId, $reg_num,$do_userid);
|
|
|
|
|
} else {
|
|
|
|
|
return \Yz::echoError1('密码不正确');
|
|
|
|
|
}
|
|
|
|
|
|