框架升级及修复升级后的bug
This commit is contained in:
@@ -82,7 +82,6 @@ class Rule extends Backend
|
||||
if ($result === false) {
|
||||
$this->error($this->model->getError());
|
||||
}
|
||||
Cache::rm('__menu__');
|
||||
$this->success();
|
||||
}
|
||||
$this->error();
|
||||
@@ -115,6 +114,7 @@ class Rule extends Backend
|
||||
$this->error(__('Can not change the parent to child'));
|
||||
}
|
||||
}
|
||||
$params = $this->preExcludePrimaryKey($params);
|
||||
//这里需要针对name做唯一验证
|
||||
$ruleValidate = \think\Loader::validate('AuthRule');
|
||||
$ruleValidate->rule([
|
||||
@@ -124,7 +124,6 @@ class Rule extends Backend
|
||||
if ($result === false) {
|
||||
$this->error($row->getError());
|
||||
}
|
||||
Cache::rm('__menu__');
|
||||
$this->success();
|
||||
}
|
||||
$this->error();
|
||||
|
||||
Reference in New Issue
Block a user