|
@@ -47,7 +47,7 @@ class Writereport extends Base
|
|
|
*")
|
|
|
**/
|
|
|
public function index(){
|
|
|
-// try{
|
|
|
+ try{
|
|
|
log::record('-----请求值-----');
|
|
|
log::record($_REQUEST);
|
|
|
log::record('-----请求值-----');
|
|
@@ -129,9 +129,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()]);
|
|
|
+ }
|
|
|
}
|
|
|
/**
|
|
|
* 上远程申请附件
|