mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 完善细节
This commit is contained in:
parent
7d30a9f11c
commit
44c99ac1fb
@ -139,6 +139,7 @@ class Auth extends Base {
|
|||||||
*/
|
*/
|
||||||
public function edit() {
|
public function edit() {
|
||||||
$res = AdminAuthGroup::update([
|
$res = AdminAuthGroup::update([
|
||||||
|
'id' => $this->request->post('id', 0),
|
||||||
'name' => $this->request->post('name', ''),
|
'name' => $this->request->post('name', ''),
|
||||||
'description' => $this->request->post('description', '')
|
'description' => $this->request->post('description', '')
|
||||||
]);
|
]);
|
||||||
@ -272,5 +273,7 @@ class Auth extends Base {
|
|||||||
(new AdminAuthRule())->whereIn('url', $urlArr)->where('group_id', $id)->delete();
|
(new AdminAuthRule())->whereIn('url', $urlArr)->where('group_id', $id)->delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $this->buildSuccess();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user