|
@@ -760,11 +760,11 @@ class Writereport extends Base
|
|
// 已审核 发送短信
|
|
// 已审核 发送短信
|
|
$application = DB::table('remote_application')->where('exam_id',$id)->find();
|
|
$application = DB::table('remote_application')->where('exam_id',$id)->find();
|
|
$dinfo = DB::table('doctors')->where('id',$application['req_doctor_id'])->find();
|
|
$dinfo = DB::table('doctors')->where('id',$application['req_doctor_id'])->find();
|
|
- $d_phone = $dinfo['phone'];
|
|
|
|
|
|
+ $d_phone = $dinfo['phone'] ?? null;
|
|
log::record('发短信的手机号为'.$d_phone);
|
|
log::record('发短信的手机号为'.$d_phone);
|
|
$d_name = $doctor['realname'];
|
|
$d_name = $doctor['realname'];
|
|
if(isset($_REQUEST['is_remote']) && $_REQUEST['is_remote'] == 1){
|
|
if(isset($_REQUEST['is_remote']) && $_REQUEST['is_remote'] == 1){
|
|
- if($dinfo['institution_id'] == '22100002' || $dinfo['send_sms'] == 1){ //魏庙下级
|
|
|
|
|
|
+ if($dinfo['institution_id'] ?? null == '22100002' || $dinfo['send_sms'] ?? null == 1){ //魏庙下级
|
|
$repsone = send_message::sendSms2CompleteReport($d_phone,$d_name);
|
|
$repsone = send_message::sendSms2CompleteReport($d_phone,$d_name);
|
|
}
|
|
}
|
|
$tel = '18910184804';
|
|
$tel = '18910184804';
|