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 b5a834f commit 2337e87Copy full SHA for 2337e87
application/wiki/controller/Api.php
@@ -168,6 +168,13 @@ public function logout() {
168
cache('WikiLogin:' . $ApiAuth, null);
169
cache('WikiLogin:' . $this->appInfo['id'], null);
170
171
+ $oldAdmin = cache('Login:' . $ApiAuth);
172
+ if ($oldAdmin) {
173
+ $oldAdmin = json_decode($oldAdmin, true);
174
+ cache('Login:' . $ApiAuth, null);
175
+ cache('Login:' . $oldAdmin['id'], null);
176
+ }
177
+
178
return $this->buildSuccess([], '登出成功');
179
}
180
0 commit comments