|
|
@@ -53,10 +53,10 @@ class jwt
|
|
|
//数据校验
|
|
|
$data = new ValidationData();//使用当前时间来校验数据
|
|
|
|
|
|
- if (!$token->validate($data)) {
|
|
|
- Yii::info('token时间验证没有通过。token:' . $token);
|
|
|
- return 0;
|
|
|
- }
|
|
|
+// if (!$token->validate($data)) {
|
|
|
+// Yii::info('token时间验证没有通过。token:' . $token);
|
|
|
+// return 0;
|
|
|
+// }
|
|
|
//token校验
|
|
|
$signer = new Sha256();//生成JWT时使用的加密方式
|
|
|
$salt = Yii::$app->params['secretKey'];
|
|
|
@@ -72,6 +72,9 @@ class jwt
|
|
|
if ($sourceId != $currentSourceId) {
|
|
|
return 0;
|
|
|
}
|
|
|
+ if (!$token->validate($data)) {
|
|
|
+ Yii::info('token时间验证没有通过,但还是返回了uniqueId:'.$uniqueId.'。 token:' . $token);
|
|
|
+ }
|
|
|
return $uniqueId;
|
|
|
}
|
|
|
|