|
@@ -20,8 +20,13 @@ class CheckAuth
|
|
|
$request->uid=0;
|
|
|
$request->uname='';
|
|
|
$param = $request->post();
|
|
|
+ $header = $request->header();
|
|
|
+// Log::write("IPAddr:".$request->server("REMOTE_ADDR"),"info");
|
|
|
+// Log::write("Action:".$request->server("REQUEST_URI"),"info");
|
|
|
+// Log::write("param:".json_encode($param),"info");
|
|
|
+// Log::write("header:".json_encode($header),"info");
|
|
|
if(!isset($param['token'])||$param['token']==''){
|
|
|
- $header = $request->header();
|
|
|
+// Log::write("Action:".$request->server("REQUEST_URI"),"info");
|
|
|
$check =$this->check($header,$param);
|
|
|
if($check['code']==1){
|
|
|
return json_show(104,$check['msg']);
|
|
@@ -40,6 +45,10 @@ class CheckAuth
|
|
|
|
|
|
|
|
|
}
|
|
|
+ public function end(Response $response)
|
|
|
+ {
|
|
|
+// Log::write("response:".json_encode($response->getContent(),JSON_UNESCAPED_UNICODE),"info");
|
|
|
+ }
|
|
|
/**数据接口签名验证
|
|
|
* @param $data
|
|
|
* @param $param
|