|
@@ -210,9 +210,11 @@ class Application extends Base
|
|
|
if(isset($param['is_urgent']) && $param['is_urgent'] == 'true' ){
|
|
|
$application_info['is_urgent'] = 1;
|
|
|
$application_info['remote_doctor_id'] = '';
|
|
|
+ $d_time = date('H:i',strtotime('+30 min'));
|
|
|
}else{
|
|
|
$application_info['is_urgent'] = 0;
|
|
|
$application_info['remote_doctor_id'] = isset($param['remote_doctor_id']) ? $param['remote_doctor_id'] : '';
|
|
|
+ $d_time = date('H:i',strtotime('+1 hour'));
|
|
|
}
|
|
|
$application_info['application_desc'] = isset($param['description']) ? $param['description'] : '';
|
|
|
$application_info['req_doctor_id'] = $doctor['id'];
|
|
@@ -245,7 +247,6 @@ class Application extends Base
|
|
|
$dinfo = DB::table('doctors')->where('id',$param['remote_doctor_id'])->find();
|
|
|
$d_phone = $dinfo['phone'];
|
|
|
$d_name = '';
|
|
|
- $d_time = date('H:i',strtotime('+1 hour'));
|
|
|
$d_phone = '18366391911';
|
|
|
$repsone = send_message::sendSms2Apply($d_phone,$d_time,$d_name);
|
|
|
// 申请医院院名
|
|
@@ -359,7 +360,7 @@ class Application extends Base
|
|
|
$message['institution_id'] = $application['local_institution_id'];
|
|
|
DB::table('exams')->where('id',$id)->update(['exam_status'=>5]);
|
|
|
// 驳回发短信
|
|
|
- if($application['req_doctor_id'] == 'c44663d6d3c0b535'){
|
|
|
+// if($application['req_doctor_id'] == 'c44663d6d3c0b535'){
|
|
|
$dinfo = DB::table('doctors')->where('id',$application['req_doctor_id'])->find();
|
|
|
$d_phone = $dinfo['phone'];
|
|
|
$repsone = send_message::sendSms2RejectApply($d_phone,$param['description']);
|
|
@@ -372,7 +373,9 @@ class Application extends Base
|
|
|
$type = '驳回申请';
|
|
|
$content = $s_institution['name'].'医院的'.$doctor['realname'].'医生驳回了下级'.$x_institution['name'].'医院的'.$x_name['realname'].'医生发起的申请,单子的申请单id是'.$application['id'].',驳回的理由是'.$param['description'];
|
|
|
send_message::sendSms2Self($tel,$type,$content);
|
|
|
- }
|
|
|
+ $tel = '18366391911';
|
|
|
+ send_message::sendSms2Self($tel,$type,$content);
|
|
|
+// }
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','sessionid'=>$sessionid]);
|
|
|
}
|
|
|
|