|
@@ -247,16 +247,18 @@ class Application extends Base
|
|
|
$dinfo = DB::table('doctors')->where('id',$application_info['remote_doctor_id'])->find();
|
|
|
$d_phone = $dinfo['phone'];
|
|
|
$d_name = '';
|
|
|
- $d_phone = '18366391911';
|
|
|
- $repsone = send_message::sendSms2Apply($d_phone,$d_time,$d_name);
|
|
|
+ if($dinfo['institution_id'] == '22100003'){ //魏庙
|
|
|
+// $repsone = send_message::sendSms2Apply($d_phone,$d_time,$d_name);
|
|
|
+ }
|
|
|
// 申请医院院名
|
|
|
$x_institution = DB::table('institution')->where('id',$doctor['institution_id'])->field('name')->find();
|
|
|
$s_institution = DB::table('institution')->where('id',$application_info['remote_institution_id'])->field('name')->find();
|
|
|
$tel = '18910184804';
|
|
|
$type = '发起申请';
|
|
|
- $content = '许春思您好,这是一条测试远程申请的短信';
|
|
|
- // $x_institution['name'].'医院的'.$doctor['realname'].'医生向上级'.$s_institution['name'].'医院的'.$dinfo['realname'].'医生发起了申请,该申请于'.date('H:i',strtotime('+1 hour')).'过期,单子的申请单id是'.$aid;
|
|
|
- send_message::sendSms2Self($tel,$type,$content);
|
|
|
+ $content = $x_institution['name'].'医院的'.$doctor['realname'].'医生向上级'.$s_institution['name'].'医院的'.$dinfo['realname'].'医生发起了申请,该申请于'.$d_time.'过期,单子的申请单id是'.$aid;
|
|
|
+ var_dump($content);
|
|
|
+ $response = send_message::sendSms2Self($tel,$type,$content);
|
|
|
+ var_dump($response);
|
|
|
// }
|
|
|
}
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','sessionid'=>$sessionid]);
|