Commit 07a6ea42 authored by hujun's avatar hujun

AuthToken 有效期1年

parent 69bcad24
...@@ -124,8 +124,8 @@ class Basic extends Controller ...@@ -124,8 +124,8 @@ class Basic extends Controller
public function verifyTime() public function verifyTime()
{ {
//authToken有效期为30天 //authToken有效期为30天2592000,1年31449601
if ((time() - $this->timeStamp_) > 2592000) { if ((time() - $this->timeStamp_) > 31449601) {
echo json_encode(array( "code" => "300", "msg" => "AuthToken失效,请重新登录!", "data" => [], "type" => "json" )); echo json_encode(array( "code" => "300", "msg" => "AuthToken失效,请重新登录!", "data" => [], "type" => "json" ));
exit; exit;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment