modified 完善细节

This commit is contained in:
zhaoxiang 2020-05-14 18:07:29 +08:00
parent 7d30a9f11c
commit 44c99ac1fb

View File

@ -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();
} }
} }