mobile = $mobile; } } // 患者-通知患者视频时间 public function noticePatientVideoTime(string $doctor_name,$reservation_time){ try { // 发送短信-患者-视频预约成功 $template_code = "SMS_464481352"; $scene_desc = "通知患者视频时间"; $template_param = array(); $template_param['name'] = $doctor_name; $template_param['time'] = date('Y-m-d H:i', strtotime($reservation_time)); Dysms::sendSms($this->mobile,$template_param,$template_code,$scene_desc); }catch (\Throwable $e){ throw new BusinessException("短信发送失败",HttpEnumCode::CODE_FAIL); } } // 患者-通知患者视频 public function noticePatientVideo(string $doctor_name){ try { // 发送短信-患者-视频预约成功 $template_code = "SMS_464436348"; $scene_desc = "通知患者视频"; $template_param = array(); $template_param['name'] = $doctor_name; Dysms::sendSms($this->mobile,$template_param,$template_code,$scene_desc); }catch (\Throwable $e){ throw new BusinessException("短信发送失败",HttpEnumCode::CODE_FAIL); } } // 医生-通知医生视频 public function noticeDoctorVideo(string $patient_name){ try { // 发送短信-患者-视频预约成功 $template_code = "SMS_464486306"; $scene_desc = "通知医生视频"; $template_param = array(); $template_param['name'] = $patient_name; Dysms::sendSms($this->mobile,$template_param,$template_code,$scene_desc); }catch (\Throwable $e){ throw new BusinessException("短信发送失败",HttpEnumCode::CODE_FAIL); } } }