刘桂岩 3 years ago
parent
commit
a26bf63b47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/inter/controller/Writereport.php

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

@@ -759,7 +759,7 @@ class Writereport extends Base
             DB::table('exams')->where('id',$id)->update(['film_type'=>$param['film_type']]);
             //  已审核 发送短信
             $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'] ?? null)->find();
             $d_phone = $dinfo['phone'] ?? null;
             log::record('发短信的手机号为'.$d_phone);
             $d_name = $doctor['realname'];