刘桂岩 il y a 4 ans
Parent
commit
fa7cbb6c97
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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 = '保存报告';