|
@@ -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'];
|