Skip to content

Commit 2337e87

Browse files
author
zhaoxiang
committed
modified 完善文档细节
1 parent b5a834f commit 2337e87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

application/wiki/controller/Api.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ public function logout() {
168168
cache('WikiLogin:' . $ApiAuth, null);
169169
cache('WikiLogin:' . $this->appInfo['id'], null);
170170

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+
171178
return $this->buildSuccess([], '登出成功');
172179
}
173180

0 commit comments

Comments
 (0)