Commit 65f2fa65 authored by hujun's avatar hujun

修改jwt路径

parent c4e1af19
...@@ -9,6 +9,7 @@ namespace app\api_broker\extend; ...@@ -9,6 +9,7 @@ namespace app\api_broker\extend;
* Time: 9:35 * Time: 9:35
* 基类 * 基类
*/ */
use app\api\untils\JwtUntils;
use app\model\AAgents; use app\model\AAgents;
use app\model\Users; use app\model\Users;
use app\model\GOperatingRecords; use app\model\GOperatingRecords;
...@@ -65,7 +66,7 @@ class Basic extends Controller ...@@ -65,7 +66,7 @@ class Basic extends Controller
} }
/*临时验证 start*/ /*临时验证 start*/
if (isset($this->params['AuthToken']) && $this->params['AuthToken'] != 'null' && !empty($this->params['AuthToken'])) { if (isset($this->params['AuthToken']) && $this->params['AuthToken'] != 'null' && !empty($this->params['AuthToken'])) {
$jwt = new JWT(); $jwt = new \Firebase\JWT\JWT();
$this->authToken = $this->params['AuthToken']; $this->authToken = $this->params['AuthToken'];
$result = $jwt->decode($this->authToken, config('jwt_key'), array('HS256')); //解码token $result = $jwt->decode($this->authToken, config('jwt_key'), array('HS256')); //解码token
$this->timeStamp_ = $result->timeStamp_; $this->timeStamp_ = $result->timeStamp_;
......
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