mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b82ac00bf4
@ -138,7 +138,7 @@ class App extends Base {
|
|||||||
return $this->buildFailed(ReturnCode::DB_SAVE_ERROR);
|
return $this->buildFailed(ReturnCode::DB_SAVE_ERROR);
|
||||||
}
|
}
|
||||||
$appInfo = AdminApp::get($id);
|
$appInfo = AdminApp::get($id);
|
||||||
cache('AccessToken:' . $appInfo['app_secret'], null);
|
cache('AccessToken:Easy:' . $appInfo['app_secret'], null);
|
||||||
if($oldWiki = cache('WikiLogin:' . $id)) {
|
if($oldWiki = cache('WikiLogin:' . $id)) {
|
||||||
cache('WikiLogin:' . $oldWiki, null);
|
cache('WikiLogin:' . $oldWiki, null);
|
||||||
}
|
}
|
||||||
@ -174,7 +174,7 @@ class App extends Base {
|
|||||||
return $this->buildFailed(ReturnCode::DB_SAVE_ERROR);
|
return $this->buildFailed(ReturnCode::DB_SAVE_ERROR);
|
||||||
}
|
}
|
||||||
$appInfo = AdminApp::get($postData['id']);
|
$appInfo = AdminApp::get($postData['id']);
|
||||||
cache('AccessToken:' . $appInfo['app_secret'], null);
|
cache('AccessToken:Easy:' . $appInfo['app_secret'], null);
|
||||||
if($oldWiki = cache('WikiLogin:' . $postData['id'])) {
|
if($oldWiki = cache('WikiLogin:' . $postData['id'])) {
|
||||||
cache('WikiLogin:' . $oldWiki, null);
|
cache('WikiLogin:' . $oldWiki, null);
|
||||||
}
|
}
|
||||||
@ -194,7 +194,7 @@ class App extends Base {
|
|||||||
return $this->buildFailed(ReturnCode::EMPTY_PARAMS, '缺少必要参数');
|
return $this->buildFailed(ReturnCode::EMPTY_PARAMS, '缺少必要参数');
|
||||||
}
|
}
|
||||||
$appInfo = AdminApp::get($id);
|
$appInfo = AdminApp::get($id);
|
||||||
cache('AccessToken:' . $appInfo['app_secret'], null);
|
cache('AccessToken:Easy:' . $appInfo['app_secret'], null);
|
||||||
|
|
||||||
AdminApp::destroy($id);
|
AdminApp::destroy($id);
|
||||||
if($oldWiki = cache('WikiLogin:' . $id)) {
|
if($oldWiki = cache('WikiLogin:' . $id)) {
|
||||||
|
@ -25,8 +25,11 @@ class UpdateAdminMenuData extends Migrator {
|
|||||||
* with the Table class.
|
* with the Table class.
|
||||||
*/
|
*/
|
||||||
public function up() {
|
public function up() {
|
||||||
$this->execute('UPDATE admin_menu SET show = 2 WHERE show = 0;');
|
$this->execute('UPDATE `admin_menu` SET `show` = 2 WHERE `show` = 0;');
|
||||||
$this->execute('UPDATE admin_menu SET show = 0 WHERE show = 1;');
|
$this->execute('UPDATE `admin_menu` SET `show` = 0 WHERE `show` = 1;');
|
||||||
$this->execute('UPDATE admin_menu SET show = 1 WHERE show = 2;');
|
$this->execute('UPDATE `admin_menu` SET `show` = 1 WHERE `show` = 2;');
|
||||||
|
$this->execute('UPDATE `admin_menu` SET `level` = 1 WHERE `fid` = 0;');
|
||||||
|
$this->execute('UPDATE `admin_menu` SET `level` = 3 WHERE `url` != "";');
|
||||||
|
$this->execute('UPDATE `admin_menu` SET `level` = 2 WHERE `level` = 0;');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user