From 459b722c1c514873b47cbcc58e026c360bff2294 Mon Sep 17 00:00:00 2001
From: jbrazz <2436953959@qq.com>
Date: Tue, 29 Oct 2019 18:19:02 +0800
Subject: [PATCH 1/5] upt
---
.../Admin/Controller/AjaxController.class.php | 37 +++++++++
.../Controller/MemberController.class.php | 31 ++++++--
Application/Admin/View/Member/edit.html | 19 ++++-
Application/Admin/View/Member/role_list.html | 76 +++++++++++++++++++
Application/Admin/View/Member/user_info.html | 59 ++++++++++++--
Application/Admin/View/Promote/lists.html | 2 +-
Application/Admin/View/User/rolelist.html | 3 +
Application/Common/Common/extend.php | 2 +
Application/Home/Model/MemberModel.class.php | 4 +-
9 files changed, 215 insertions(+), 18 deletions(-)
create mode 100644 Application/Admin/View/Member/role_list.html
diff --git a/Application/Admin/Controller/AjaxController.class.php b/Application/Admin/Controller/AjaxController.class.php
index ad020d72d..f56cca3b4 100644
--- a/Application/Admin/Controller/AjaxController.class.php
+++ b/Application/Admin/Controller/AjaxController.class.php
@@ -132,4 +132,41 @@ class AjaxController extends ThinkController{
{
$this->ajaxReturn(['code'=>1, 'msg'=>'获取成功', 'data'=>(new PromoteModel)->getPromotersByLevel($level)]);
}
+
+ public function getGameList($type=0, $sdk_type=0)
+ {
+ $game = M("game","tab_");
+
+ if(MODULE_NAME == 'Admin') {
+ $map['game_status'] = array('in','0,1');
+ } else {
+ $map['game_status'] = 1;
+ }
+
+ if(!empty($type)){
+ /*$map['developers'] = $type == 1? array('EQ',0):array('GT',0);*/
+ /* $map['game_status'] = $type == 1? 1:array('in','0,1'); */
+ switch($type) {
+ case 1:
+ $map['developers'] = array('EQ',0);
+ break;
+ case 2:
+ $map['developers'] = array('EGT',0);
+ break;
+ default:
+ $map['developers'] = array('GT',0);
+ }
+ }else{
+ $map['apply_status'] = 1;
+ $map['online_status'] = 1;
+
+ }
+ if (empty($sdk_type)) {
+ $lists = $game->field('id,game_name,sdk_version,relation_game_name,icon,relation_game_id,game_status,display_site,dow_num')->where($map)->group('relation_game_name')->order("id asc")->select();
+ } else {
+ $map['sdk_version'] = $sdk_type;
+ $lists = $game->field('id,game_name,sdk_version,relation_game_name,icon,relation_game_id,game_status,display_site,dow_num')->where($map)->order("id asc")->select();
+ }
+ $this->ajaxReturn(['code'=>1, 'msg'=>'获取成功', 'data'=>$lists]);
+ }
}
\ No newline at end of file
diff --git a/Application/Admin/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php
index 98f059052..9c0d4c44a 100644
--- a/Application/Admin/Controller/MemberController.class.php
+++ b/Application/Admin/Controller/MemberController.class.php
@@ -13,7 +13,6 @@ class MemberController extends ThinkController
*/
public function user_info($p = 0)
{
-
$hav = '';
if ($_REQUEST['promote_id'] != '') {
if($_REQUEST['promote_id']=='UC'){
@@ -109,6 +108,15 @@ class MemberController extends ThinkController
$map['lock_status'] = $_REQUEST['status'];
unset($_REQUEST['status']);
}
+
+ $game_map = "";
+ if (isset($_REQUEST['game_type'])) {
+ $game_map .= " and tab_user_play_info.sdk_version = {$_REQUEST['game_type']}";
+ }
+
+ if (isset($_REQUEST['game_name'])) {
+ $game_map .= " and tab_user_play_info.game_name like '{$_REQUEST['game_name']}%'";
+ }
if (isset($_REQUEST['viplevel'])) {
@@ -164,20 +172,20 @@ class MemberController extends ThinkController
$data = $usermodel->table('('.$sql1.') as a ')->field('a.id,a.device_number,a.age_status,a.account,a.balance,a.gold_coin,a.alipay,a.promote_id,a.register_type,a.promote_account,a.register_time,a.lock_status,a.register_way,a.register_type,a.register_ip,a.login_time,(a.deposit_total+IFNULL(sum(ss.pay_amount),0)) as recharge_total,check_status')
->join('left join tab_spend as ss on ss.user_id=a.id AND ss.pay_status = 1')
- ->join(isset($_REQUEST['game_id']) ? "tab_user_play as up on up.user_id = a.id and up.game_id = {$_REQUEST['game_id']} " : false)
+ ->join($game_map ? "tab_user_play_info on tab_user_play_info.user_id = a.id $game_map" : false)
->page($page, $row)
->having($havs)
->group('a.id')
->order($order)
->select();
-// var_dump($data);die;
+ //var_dump($usermodel->getLastSql());die;
//计数
$sql = M('user', 'tab_')->field('tab_user.id,(IFNULL(sum(b.pay_amount),0) + IFNULL(sum(ss.pay_amount),0)) AS recharge_total')
->join('left join tab_deposit AS b ON tab_user.id = b.user_id AND b.pay_status = 1')
->join('left join tab_spend as ss on ss.user_id=tab_user.id AND ss.pay_status = 1')
- ->join(isset($_REQUEST['game_id']) ? "tab_user_play as up on up.user_id = tab_user.id and up.game_id = {$_REQUEST['game_id']} " : false)
+ ->join($game_map ? "tab_user_play_info on tab_user_play_info.user_id = tab_user.id $game_map" : false)
->where($map)
->group('tab_user.id')
->where($hav)
@@ -336,7 +344,18 @@ class MemberController extends ThinkController
$this->display();
- }
+ }
+
+ public function role_list($p=1, $user_id='', $row=10)
+ {
+ $limit = ($p-1)*$row . ", $row";
+ $list = M("user_play_info", 'tab_')->where(['user_id'=>$user_id])->limit($limit)->order('play_time desc')->select();
+ $count = M("user_play_info", 'tab_')->where(['user_id'=>$user_id])->count();
+ $page = set_pagination($count,$row);
+ if($page) {$this->assign('_page', $page);}
+ $this->assign('list', $list);
+ $this->display();
+ }
/**
* 公用账户
@@ -717,7 +736,7 @@ class MemberController extends ThinkController
*/
public function lock_status($id, $lock_status)
{
- $map['id'] = $id;
+ $map['id'] = ['in', explode(',', $id)];
$res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status]);
if ($res) {
\Think\Log::actionLog('Member/lock_status','Member',$id);
diff --git a/Application/Admin/View/Member/edit.html b/Application/Admin/View/Member/edit.html
index 428a0dd92..5041ccaa3 100644
--- a/Application/Admin/View/Member/edit.html
+++ b/Application/Admin/View/Member/edit.html
@@ -204,7 +204,13 @@
此处显示该玩家的金币提现记录
-
+
游戏登录记录
@@ -297,6 +303,17 @@
content: [url + 'admin.php?s=/Member/chax/id/' + id + '' , 'no']
});
});
+
+ $("#role").click(function () {
+ layer.open({
+ type: 2,
+ title: "【游戏付费记录】列表",
+ shadeClose: true,
+ shade: 0.8,
+ area: ['70%', '80%'],
+ content: [url + 'admin.php?s=/Member/role_list/user_id/' + id + '' , 'no']
+ });
+ });
$('#tixian').click(function() {
layer.open({
diff --git a/Application/Admin/View/Member/role_list.html b/Application/Admin/View/Member/role_list.html
new file mode 100644
index 000000000..b53c169e1
--- /dev/null
+++ b/Application/Admin/View/Member/role_list.html
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+ 游戏角色列表|----软件管理平台
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 玩家账号
+ 游戏名称
+ 游戏区服
+ 角色ID
+ 角色名
+ 游戏等级
+ 所属推广员
+ 最后登陆时间
+ 最后登陆IP
+
+
+
+
+
+
+ {$data.user_account}
+ {$data.game_name}
+ {$data.server_name}
+ {$data.role_id}
+ {$data.role_name}
+ {$data.role_level}
+ {$data.promote_account}
+ {$data.play_time|date='Y-m-d H:i:s',###}
+ {$data.play_ip}
+
+
+
+
+
+
+
+
+ {$_page}
+
+
+
+
\ No newline at end of file
diff --git a/Application/Admin/View/Member/user_info.html b/Application/Admin/View/Member/user_info.html
index a44d286fe..a23ca712f 100644
--- a/Application/Admin/View/Member/user_info.html
+++ b/Application/Admin/View/Member/user_info.html
@@ -113,11 +113,18 @@
-
+
+ 设备类型
+ 安卓
+ 苹果
+
+
+
+
游戏名称
-
+
@@ -159,6 +170,9 @@
+
+
+
账号ID
第三方来源
@@ -211,6 +225,7 @@
+
{$data.id}
{:get_registertype($data['register_type'])}
@@ -423,22 +438,50 @@ $(function(){
});
$("#promote_level").change();
})
- function shenhe(){
+ var game_name = "{:I('game_name')}";
+ $("#game_type").change(function(){
+ $.ajax({
+ url:"{:U('Ajax/getGameList')}",
+ type:"get",
+ data:{sdk_type:$("#game_type option:selected").val()},
+ dataType:'json',
+ success:function(response){
+ str = '游戏名称 ';
+ // $.each(response.data, function(index, item){
+ // console.log(item.id);
+ // str += ''+item.nickname+' ';
+ // });
+ data = response.data;
+ for (var i in data){
+ str += ""+data[i].relation_game_name+" "
+ }
+ $("#game_name").empty();
+ $("#game_name").append(str);
+ $("#game_name").select2();
+ }
+ })
+ });
+ $("#game_type").change();
+
+ function shenhe(status){
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
return $(elem).val();
}).get().join(',');
+ console.log(text);
$.ajax({
cache: true,
type: "POST",
- url:"{:U('Member/age_check')}",
- data:{id:text},// 你的formid
+ url:"{:U('Member/lock_status')}",
+ data:{id:text, lock_status:status},// 你的formid
async: false,
error: function(data) {
layer.alert("服务器故障,请稍后重试!",{icon: 2});
},
success: function(data) {
- var obj = JSON.parse(data);
- layer.alert(obj.info,{icon:obj.status})
+ // var obj = JSON.parse(data);
+ // layer.alert(obj.info,{icon:obj.status})
+ layer.alert(data.info,{icon:data.status})
+ window.location.reload()
}
});
}
diff --git a/Application/Admin/View/Promote/lists.html b/Application/Admin/View/Promote/lists.html
index 533dacbdc..2694f3be2 100644
--- a/Application/Admin/View/Promote/lists.html
+++ b/Application/Admin/View/Promote/lists.html
@@ -84,7 +84,7 @@
-
- 游戏名称
-
- {$vo.game_name}
-
-
-
+
+ 设备类型
+ 安卓
+ 苹果
+
+
+
+
+ 游戏名称
+
+
+
@@ -230,6 +237,31 @@
})
});
+ var game_name = "{:I('game_name')}";
+ $("#game_type").change(function(){
+ $.ajax({
+ url:"{:U('Ajax/getGameList')}",
+ type:"get",
+ data:{sdk_type:$("#game_type option:selected").val()},
+ dataType:'json',
+ success:function(response){
+ str = '游戏名称 ';
+ // $.each(response.data, function(index, item){
+ // console.log(item.id);
+ // str += ''+item.nickname+' ';
+ // });
+ data = response.data;
+ for (var i in data){
+ str += ""+data[i].relation_game_name+" "
+ }
+ $("#game_name").empty();
+ $("#game_name").append(str);
+ $("#game_name").select2();
+ }
+ })
+ });
+ $("#game_type").change();
+
})
diff --git a/Application/Admin/View/RechargeSum/summation.html b/Application/Admin/View/RechargeSum/summation.html
index 585758b64..b39f5f28c 100644
--- a/Application/Admin/View/RechargeSum/summation.html
+++ b/Application/Admin/View/RechargeSum/summation.html
@@ -65,13 +65,20 @@
-->
-
-
+
+
+ 设备类型
+ 安卓
+ 苹果
+
+
+
+
游戏名称
-
- {$vo.game_name}
-
-
+
+
@@ -308,6 +315,31 @@ $(function(){
})
});
$("#promote_level").change();
+
+ var game_name = "{:I('game_name')}";
+ $("#game_type").change(function(){
+ $.ajax({
+ url:"{:U('Ajax/getGameList')}",
+ type:"get",
+ data:{sdk_type:$("#game_type option:selected").val()},
+ dataType:'json',
+ success:function(response){
+ str = '游戏名称 ';
+ // $.each(response.data, function(index, item){
+ // console.log(item.id);
+ // str += ''+item.nickname+' ';
+ // });
+ data = response.data;
+ for (var i in data){
+ str += ""+data[i].relation_game_name+" "
+ }
+ $("#game_name").empty();
+ $("#game_name").append(str);
+ $("#game_name").select2();
+ }
+ })
+ });
+ $("#game_type").change();
})
From 48de85a3c36caf5f0aab72df598ed8cc82388a44 Mon Sep 17 00:00:00 2001
From: jbrazz <2436953959@qq.com>
Date: Fri, 1 Nov 2019 11:17:48 +0800
Subject: [PATCH 3/5] upt
---
Application/Admin/Common/function.php | 11 +++
.../Admin/Controller/AjaxController.class.php | 27 +++++-
.../Controller/MemberController.class.php | 20 +++-
.../Controller/PublicController.class.php | 1 -
.../RechargeSumController.class.php | 20 +++-
.../Controller/SpendController.class.php | 2 +-
Application/Admin/Model/MemberModel.class.php | 3 +-
.../Admin/View/Member/login_record.html | 25 +++++
Application/Admin/View/Member/user_info.html | 26 +++++
.../Admin/View/RechargeSum/summation.html | 25 +++++
Application/Admin/View/Spend/lists.html | 96 +++++++++++++------
11 files changed, 212 insertions(+), 44 deletions(-)
diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php
index 687ec4204..945e8bb68 100644
--- a/Application/Admin/Common/function.php
+++ b/Application/Admin/Common/function.php
@@ -528,3 +528,14 @@ function getServerType($serverType)
return (($serverType == 1) ? '专服' : '混服');
}
+function getGameByName($game_name=null, $sdk_version=null)
+{
+ $map = [];
+ if ($game_name) {
+ $map['relation_game_name'] = $game_name;
+ }
+ if ($sdk_version) {
+ $map['server_version'] = $sdk_version;
+ }
+ return D("Game")->where($map)->select();
+}
diff --git a/Application/Admin/Controller/AjaxController.class.php b/Application/Admin/Controller/AjaxController.class.php
index f56cca3b4..e5819d404 100644
--- a/Application/Admin/Controller/AjaxController.class.php
+++ b/Application/Admin/Controller/AjaxController.class.php
@@ -34,7 +34,11 @@ class AjaxController extends ThinkController{
* @param $game_id
*/
public function getServer($game_id=""){
- $data = M('server','tab_')->where(['game_id'=>$game_id])->select();
+ $map = [];
+ if (!empty($game_id)) {
+ $map['game_id'] = $game_id;
+ }
+ $data = M('server','tab_')->where($map)->select();
$this->AjaxReturn($data);
}
@@ -42,7 +46,7 @@ class AjaxController extends ThinkController{
*获取充值游戏区服
* @param game_id
*/
- public function getSpendServer($game_id="",$type=1){
+ public function getSpendServer($game_id="",$type=1, $game_type='', $game_name=''){
if($type==2){
$game = M('Game','tab_')->field('id')->where(['game_name'=>$game_id])->find();
$game_id = $game['id'];
@@ -66,7 +70,26 @@ class AjaxController extends ThinkController{
$map['server_name'] = array('neq','');
$data = M('UserPlayInfo','tab_')->field('server_name')->where($map)->group('server_name')->select();
$this->AjaxReturn($data);
+ }
+ public function getGmeServer($game_name="", $sdk_version="")
+ {
+ $game_map = [];
+ if ($game_name) {
+ $game_map['relation_game_name'] = $game_name;
+ }
+ if ($sdk_version) {
+ $map['server_version'] = $game_map['sdk_version'] = $sdk_version;
+ }
+ $game = M("Game", 'tab_')->where($game_map)->getField('id', true);
+
+ // 获取版本信息
+ $map = [];
+ if ($game) {
+ $map['game_id'] = ['in', $game];
+ }
+ $data = M('Server', 'tab_')->field('id, server_name, server_id')->where($map)->select();
+ $this->AjaxReturn($data);
}
/**
diff --git a/Application/Admin/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php
index f2d69f4d1..0d316286e 100644
--- a/Application/Admin/Controller/MemberController.class.php
+++ b/Application/Admin/Controller/MemberController.class.php
@@ -110,12 +110,16 @@ class MemberController extends ThinkController
}
$game_map = "";
- if (isset($_REQUEST['game_type'])) {
- $game_map .= " and tab_user_play.sdk_version = {$_REQUEST['game_type']}";
- }
+ // if (isset($_REQUEST['game_type'])) {
+ // $game_map .= " and tab_user_play.sdk_version = {$_REQUEST['game_type']}";
+ // }
if (isset($_REQUEST['game_name'])) {
- $game_map .= " and tab_user_play.game_name like '{$_REQUEST['game_name']}%'";
+ $game_map .= " and tab_user_play.game_id in (".implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')).")";
+ }
+ $game_play_map = '';
+ if (isset($_REQUEST['server_name'])) {
+ $game_play_map .= " and tab_user_play_info.server_name = '{$_REQUEST['server_name']}' ";
}
if (isset($_REQUEST['viplevel'])) {
@@ -173,6 +177,7 @@ class MemberController extends ThinkController
$data = $usermodel->table('('.$sql1.') as a ')->field('a.id,a.device_number,a.age_status,a.account,a.balance,a.gold_coin,a.alipay,a.promote_id,a.register_type,a.promote_account,a.register_time,a.lock_status,a.register_way,a.register_type,a.register_ip,a.login_time,(a.deposit_total+IFNULL(sum(ss.pay_amount),0)) as recharge_total,check_status')
->join('left join tab_spend as ss on ss.user_id=a.id AND ss.pay_status = 1')
->join($game_map ? "tab_user_play on tab_user_play.user_id = a.id $game_map" : false)
+ ->join($game_play_map ? "tab_user_play_info on tab_user_play_info.user_id = a.id $game_play_map" : false)
->page($page, $row)
->having($havs)
->group('a.id')
@@ -186,12 +191,13 @@ class MemberController extends ThinkController
->join('left join tab_deposit AS b ON tab_user.id = b.user_id AND b.pay_status = 1')
->join('left join tab_spend as ss on ss.user_id=tab_user.id AND ss.pay_status = 1')
->join($game_map ? "tab_user_play on tab_user_play.user_id = tab_user.id $game_map" : false)
+ ->join($game_play_map ? "tab_user_play_info on tab_user_play_info.user_id = tab_user.id $game_play_map" : false)
->where($map)
->group('tab_user.id')
->where($hav)
->having($havs)->select(false);
// var_dump($sql);die;
- $jcount = M('User','tab_')->field('count(a.id) as count')->table('('.$sql.') as a')->select();
+ $jcount = M('User','tab_')->field('count(a.id) as count')->table('('.$sql.') as a')->select();
$count = $jcount[0]['count'];
$model = M('Model')->getByName('user');
@@ -690,6 +696,10 @@ class MemberController extends ThinkController
$map['user_account'] = array('like', '%' . trim($_REQUEST['account']) . '%');
unset($_REQUEST['account']);
}
+ if (isset($_REQUEST['server_name'])) {
+ $map['server_name'] = $_REQUEST['server_name'];
+ unset($_REQUEST['server_name']);
+ }
// $map['type'] = 1;
$map['login_time'] = array('neq', 0);
$extend = array();
diff --git a/Application/Admin/Controller/PublicController.class.php b/Application/Admin/Controller/PublicController.class.php
index 7254d0541..c69553961 100644
--- a/Application/Admin/Controller/PublicController.class.php
+++ b/Application/Admin/Controller/PublicController.class.php
@@ -32,7 +32,6 @@ class PublicController extends \Think\Controller
$Member = D('Member');
if ($Member->login($uid)) { //登录用户
//TODO:跳转到登录前页面
-
$this->success('登录成功!', U('Index/index'));
} else {
diff --git a/Application/Admin/Controller/RechargeSumController.class.php b/Application/Admin/Controller/RechargeSumController.class.php
index c631de761..c9cec2d35 100644
--- a/Application/Admin/Controller/RechargeSumController.class.php
+++ b/Application/Admin/Controller/RechargeSumController.class.php
@@ -35,9 +35,17 @@ class RechargeSumController extends ThinkController{
$rmap['register_time'] = $map['register_time'] = array('BETWEEN',array($startDate,$endDate));
$map['play_time'] = array('BETWEEN',array($startDate,$endDate));
$map['pay_time'] = array('BETWEEN',array($startDate,$endDate));
- if(!empty($_REQUEST['game_id'])){
- $map['game_id'] = $_REQUEST['game_id'];
- $rmap['fgame_id'] = $_REQUEST['game_id'];
+ if(!empty($_REQUEST['game_type'])){
+ $map['sdk_version'] = $_REQUEST['game_type'];
+ $rmap['sdk_version'] = $_REQUEST['game_type'];
+ }
+
+ if(!empty($_REQUEST['game_name'])){
+ $rmap['game_id'] = $map['game_id'] = ['in', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')];
+ }
+
+ if (!empty($_REQUEST['server_name'])) {
+ $rmap['server_name'] = $map['server_name'] = $_REQUEST['server_name'];
}
if($_REQUEST['bindcoin']==1) {
@@ -68,7 +76,8 @@ class RechargeSumController extends ThinkController{
}
//当天注册人数
- $registerNum = D('User')->where(array_merge($rmap,array('puid'=>0)))->join("tab_user_play on tab_user.id = tab_user_play.user_id")->getField("tab_user.id",true);
+ $registerNum = D('User')->where(array_merge($rmap,array('puid'=>0)))->join("tab_user_play on tab_user.id = tab_user_play.user_id and tab_user.fgame_id = tab_user_play.game_id")->field("tab_user.id")->select();
+ $registerNum = $registerNum ? array_column($registerNum, 'id') : [];
//当天活跃人数
$livenNum = D('UserPlay')->where($map)->count("id");
@@ -81,7 +90,8 @@ class RechargeSumController extends ThinkController{
}
$map['pay_status'] = 1;
- $newAddPay = D('Spend')->where(array_merge($map,array('_string'=>'( small_id = 0 or small_id = user_id)')))->sum('pay_amount');
+ $newAddPay = D('Spend')->where(array_merge($map,array('_string'=>'( small_id = 0 or small_id = user_id)')))->sum('pay_amount');
+
//当天累计付费
unset($map['user_id']);
$accumulated = D('Spend')->where($map)->sum('pay_amount');
diff --git a/Application/Admin/Controller/SpendController.class.php b/Application/Admin/Controller/SpendController.class.php
index 688a73315..87b82ec04 100644
--- a/Application/Admin/Controller/SpendController.class.php
+++ b/Application/Admin/Controller/SpendController.class.php
@@ -42,7 +42,7 @@ class SpendController extends ThinkController {
if($_REQUEST['game_name']=='全部'){
unset($_REQUEST['game_name']);
}else{
- $map['tab_spend.game_name']=$_REQUEST['game_name'];
+ $map['tab_spend.game_id']= ['in', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')];
unset($_REQUEST['game_name']);
}
}
diff --git a/Application/Admin/Model/MemberModel.class.php b/Application/Admin/Model/MemberModel.class.php
index 7561364c0..ed1365e8d 100644
--- a/Application/Admin/Model/MemberModel.class.php
+++ b/Application/Admin/Model/MemberModel.class.php
@@ -77,10 +77,9 @@ class MemberModel extends Model {
'username' => $user['nickname'],
'last_login_time' => $user['last_login_time'],
);
-
session('user_auth', $auth);
session('user_auth_sign', data_auth_sign($auth));
-
+ setcookie(session_name(),session_id(),time()+3600);
}
public function getNickName($uid){
diff --git a/Application/Admin/View/Member/login_record.html b/Application/Admin/View/Member/login_record.html
index aa9bee260..1a463dfc1 100644
--- a/Application/Admin/View/Member/login_record.html
+++ b/Application/Admin/View/Member/login_record.html
@@ -72,6 +72,11 @@
-->
+
+
+ 区服名称
+
+
@@ -257,11 +262,31 @@
$("#game_name").empty();
$("#game_name").append(str);
$("#game_name").select2();
+ $("#game_name").change();
}
})
});
$("#game_type").change();
+ var game_server = "{:I('server_name')}";
+ $("#game_name").change(function(){
+ $.ajax({
+ url:"{:U('Ajax/getGmeServer')}",
+ type:"post",
+ data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()},
+ dataType:'json',
+ success:function(data){
+ str = "请选择区服 ";
+ for (var i in data){
+ str += ""+data[i].server_name+" "
+ }
+ $("#server_name").empty();
+ $("#server_name").append(str);
+ $("#server_name").select2();
+ }
+ })
+ });
+
})
diff --git a/Application/Admin/View/Member/user_info.html b/Application/Admin/View/Member/user_info.html
index a23ca712f..b6091d6de 100644
--- a/Application/Admin/View/Member/user_info.html
+++ b/Application/Admin/View/Member/user_info.html
@@ -127,6 +127,12 @@
-->
+
+
+ 区服名称
+
+
+
请选择推广员等级
@@ -458,11 +464,31 @@ $(function(){
$("#game_name").empty();
$("#game_name").append(str);
$("#game_name").select2();
+ $("#game_name").change();
}
})
});
$("#game_type").change();
+ var game_server = "{:I('server_name')}";
+ $("#game_name").change(function(){
+ $.ajax({
+ url:"{:U('Ajax/getGmeServer')}",
+ type:"post",
+ data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()},
+ dataType:'json',
+ success:function(data){
+ str = "请选择区服 ";
+ for (var i in data){
+ str += ""+data[i].server_name+" "
+ }
+ $("#server_name").empty();
+ $("#server_name").append(str);
+ $("#server_name").select2();
+ }
+ })
+ });
+
function shenhe(status){
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
return $(elem).val();
diff --git a/Application/Admin/View/RechargeSum/summation.html b/Application/Admin/View/RechargeSum/summation.html
index b39f5f28c..46e690703 100644
--- a/Application/Admin/View/RechargeSum/summation.html
+++ b/Application/Admin/View/RechargeSum/summation.html
@@ -80,6 +80,11 @@
-->
+
+
+ 区服名称
+
+
请选择推广员等级
@@ -336,10 +341,30 @@ $(function(){
$("#game_name").empty();
$("#game_name").append(str);
$("#game_name").select2();
+ $("#game_name").change();
}
})
});
$("#game_type").change();
+
+ var game_server = "{:I('server_name')}";
+ $("#game_name").change(function(){
+ $.ajax({
+ url:"{:U('Ajax/getGmeServer')}",
+ type:"post",
+ data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()},
+ dataType:'json',
+ success:function(data){
+ str = "请选择区服 ";
+ for (var i in data){
+ str += ""+data[i].server_name+" "
+ }
+ $("#server_name").empty();
+ $("#server_name").append(str);
+ $("#server_name").select2();
+ }
+ })
+ });
})
diff --git a/Application/Admin/View/Spend/lists.html b/Application/Admin/View/Spend/lists.html
index 5de823dd5..02cb3eb65 100644
--- a/Application/Admin/View/Spend/lists.html
+++ b/Application/Admin/View/Spend/lists.html
@@ -58,13 +58,28 @@
+
+ 设备类型
+ 安卓
+ 苹果
+
+
+
+
+ 游戏名称
+
+
+
+