|
|
@@ -53,6 +53,7 @@ class SystemUserController extends BaseController
|
|
|
'sa_system_user.id' => 'id',
|
|
|
'sa_system_user.nickname' => 'nickname',
|
|
|
'sa_system_user.username' => 'username',
|
|
|
+ 'sa_system_user.data_permission' => 'data_permission',
|
|
|
'sa_system_user.phone' => 'phone',
|
|
|
'sa_system_user.email' => 'email',
|
|
|
'sa_system_user.status' => 'status',
|
|
|
@@ -196,22 +197,10 @@ class SystemUserController extends BaseController
|
|
|
*/
|
|
|
public function setUserPermission(Request $request) : Response
|
|
|
{
|
|
|
- $id = $request->post('id');
|
|
|
- $game_list = $request->post('game_list');
|
|
|
- $normal_game_list = $request->post('normal_game_list');
|
|
|
- $ad_permission = $request->post('ad_permission');
|
|
|
- $data = [];
|
|
|
- if ($game_list) {
|
|
|
- $data['game_list'] = $game_list;
|
|
|
- }
|
|
|
- if ($normal_game_list) {
|
|
|
- $data['normal_game_list'] = $normal_game_list;
|
|
|
- }
|
|
|
- if($ad_permission!==null){
|
|
|
- $data['ad_permission'] = $ad_permission;
|
|
|
- }
|
|
|
-
|
|
|
- $this->logic->authEdit($id, $data);
|
|
|
+ $params = $request->post();
|
|
|
+ $id = $params['id'];
|
|
|
+ unset($params['id']);
|
|
|
+ $this->logic->authEdit($id, $params);
|
|
|
$userInfoCache = new UserInfoCache($id);
|
|
|
$userInfoCache->clearUserInfo();
|
|
|
$userAuthCache = new UserAuthCache($id);
|