刘桂岩 4 년 전
부모
커밋
fa7cbb6c97
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      application/inter/controller/Writereport.php

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

@@ -345,7 +345,8 @@ class Writereport extends Base
             $report_log = DB::table('report_record')->insert($log);
             log::record($report_log);
             log::record('----日志写入成功----');
-            $application = DB::table('remote_application')->where('exam_id',$param['id'])->find()->toArray();
+            $application = DB::table('remote_application')->where('exam_id',$param['id'])->find();
+            $application = $application ?? [];
             if($application['req_doctor_id'] == 'c44663d6d3c0b535'){
                 $tel = '18910184804';
                 $type = '保存报告';