|
@@ -47,7 +47,7 @@ class Writereport extends Base
|
|
|
*")
|
|
|
**/
|
|
|
public function index(){
|
|
|
-// try{
|
|
|
+ try{
|
|
|
log::record('-----请求值-----');
|
|
|
log::record($_REQUEST);
|
|
|
log::record('-----请求值-----');
|
|
@@ -119,9 +119,9 @@ class Writereport extends Base
|
|
|
$info['bed_no'] = isset($cache['bed_no']) ? $cache['bed_no'] : '';
|
|
|
}
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','info'=>$info,'sessionid'=>$sessionid,'is_remote'=>$is_remote]);
|
|
|
-// }catch(\Exception $e){
|
|
|
-// return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
|
|
|
-// }
|
|
|
+ }catch(\Exception $e){
|
|
|
+ return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
|
|
|
+ }
|
|
|
}
|
|
|
/**
|
|
|
* 上远程申请附件
|
|
@@ -203,7 +203,7 @@ class Writereport extends Base
|
|
|
*")
|
|
|
**/
|
|
|
public function write(){
|
|
|
- try{
|
|
|
+// try{
|
|
|
$sessionid = $_REQUEST['sessionid'];
|
|
|
if(isset($_REQUEST['is_remote']) && $_REQUEST['is_remote'] == 1){
|
|
|
// 是远程写报告 7
|
|
@@ -355,9 +355,9 @@ class Writereport extends Base
|
|
|
$url = 'http://wechat.pacsonline.cn/wx_patient/api/unifyGetWxQrcode?reportId='.$rid;
|
|
|
$info = $this->curl_get($url);
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','msg'=>'保存成功','sessionid'=>$sessionid]);
|
|
|
- }catch(\Exception $e){
|
|
|
- return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
|
|
|
- }
|
|
|
+// }catch(\Exception $e){
|
|
|
+// return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
public function get_exam_status($doctorid,$status){
|