刘桂岩 4 年之前
父节点
当前提交
f9e2b36f21
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/inter/controller/Writereport.php

+ 2 - 2
application/inter/controller/Writereport.php

@@ -760,11 +760,11 @@ class Writereport extends Base
             //  已审核 发送短信
             $application = DB::table('remote_application')->where('exam_id',$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);
             $d_name = $doctor['realname'];
             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);
                 }
                 $tel = '18910184804';