From e66893dc7fdc97c856c425e71abe2a9ab95abccb Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Fri, 27 Dec 2019 13:43:58 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E5=85=AC=E4=BC=9A=E5=88=86=E6=88=90?= =?UTF-8?q?=E7=AE=A1=E7=90=86--=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PromoteGameRatioController.class.php | 52 +++++++++++++++++++ .../View/PromoteGameRatio/applyRatio.html | 39 +++++++++++++- Application/Admin/View/Query/settlement.html | 28 ---------- 3 files changed, 89 insertions(+), 30 deletions(-) diff --git a/Application/Admin/Controller/PromoteGameRatioController.class.php b/Application/Admin/Controller/PromoteGameRatioController.class.php index 635d62fde..7952b4fa2 100644 --- a/Application/Admin/Controller/PromoteGameRatioController.class.php +++ b/Application/Admin/Controller/PromoteGameRatioController.class.php @@ -146,6 +146,10 @@ class PromoteGameRatioController extends ThinkController if (empty($promoteGameRatio)) { $this->error('参数异常'); } + + $promoteId = $promoteGameRatio['promote_id']; + $this->isWithdraw($promoteId, $save['begin_time']);//是否存在开始时间后已提现数据 + if ($promoteGameRatio['status'] == 1) { $save['last_ratio'] = $promoteGameRatio['ratio']; $save['last_ratio_status'] = 1; @@ -161,6 +165,7 @@ class PromoteGameRatioController extends ThinkController } $promoteId = intval($params['promote_id']); $gameId = intval($params['game_id']); + $this->isWithdraw($promoteId, $save['begin_time']);//是否存在开始时间后已提现数据 $promote = M('promote', 'tab_')->find($promoteId); if (empty($promote) || $promote['level'] != 1) { @@ -217,6 +222,26 @@ class PromoteGameRatioController extends ThinkController } } + private function isWithdraw($promoteId, $beginTime) + { + $promote = M('promote', 'tab_')->find($promoteId); + if (empty($promote)) { + $this->error("数据异常"); + } + if ($promote['level'] != 1) { + $this->error("该推广员不是会长账号,无法执行此操作"); + } + + $withdrawMap['promote_id'] = $promoteId; + $withdrawMap['status'] = ['neq', -2]; + $withdrawMap['settlement_end_time'] = ['egt', $beginTime]; + $withdraw = M('withdraw', 'tab_')->where($withdrawMap)->order('create_time desc')->find(); + if (!empty($withdraw) && $withdraw['status'] != -2) { + $time = date('Y-m-d', $withdraw['create_time']); + $this->error("{$time}之前的订单已经申请提现, 无法变更分成比例,请重新选择开始时间"); + } + } + public function setStatus($status) { $params = I('post.'); @@ -228,6 +253,7 @@ class PromoteGameRatioController extends ThinkController if (empty($status) || !in_array($status, [-1, 1])) { $this->error('操作失败'); } + $time = time(); $map['id'] = ['in', $ids]; $map['status'] = 0; @@ -240,6 +266,32 @@ class PromoteGameRatioController extends ThinkController } $result = D(self::MODEL_NAME)->where($map)->save($save); if ($result) { + if ($status == 1) { + foreach ($ids as $id) { + $promoteGameRatio = D(self::MODEL_NAME)->find($id); + if (!empty($promoteGameRatio)) { + if ($promoteGameRatio['begin_time'] <= strtotime(date('Y-m-d', time()))) { + $promoteId = $promoteGameRatio['promote_id']; + $promoteMap['chain'] = ['like', "/{$promoteId}/%"]; + $promoteIds = M('promote', 'tab_')->where($promoteMap)->getField('id', true); + $promoteIds[] = $promoteId; + + $spendMap['promote_id'] = ['in', $promoteIds]; + $spendMap['game_id'] = $promoteGameRatio['game_id']; + if ($promoteGameRatio['end_time'] > 0) { + $spendMap['pay_time'] = ['between', [$promoteGameRatio['begin_time'], $promoteGameRatio['end_time'] + 3600 * 24 - 1]]; + } else { + $spendMap['pay_time'] = ['egt', $promoteGameRatio['begin_time']]; + } + $spendMap['pay_status'] = 1; + $spendMap['selle_status'] = 0; + + $spendSave['selle_ratio'] = $promoteGameRatio['ratio']; + M('spend', 'tab_')->where($spendMap)->save($spendSave); + } + } + } + } $this->success('操作成功'); } else { $this->error('操作失败'); diff --git a/Application/Admin/View/PromoteGameRatio/applyRatio.html b/Application/Admin/View/PromoteGameRatio/applyRatio.html index c941573b0..3ce73e049 100644 --- a/Application/Admin/View/PromoteGameRatio/applyRatio.html +++ b/Application/Admin/View/PromoteGameRatio/applyRatio.html @@ -112,7 +112,7 @@
- @@ -203,7 +203,42 @@ $(function(){ }); } - $('submit') + $('#submit').click(function (e) { + var target = $('form').get(0).action; + var query = $('form').serialize(); + var that = this; + $(that).addClass('disabled').attr('autocomplete','off').prop('disabled',true); + $.post(target,query).success(function(data){ + if(layer) {layer.closeAll('loading');} + if (data.status==1) { + if (data.url) { + updateAlert(data.info + ' 页面即将自动跳转~'); + }else{ + updateAlert(data.info); + } + setTimeout(function(){ + $(that).removeClass('disabled').prop('disabled',false); + if (data.url) { + location.href=data.url; + }else if( $(that).hasClass('no-refresh')){ + $('#tip').find('.tipclose').click(); + }else{ + location.reload(); + } + },1500); + }else{ + updateAlert(data.info,'tip_error'); + setTimeout(function(){ + $(that).removeClass('disabled').prop('disabled',false); + if (data.url) { + location.href=data.url; + }else{ + $('#tip').find('.tipclose').click(); + } + },3000); + } + }); + }); }); diff --git a/Application/Admin/View/Query/settlement.html b/Application/Admin/View/Query/settlement.html index 0d1b9c874..0ad466c5f 100644 --- a/Application/Admin/View/Query/settlement.html +++ b/Application/Admin/View/Query/settlement.html @@ -46,35 +46,7 @@
- -
-
- 参与结算设置: - -      - -
-
-

