|
@@ -496,7 +496,7 @@ class Writereport extends Base
|
|
|
$info['createdAt'] = date('Y-m-d H:i:s',time());
|
|
|
$info['doctor_id'] = $doctor['id'];
|
|
|
$info['type'] = 3;
|
|
|
- $info['report_id'] = '';
|
|
|
+ $info['report_id'] = $report_id;
|
|
|
DB::table('report_record')->insert($info);
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','msg'=>'已确认']);
|
|
|
}catch(\Exception $e){
|
|
@@ -594,7 +594,7 @@ class Writereport extends Base
|
|
|
$dinfo = DB::table('doctors')->where('id',$application['req_doctor_id'])->find();
|
|
|
$d_phone = $dinfo['phone'];
|
|
|
log::record('发短信的手机号为'.$d_phone);
|
|
|
- $d_name = '';
|
|
|
+ $d_name = $dinfo['realname'];
|
|
|
if($dinfo['institution_id'] == '22100002'){ //魏庙下级
|
|
|
$repsone = send_message::sendSms2CompleteReport($d_phone,$d_name);
|
|
|
}
|