|
@@ -962,6 +962,7 @@ class Writereport extends Base
|
|
|
public function write_info(){
|
|
|
$sessionid = $_REQUEST['sessionid'];
|
|
|
$doctor = Cache::get($sessionid);
|
|
|
+ $is_remote = $_REQUEST['is_remote'];
|
|
|
$param = $_REQUEST['param'];
|
|
|
$patient_info['name'] = isset($param['name']) ? $param['name'] : '';
|
|
|
$patient_info['sex'] = isset($param['sex']) ? $param['sex'] : '';
|
|
@@ -1004,6 +1005,11 @@ class Writereport extends Base
|
|
|
$content = $application['id'];
|
|
|
send_message::sendSms2Self($tel,$type,$content);
|
|
|
}
|
|
|
+ if($is_remote == 1){
|
|
|
+ DB::table('remote_application')->where('exam_id',$param['id'])->update(['report_status'=>7]);
|
|
|
+ }else{
|
|
|
+ DB::table('exams')->where('id',$param['id'])->update(['exam_status'=>7]);
|
|
|
+ }
|
|
|
$url = 'wechat.pacsonline.cn/wxzskk/uwx/requestWxQrcode?reportId='.$rid;
|
|
|
$info = $this->curl_get($url);
|
|
|
return json_encode(['status'=>'ok','msg'=>'成功','code'=>'0000']);
|