注意①:推广结算只结算消费到游戏的所有订单记录。(系统默认全部排除绑币,可视情况自行勾选)

-

注意②:包含绑币勾选请慎重,由于玩家账户部分绑币的来源属于后台发放或者会长代充等,涉及到成本盈亏,是否参与推广员结算请考虑清楚!

-

注意③:推广结算时间请按规律时间统一结算,否则时间不统一容易导致个别游戏在统一时间内无法结算。(结算时间只可选到前一天)

-
-
-
- - -
- -
- -
From 453c0c36823b1284d5717378e331d06b6c4674a5 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Fri, 27 Dec 2019 13:44:57 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=BD=92=E5=B1=9E?= =?UTF-8?q?=E5=90=8D=E8=AF=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/Promote/linkInfo.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/Admin/View/Promote/linkInfo.html b/Application/Admin/View/Promote/linkInfo.html index d7bda346e..4609a2a0e 100644 --- a/Application/Admin/View/Promote/linkInfo.html +++ b/Application/Admin/View/Promote/linkInfo.html @@ -32,9 +32,9 @@
-

下载链接

+

链接归属查询

-

说明:下载链接信息解析

+

说明:链接归属信息解析

@@ -53,10 +53,10 @@
- +
- +
From 6a28abedc093da8a06d9b5d29dcf2a45d38aa6a7 Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Fri, 27 Dec 2019 14:04:25 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E8=A1=A5=E5=8D=95=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/BehaviorLogController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/BehaviorLogController.class.php b/Application/Admin/Controller/BehaviorLogController.class.php index 5306bc473..ddfb070e8 100644 --- a/Application/Admin/Controller/BehaviorLogController.class.php +++ b/Application/Admin/Controller/BehaviorLogController.class.php @@ -130,13 +130,13 @@ class BehaviorLogController extends ThinkController $show_data = []; foreach($data as $k => $v) { if($v['tab'] == 'spend') { - $order_detail = M('spend', 'tab_')->field('order_number,pay_time,user_account,promote_account,game_name,pay_amount,pay_way')->where(['pay_order_number' => $v['pay_order_number']])->find(); + $order_detail = M('spend', 'tab_')->field('extend,pay_time,user_account,promote_account,game_name,pay_amount,pay_way')->where(['pay_order_number' => $v['pay_order_number']])->find(); $re_data['pay_time'] = $order_detail['pay_time']; } elseif($v['tab'] == 'deposit') { $order_detail = M('deposit', 'tab_')->field('order_number,create_time,user_account,promote_account,pay_amount,pay_way')->where(['pay_order_number' => $v['pay_order_number']])->find(); $re_data['pay_time'] = $order_detail['create_time']; } - $re_data['order_number'] = !empty($order_detail['order_number']) ? $order_detail['order_number'] : '-'; + $re_data['order_number'] = isset($order_detail['extend']) ? $order_detail['extend'] : '-'; $re_data['user_account'] = $order_detail['user_account']; $re_data['promote_account'] = $order_detail['promote_account']; $re_data['game_name'] = !empty($order_detail['game_name']) ? $order_detail['game_name'] : '-'; From 873c81605e263591c5321fa07aa2d657d80daa23 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Fri, 27 Dec 2019 14:07:23 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/ExportController.class.php | 5 ++++- Application/Admin/Controller/StatisticsController.class.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index a8325b244..e07184e31 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -3523,7 +3523,10 @@ class ExportController extends Controller $game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')); $map .= " AND game_id in ({$game_ids})"; $game_map = " AND EXISTS (SELECT upi.user_id FROM tab_user_play_info as upi where upi.game_id in ({$game_ids}) AND upi.user_id = u.id "; - if (isset($_REQUEST['server_name'])) $game_map .= " AND upi.server_name = '{$_REQUEST['server_name']}' "; + if (isset($_REQUEST['server_name'])) { + $game_map .= " AND upi.server_name = '{$_REQUEST['server_name']}' "; + $map .= " AND server_name = '{$_REQUEST['server_name']}' "; + }; $game_map .= ") "; } else if (isset($_REQUEST['game_name'])) { $game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')); diff --git a/Application/Admin/Controller/StatisticsController.class.php b/Application/Admin/Controller/StatisticsController.class.php index 5bb786fd6..38a81eb00 100644 --- a/Application/Admin/Controller/StatisticsController.class.php +++ b/Application/Admin/Controller/StatisticsController.class.php @@ -1039,7 +1039,10 @@ class StatisticsController extends ThinkController { $game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')); $map .= " AND game_id in ({$game_ids})"; $game_map = " AND EXISTS (SELECT upi.user_id FROM tab_user_play_info as upi where upi.game_id in ({$game_ids}) AND upi.user_id = u.id "; - if (isset($_REQUEST['server_name'])) $game_map .= " AND upi.server_name = '{$_REQUEST['server_name']}' "; + if (isset($_REQUEST['server_name'])) { + $game_map .= " AND upi.server_name = '{$_REQUEST['server_name']}' "; + $map .= " AND server_name = '{$_REQUEST['server_name']}' "; + }; $game_map .= ") "; } else if (isset($_REQUEST['game_name'])) { $game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')); From f4495f93a92eef0d1ea5cd6ca0352e6623e4ee73 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Fri, 27 Dec 2019 14:40:30 +0800 Subject: [PATCH 05/10] =?UTF-8?q?ltv=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/ExportController.class.php | 8 ++++---- .../Controller/StatisticsController.class.php | 8 ++++---- Application/Admin/View/Statistics/ltv.html | 14 +++++++------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index e07184e31..93b94e43f 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -3519,13 +3519,13 @@ class ExportController extends Controller // } $map = " 1=1 "; $game_map = ""; - if (isset($_REQUEST['game_name']) && isset($_REQUEST['server_name'])) { + if (isset($_REQUEST['game_name']) && isset($_REQUEST['server_id'])) { $game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')); $map .= " AND game_id in ({$game_ids})"; $game_map = " AND EXISTS (SELECT upi.user_id FROM tab_user_play_info as upi where upi.game_id in ({$game_ids}) AND upi.user_id = u.id "; - if (isset($_REQUEST['server_name'])) { - $game_map .= " AND upi.server_name = '{$_REQUEST['server_name']}' "; - $map .= " AND server_name = '{$_REQUEST['server_name']}' "; + if (isset($_REQUEST['server_id'])) { + $game_map .= " AND upi.server_id = '{$_REQUEST['server_id']}' "; + $map .= " AND server_id = '{$_REQUEST['server_id']}' "; }; $game_map .= ") "; } else if (isset($_REQUEST['game_name'])) { diff --git a/Application/Admin/Controller/StatisticsController.class.php b/Application/Admin/Controller/StatisticsController.class.php index 38a81eb00..467be7f9c 100644 --- a/Application/Admin/Controller/StatisticsController.class.php +++ b/Application/Admin/Controller/StatisticsController.class.php @@ -1035,13 +1035,13 @@ class StatisticsController extends ThinkController { $map = " 1=1 "; $game_map = ""; - if (isset($_REQUEST['game_name']) && isset($_REQUEST['server_name'])) { + if (isset($_REQUEST['game_name']) && isset($_REQUEST['server_id'])) { $game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')); $map .= " AND game_id in ({$game_ids})"; $game_map = " AND EXISTS (SELECT upi.user_id FROM tab_user_play_info as upi where upi.game_id in ({$game_ids}) AND upi.user_id = u.id "; - if (isset($_REQUEST['server_name'])) { - $game_map .= " AND upi.server_name = '{$_REQUEST['server_name']}' "; - $map .= " AND server_name = '{$_REQUEST['server_name']}' "; + if (isset($_REQUEST['server_id'])) { + $game_map .= " AND upi.server_id = '{$_REQUEST['server_id']}' "; + $map .= " AND server_id = '{$_REQUEST['server_id']}' "; }; $game_map .= ") "; } else if (isset($_REQUEST['game_name'])) { diff --git a/Application/Admin/View/Statistics/ltv.html b/Application/Admin/View/Statistics/ltv.html index 21d660723..fe5a31fd4 100644 --- a/Application/Admin/View/Statistics/ltv.html +++ b/Application/Admin/View/Statistics/ltv.html @@ -64,7 +64,7 @@
-
@@ -128,7 +128,7 @@ 'end'=>I('end',date('Y-m-d',strtotime('-1 day'))), 'game_name'=>I('game_name'), 'game_type'=>I('game_type'), - 'server_name'=>I('server_name'), + 'server_id'=>I('server_id'), 'xlsname'=>'统计_ltv统计' ),false)}">导出 {$_page|default=''} @@ -222,7 +222,7 @@ $(function(){ pickerPosition:'bottom-right' }); - var game_server = "{:I('server_name')}"; + var game_server = "{:I('server_id')}"; $("#game_type").change(function(){ console.log({sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()}) $.ajax({ @@ -234,11 +234,11 @@ $(function(){ console.log(data) str = ""; for (var i in data){ - str += "" + str += "" } - $("#server_name").empty(); - $("#server_name").append(str); - $("#server_name").select2(); + $("#server_id").empty(); + $("#server_id").append(str); + $("#server_id").select2(); } }) }); From 67caddeef048ac934dbd4e73703c4e580e888ac5 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 27 Dec 2019 14:41:20 +0800 Subject: [PATCH 06/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=90=BD=E5=9C=B0?= =?UTF-8?q?=E9=A1=B5=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/View/default/Home/landingPage.html | 1 + Public/Home/css/index2.css | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index c1d2aafa9..bb612b71a 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -6,6 +6,7 @@ + diff --git a/Public/Home/css/index2.css b/Public/Home/css/index2.css index 7844de6d9..fb11e4c35 100644 --- a/Public/Home/css/index2.css +++ b/Public/Home/css/index2.css @@ -440,7 +440,7 @@ width: 4.40rem; height:0.7rem; margin: 0.15rem 0; - background:linear-gradient(0deg,rgba(210,211,211,1),rgba(209,209,209,1)); + background:linear-gradient(0deg,rgba(196,196,196,1),rgba(217,218,218,1)); box-shadow:0px 0.11rem 0.27rem 0px rgba(24,24,24,0.17); border-radius:0.35rem; text-align: center; @@ -588,7 +588,7 @@ } .register-box{ width: 6rem; - height: 7.2rem; + height: 7.4rem; background-color: #fff; border-radius: 0.3rem; } @@ -638,6 +638,7 @@ border: 0; outline: 0; font-size: 0.24rem; + width: 2rem; } .input-code{ width: 4.6rem; @@ -689,7 +690,7 @@ line-height: 0.7rem; } .register-forget{ - width: 5.4rem; + width: 4.8rem; display: flex; align-items: center; justify-content: space-between; @@ -813,7 +814,7 @@ margin-top: 0.46rem; } .title-two{ - margin-top: 0.77rem; + margin-top: 0.67rem; color: #292929; font-size: 0.28rem; font-weight: bold; From 4cfad7166d9a7768d41fa435ff1d092af0bd8b88 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 27 Dec 2019 14:55:00 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=90=BD=E5=9C=B0?= =?UTF-8?q?=E9=A1=B5=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Public/Home/css/index2.css | 4 ++-- Public/Home/images/20191225/biaoshi.png | Bin 0 -> 2179 bytes 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 Public/Home/images/20191225/biaoshi.png diff --git a/Public/Home/css/index2.css b/Public/Home/css/index2.css index fb11e4c35..f4e2a5487 100644 --- a/Public/Home/css/index2.css +++ b/Public/Home/css/index2.css @@ -624,7 +624,7 @@ .input-box{ display: flex; align-items: center; - width: 4.6rem; + width: 4.4rem; border-bottom: 1px solid #C9C9C9; padding-bottom: 0.14rem; margin-bottom: 0.51rem; @@ -638,7 +638,7 @@ border: 0; outline: 0; font-size: 0.24rem; - width: 2rem; + width: 4rem; } .input-code{ width: 4.6rem; diff --git a/Public/Home/images/20191225/biaoshi.png b/Public/Home/images/20191225/biaoshi.png new file mode 100644 index 0000000000000000000000000000000000000000..fb07436eeb056b60006f0343632ecbf0054c5ec2 GIT binary patch literal 2179 zcmV-}2z>X6P) zUyma+KKK82y0z5Vx?73&h?8pt-JnWQ#0jpsD_u1K1*Gw_yze=Qe-NX(i11%kj>S>@ z*JQdha`00U+e3f$z@M}|%v3*v#19K>!%0CPRJ~+U6@QRzB;5uOe&#^+)XjZTJ+M#Y735Ac5diY0HTB zdO1oNh!XWy?3`;dkY44{iby?4^r+yza_V&9n0)%>@;-!b1J|xW>OHfI?b1x3bQBz! zP^d-;dp2g+w<%<)4nI3xW1^yDoU&X~7AgiJHExWghSNnvDyn)gmf#urp~KgAC1&FJ{8kd5IXXyrP*a=v8w(qyTjAp zFph8*<)9q+L;3fJ+zFaZSy7KT69^mIglr(pt|Tl~VXmTd<%N&+XBjKUY-<(XT~J;* z7m*F17z(94bQOhi6{gBclHfIPQHe+m^sqemyQSl*+<@SNW*dV5wzP{!JHDV)qZD~L zQo3@EyZbYY%trLLIp(VH%6Od+Gmyr;kb%wZ!b$`a^XeHi<*)Jl4SDc|r6GkK=B;^Z ztZZr*asix~hbXrArG{7PN+BcMdu4`mOEH_<0>+koz6Zj-{*dLW(%a@3ol7`=KJrG5 zQuEkYGnKdHh0X1bbBoGS#m-)o?~v?&esM&V!8lGS?&}IzTvevaX`VKVgVAJ^E6Sd& z8A5@+cE_=am^UY5Z`45g4DyCk5WSs_z(O{k_&U%~`jG7Z#o|b;I%q2HY!TL#9A_^i z9`QwHygG$iq*P<&hK(Vc+Z-EP9WR}#bFQ3R3`f%^i>nzgWQDDrj`Iu3QZ@15L>ZEg z|9oL2iWxK{z1@yV9i|qOv=FSRLiWE=J-4dt+7j@I9XSu?yGJX`t|qkQjEYh6BbuA-Eet{X1Q*j2@l4G>5$y@%=~CQW}v+Y z8#^3hvk9xUH0ce!#X5>%c2(Kb=J?{CBCm}_Jau%L*1Y4j?wx1=!r_7@td6su74Ip>j*ao;IPYB%GN}{GHAW-|_v~(KwcY zVh;Ly0?y9FOe|T4NE^e>-jFN1L$Bye0NZ;)x=X@DLx4Rkj+t`8$>|v9!~;Ds6)`#) zGrwX9BwX3!Xe+{*>9iaNCayc4o*j)M8OVgtw?5$AnV1Vp2{-p=*tsP`xu#4lB^2{Q zZ-?Xbbj+#gn7+<{daRsZOt`)`WPNME$*IT}58LNL;nmYsULT9OYGXh#3*#5k^6AX* z-lt|qlSBq$RoY9!RXqWNJprP^zu%2K!Vhi^*xD6vj33=_xsO^@Yr@!st}Q+cPmMl}5LMA-Vm@xf6nJU#%(i1ip4}3wI7=`02lD zymda}rfngMm4v^H)HypBc_HNj=SAa3g+_i`j(?yhs4}WLWlm>%s{Uw%6-vJ$>ND0$k3$uP&&7;RL{uUx{P`TBEn&=-RoeF znI*doaz(4J>jEy6W2WY;SqLV+be6Ktv8JRokTkneGnF=UI`UcJJ*)eX`a$7RKbB#+ z<*}K60ykkjLDGabpdQ(<}J2)#m%A5fTd(DD;$#Dk4`^=x-WySTiX-N1MAV*EUfQvbd~&+$VwF|)wBZH zEjF8(cb2Ed*34qU^rF$*GKjfr&5E3vSmf$8ELlE%V&EJbY2sEIzfISx7~IqT;09nc2vFray^Psp7yuK zsOuR`UrSPf1dW(A-Yo2yG31L%Q+rJfq}J{90&pf5k1J z_mObDqTPsG8qeO3;{Sb5MOOjF5dINH*%yvJ*?zit?0<;-^$9<(LxKPR002ovPDHLk FV1mU}ISK#( literal 0 HcmV?d00001 From 715a1a8a2c41f570d9f629230e8f4fd909e1faa8 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 27 Dec 2019 15:04:37 +0800 Subject: [PATCH 08/10] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A8=E5=B9=BF?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=8C=BA=E6=9C=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PlatformController.class.php | 31 ++++++++++--------- .../View/Platform/promote_statistics.html | 12 ++++--- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/Application/Admin/Controller/PlatformController.class.php b/Application/Admin/Controller/PlatformController.class.php index 0774439ec..dc5d31e2c 100644 --- a/Application/Admin/Controller/PlatformController.class.php +++ b/Application/Admin/Controller/PlatformController.class.php @@ -432,7 +432,7 @@ class PlatformController extends ThinkController unset($_REQUEST['game_name']); } if (isset($_REQUEST['server_id'])) { - $play_info_map .= " and upi.server_name = '{$_REQUEST['server_id']}' "; + $play_info_map .= " and upi.server_id = '{$_REQUEST['server_id']}' "; } $today = total(1); @@ -489,6 +489,7 @@ class PlatformController extends ThinkController ->group('tp1.id') ->order('register_time') ->select(); + // dd($tdata);die(); $tmdata = []; foreach($data as $k=>$v){ @@ -497,19 +498,18 @@ class PlatformController extends ThinkController $v['mounth'] = 0; $tmdata[$v['id']] = $v; } - foreach ($tdata as $k => $v) { - - $tmdata[$v['id']]['today'] = $v['today']; - $tmdata[$v['id']]['week'] = $v['week']; - $tmdata[$v['id']]['mounth'] = $v['mounth']; - - if (!$tmdata[$v['id']]['promote_account']) { - $tmdata[$v['id']]['promote_account'] = $v['promote_account']; - $tmdata[$v['id']]['count'] = 0; + if(!empty($tdata)){ + foreach ($tdata as $k => $v) { + $tmdata[$v['id']]['today'] = $v['today']; + $tmdata[$v['id']]['week'] = $v['week']; + $tmdata[$v['id']]['mounth'] = $v['mounth']; + if (!$tmdata[$v['id']]['promote_account']) { + $tmdata[$v['id']]['promote_account'] = $v['promote_account']; + $tmdata[$v['id']]['count'] = 0; + } } - - } + $data = []; foreach($tmdata as $k => $v){ $data[] = $v; @@ -519,7 +519,8 @@ class PlatformController extends ThinkController unset($map['tp1.chain']); unset($tmap['tp1.chain']); unset($tmap['tp1.chain']); - $map['promote_id'] = 0; + $map['u.promote_id'] = 0; + $tmap['u.promote_id'] = 0; $authorityData['count'] = 0; //如果有官方渠道权限 @@ -527,7 +528,8 @@ class PlatformController extends ThinkController if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) { //官方渠道数据添加 $authorityData = M('user', 'tab_')->alias('u') - ->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time,count(id) as count') + ->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time,count(u.id) as count') + ->join($play_info_map ? "tab_user_play_info as upi on upi.user_id = u.id " . $play_info_map : false) ->where($map) ->find(); $tauthorityData = M('user', 'tab_')->alias('u') @@ -536,6 +538,7 @@ class PlatformController extends ThinkController count(IF(register_time ' . $week . ',1,null)) as week, count(IF(register_time ' . $mounth . ',1,null)) as mounth') ->where($tmap) + ->join($play_info_map ? "tab_user_play_info as upi on upi.user_id = u.id " . $play_info_map : false) ->find(); $authorityData['today'] = $tauthorityData['today']; $authorityData['week'] = $tauthorityData['week']; diff --git a/Application/Admin/View/Platform/promote_statistics.html b/Application/Admin/View/Platform/promote_statistics.html index 78e9e9ea8..bc83d84e4 100644 --- a/Application/Admin/View/Platform/promote_statistics.html +++ b/Application/Admin/View/Platform/promote_statistics.html @@ -286,14 +286,15 @@ $("#game_id").change(function(){ $.ajax({ - url:"{:U('Ajax/getUserServer')}", + url:"{:U('getSpendServer')}", type:"post", data:{game_id:$("#game_id option:selected").attr('game-id')}, dataType:'json', success:function(data){ + console.log(data) str = ""; for (var i in data){ - str += "" + str += "" } $("#server_id").empty(); $("#server_id").append(str); @@ -306,14 +307,15 @@ var game_server = "{:I('server_id')}"; if(game_id){ $.ajax({ - url:"{:U('Ajax/getUserServer')}", + url:"{:U('getSpendServer')}", type:"post", - data:{game_id:game_id,type:2}, + data:{game_name:game_id}, dataType:'json', success:function(data){ + console.log(data) str = ""; for (var i in data){ - str += "" + str += "" } $("#server_id").empty(); $("#server_id").append(str); From 297ca262b6234d9ad4cccd9824baa72e7cf1d0c1 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 27 Dec 2019 15:33:39 +0800 Subject: [PATCH 09/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=90=BD=E5=9C=B0?= =?UTF-8?q?=E9=A1=B5=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Public/Home/css/index2.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Public/Home/css/index2.css b/Public/Home/css/index2.css index f4e2a5487..2d467bbcf 100644 --- a/Public/Home/css/index2.css +++ b/Public/Home/css/index2.css @@ -641,7 +641,7 @@ width: 4rem; } .input-code{ - width: 4.6rem; + width: 4.4rem; display: flex; align-items: flex-end; justify-content: space-between; @@ -783,6 +783,7 @@ color: #292929; font-size: 0.28rem; font-weight: bold; + width: 4.6rem; } .title-one>img{ width: 0.3rem; @@ -802,7 +803,7 @@ font-weight: 400; } .mounting-btn{ - width:4.4rem; + width:4.6rem; height:0.7rem; background:linear-gradient(0deg,rgba(33,177,235,1),rgba(88,197,240,1)); box-shadow:0px 0.11rem 0.27rem 0px rgba(24,24,24,0.17); @@ -818,6 +819,7 @@ color: #292929; font-size: 0.28rem; font-weight: bold; + width: 4.6rem; } From 0a86f3a33cdfaa33302d3757d566553c3402d5df Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 27 Dec 2019 15:43:34 +0800 Subject: [PATCH 10/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/View/default/Home/landingPage.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index bb612b71a..279e4f0d1 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -468,7 +468,7 @@
注册即表示同意
- 《用户协议》 + 《用户协议》