Skip to content

Commit 82c77ab

Browse files
committed
v4.0.3
- 修正登录验证判断问题 - 修正ResponseSuccess注解main无效问题
1 parent ca3a18c commit 82c77ab

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function checkAuth($params=[]): bool
8181
}
8282
if($authConfig['enable'] && empty($token)){
8383
throw new ErrorException("token not found");
84-
}else if (!empty($token) && !$this->checkToken($token, "")) {
84+
}else if (!empty($token) && !$this->checkToken($token, "") && $authConfig['enable']) {
8585
throw new ErrorException("token error");
8686
}
8787
return true;

src/annotation/ResponseSuccess.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ final class ResponseSuccess extends ParamBase
1818
*/
1919
public $ref;
2020

21+
/**
22+
* 数据挂载节点
23+
* @var boolean
24+
*/
25+
public $main;
26+
2127
}

0 commit comments

Comments
 (0)