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

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

@@ -346,11 +346,10 @@ class Writereport extends Base
             log::record($report_log);
             log::record($report_log);
             log::record('----日志写入成功----');
             log::record('----日志写入成功----');
             $application = DB::table('remote_application')->where('exam_id',$param['id'])->find();
             $application = DB::table('remote_application')->where('exam_id',$param['id'])->find();
-            $application = $application ?? [];
-            if($application['req_doctor_id'] == 'c44663d6d3c0b535'){
+            if($application['req_doctor_id'] ?? null == 'c44663d6d3c0b535'){
                 $tel = '18910184804';
                 $tel = '18910184804';
                 $type = '保存报告';
                 $type = '保存报告';
-                $content  = $application['id'];
+                $content  = $application['id'] ?? null;
                 // send_message::sendSms2Self($tel,$type,$content);
                 // send_message::sendSms2Self($tel,$type,$content);
             }
             }
             $url = 'http://wechat.pacsonline.cn/wx_patient/api/unifyGetWxQrcode?reportId='.$rid;
             $url = 'http://wechat.pacsonline.cn/wx_patient/api/unifyGetWxQrcode?reportId='.$rid;