针对admin的后台账号对游戏充值和角色查询做完全访问权限,没完全访问权限时必须通过搜索才显示结果

master
liuweiwen 5 years ago
parent 5fdb7946cc
commit ef975943bb

@ -111,6 +111,7 @@ class SpendController extends ThinkController
// $map = '1 = 2'; // $map = '1 = 2';
// $map1 = $map; // $map1 = $map;
// } // }
$this->checkListOrCountAuthRestMap($map,["extend", "pay_order_number", "user_account"]);
$map1 = $map; $map1 = $map;
$map1['pay_status'] = 1; $map1['pay_status'] = 1;
$total = null_to_0(D(self::model_name)->where($map1)->sum('pay_amount')); $total = null_to_0(D(self::model_name)->where($map1)->sum('pay_amount'));

@ -631,6 +631,10 @@ class UserController extends AdminController
$map['role_name'] = trim($_REQUEST['role_name']); $map['role_name'] = trim($_REQUEST['role_name']);
unset($_REQUEST['role_name']); unset($_REQUEST['role_name']);
} }
if (isset($_REQUEST['role_id'])) {
$map['role_id'] = trim($_REQUEST['role_id']);
unset($_REQUEST['role_id']);
}
// $promoteRoot = getPowerPromoteIds(); // $promoteRoot = getPowerPromoteIds();
// $data_empower_type = session('user_auth')['data_empower_type']; // $data_empower_type = session('user_auth')['data_empower_type'];
@ -668,6 +672,7 @@ class UserController extends AdminController
empty(I('user_account')) || $map['user_account'] = ['like', "%" . I('user_account') . "%"]; empty(I('user_account')) || $map['user_account'] = ['like', "%" . I('user_account') . "%"];
$this->checkListOrCountAuthRestMap($map,["role_id", "role_name", "user_account"]);
$list = $this->lists(M('user_play_info', 'tab_'), $map, 'play_time desc'); $list = $this->lists(M('user_play_info', 'tab_'), $map, 'play_time desc');
$this->assign('list', $list); $this->assign('list', $list);
$this->meta_title = '角色数据'; $this->meta_title = '角色数据';

@ -59,6 +59,9 @@
<div class="input-list"> <div class="input-list">
<input type="text" name="role_name" class="" value="{:I('role_name')}" placeholder="角色名称">&nbsp;&nbsp;&nbsp; <input type="text" name="role_name" class="" value="{:I('role_name')}" placeholder="角色名称">&nbsp;&nbsp;&nbsp;
</div> </div>
<div class="input-list">
<input type="text" name="role_id" class="" value="{:I('role_id')}" placeholder="角色ID">&nbsp;&nbsp;&nbsp;
</div>
<div class="input-list input-list-game search_label_rehab"> <div class="input-list input-list-game search_label_rehab">
<select id="game_name" name="game_name" class="select_gallery" > <select id="game_name" name="game_name" class="select_gallery" >
<option value="">游戏名称</option> <option value="">游戏名称</option>

Loading…
Cancel
Save