更新:后台权限排序更新调整时,同步更新角色权限缓存

virtual
zwesy 2020-12-04 18:32:15 +08:00
parent adc9c78394
commit 2ba5674952
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class Rule extends Base
if(!empty($updateData)){
$model = new AuthRule();
$model->saveAll($updateData);
AuthGroup::resetGroupRulesCache();
$sortStr = $sort == 'up' ? '上移' : '下调';
Log::write('rule', 'sort', "权限排序ID{$id} ,标题:{$item['title']}{$sortStr}{$num}");
return $this->json();