|
|
@ -1203,12 +1203,20 @@ class MemberController extends ThinkController
|
|
|
|
$this->assign('show_data_power', $show_data_power);
|
|
|
|
$this->assign('show_data_power', $show_data_power);
|
|
|
|
parent::lists("UserLoginRecord", $p, $extend['map']);
|
|
|
|
parent::lists("UserLoginRecord", $p, $extend['map']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//登陆记录删除
|
|
|
|
public function del($model = null, $ids = null)
|
|
|
|
public function del($model = null, $ids = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$map = array();
|
|
|
|
$map = array();
|
|
|
|
if (isset($_REQUEST['id'])) {
|
|
|
|
if (isset($_REQUEST['id'])) {
|
|
|
|
$map['id'] = $_REQUEST['id'];
|
|
|
|
$map['id'] = $_REQUEST['id'];
|
|
|
|
|
|
|
|
//获取玩家账号
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addOperationLog(array(
|
|
|
|
|
|
|
|
"op_type"=>2,
|
|
|
|
|
|
|
|
"key"=>M('user_login_record', 'tab_')->where($map)->field('user_account')->find()['user_account'],
|
|
|
|
|
|
|
|
"url"=>U("Member/login_record")
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
|
|
$data = M('user_login_record', 'tab_')->where($map)->delete();
|
|
|
|
$data = M('user_login_record', 'tab_')->where($map)->delete();
|
|
|
|
\Think\Log::actionLog('Member/del', 'Member', $_REQUEST['id']);
|
|
|
|
\Think\Log::actionLog('Member/del', 'Member', $_REQUEST['id']);
|
|
|
|
$this->success('删除成功!', U('login_record'), 2);
|
|
|
|
$this->success('删除成功!', U('login_record'), 2);
|
|
|
@ -1222,9 +1230,18 @@ class MemberController extends ThinkController
|
|
|
|
if (empty($ids)) {
|
|
|
|
if (empty($ids)) {
|
|
|
|
$this->error('请选择要操作的数据!');
|
|
|
|
$this->error('请选择要操作的数据!');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$ids = implode(",", $ids);
|
|
|
|
$list = M("user_login_record", "tab_");
|
|
|
|
$list = M("user_login_record", "tab_");
|
|
|
|
$map['id'] = array("in", $ids);
|
|
|
|
$map['id'] = array("in", $ids);
|
|
|
|
//$map['status'] = 0;
|
|
|
|
//操作日志
|
|
|
|
|
|
|
|
$lr = M("user_login_record", "tab_")->field('user_account')->where($map)->select();
|
|
|
|
|
|
|
|
foreach ($lr as $k => $v) {
|
|
|
|
|
|
|
|
addOperationLog(array(
|
|
|
|
|
|
|
|
"op_type"=>2,
|
|
|
|
|
|
|
|
"key"=>$v['user_account'],
|
|
|
|
|
|
|
|
"url"=>U("Member/login_record")
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
}
|
|
|
|
$delete = $list->where($map)->delete();
|
|
|
|
$delete = $list->where($map)->delete();
|
|
|
|
if ($delete) {
|
|
|
|
if ($delete) {
|
|
|
|
\Think\Log::actionLog('Member/delprovide', 'Member', 1);
|
|
|
|
\Think\Log::actionLog('Member/delprovide', 'Member', 1);
|
|
|
|