We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca3a18c commit 82c77abCopy full SHA for 82c77ab
src/Auth.php
@@ -81,7 +81,7 @@ public function checkAuth($params=[]): bool
81
}
82
if($authConfig['enable'] && empty($token)){
83
throw new ErrorException("token not found");
84
- }else if (!empty($token) && !$this->checkToken($token, "")) {
+ }else if (!empty($token) && !$this->checkToken($token, "") && $authConfig['enable']) {
85
throw new ErrorException("token error");
86
87
return true;
src/annotation/ResponseSuccess.php
@@ -18,4 +18,10 @@ final class ResponseSuccess extends ParamBase
18
*/
19
public $ref;
20
21
+ /**
22
+ * 数据挂载节点
23
+ * @var boolean
24
+ */
25
+ public $main;
26
+
27
0 commit comments