|
|
@@ -56,6 +56,10 @@ class AdminController extends RestUserBaseController
|
|
|
|
|
|
$talent = TalentModel::get($appointment['talent_id']);
|
|
|
|
|
|
+ //短信
|
|
|
+ $sms = new Sms();
|
|
|
+ $sms->send($talent['mobile'],'talent_appointment_end');
|
|
|
+
|
|
|
$this->success('成功', ['talent' => $talent, 'appointment' => $appointment]);
|
|
|
}
|
|
|
|
|
|
@@ -83,7 +87,10 @@ class AdminController extends RestUserBaseController
|
|
|
public function confirm()
|
|
|
{
|
|
|
$data = $this->request->param();
|
|
|
- TalentAppointmentModel::update(['status'=>2,'apply_code'=>uniqid()],['id'=>$data['id']]);
|
|
|
+ $talent_appointment = TalentAppointmentModel::get($data['id']);
|
|
|
+ $talent_appointment->status = 2;
|
|
|
+ $talent_appointment->apply_code = uniqid();
|
|
|
+ $talent_appointment->save();
|
|
|
|
|
|
//日志
|
|
|
$admin = TalentAdminModel::get($data['admin_id']);
|
|
|
@@ -94,9 +101,12 @@ class AdminController extends RestUserBaseController
|
|
|
'create_time' => date('Y-m-d H:i:s'),
|
|
|
]);
|
|
|
|
|
|
+ //人才信息
|
|
|
+ $talent = TalentModel::where('id',$talent_appointment['talent_id'])->find();
|
|
|
+
|
|
|
//短信
|
|
|
-// $sms = new Sms();
|
|
|
-// $sms->send('13313826760','verification_code',['code'=>'123456']);
|
|
|
+ $sms = new Sms();
|
|
|
+ $sms->send($talent['mobile'],'talent_appointment_confirm');
|
|
|
|
|
|
$this->success();
|
|
|
}
|
|
|
@@ -136,6 +146,10 @@ class AdminController extends RestUserBaseController
|
|
|
'create_time' => date('Y-m-d H:i:s'),
|
|
|
]);
|
|
|
|
|
|
+ //短信
|
|
|
+ $sms = new Sms();
|
|
|
+ $sms->send($appointment['talent']['mobile'],'talent_appointment_end');
|
|
|
+
|
|
|
$this->success('成功');
|
|
|
}
|
|
|
}
|