|
|
|
@ -1668,7 +1668,7 @@ class MemberController extends ThinkController
|
|
|
|
|
if (!empty($tag)) {
|
|
|
|
|
$map['tag'] = $tag;
|
|
|
|
|
}
|
|
|
|
|
$list = M('device_bans', 'tab_')->where($map)->page($p, $row)->select();
|
|
|
|
|
$list = M('device_bans', 'tab_')->where($map)->page($p, $row)->order("create_time desc")->select();
|
|
|
|
|
$count = M('device_bans', 'tab_')->where($map)->count();
|
|
|
|
|
if (!empty($list)) {
|
|
|
|
|
foreach ($list as &$item) {
|
|
|
|
@ -1721,12 +1721,24 @@ class MemberController extends ThinkController
|
|
|
|
|
if ($item) {
|
|
|
|
|
return $this->error("该禁用已经存在(ID:{$item['id']})");
|
|
|
|
|
}
|
|
|
|
|
M('device_bans', 'tab_')->add(['type' => $type, 'tag' => $tag, 'create_time' => time(), 'operator_id' => is_login()]);
|
|
|
|
|
$res = M('device_bans', 'tab_')->add(['type' => $type, 'tag' => $tag, 'create_time' => time(), 'operator_id' => is_login()]);
|
|
|
|
|
addOperationLog(array(
|
|
|
|
|
"op_type"=>0,
|
|
|
|
|
"key"=>$res,
|
|
|
|
|
"menu"=>"用户-玩家组-分控列表-新增",
|
|
|
|
|
"url"=>U("Member/device_bans_list")
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $this->success("新增成功", U('Member/device_bans_list'));
|
|
|
|
|
} else {
|
|
|
|
|
M('device_bans', 'tab_')->where(['id' => $id])->delete();
|
|
|
|
|
addOperationLog(array(
|
|
|
|
|
"op_type"=>2,
|
|
|
|
|
"key"=>$id,
|
|
|
|
|
"menu"=>"用户-玩家组-分控列表-解除",
|
|
|
|
|
"url"=>U("Member/device_bans_list")
|
|
|
|
|
));
|
|
|
|
|
return $this->success("解除成功");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|