From 2ed2117b6db3984755e8c022fd3a3cf353b089f8 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Fri, 27 Dec 2019 11:57:33 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/Promote/linkInfo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/View/Promote/linkInfo.html b/Application/Admin/View/Promote/linkInfo.html index 9ba1597d3..800314b47 100644 --- a/Application/Admin/View/Promote/linkInfo.html +++ b/Application/Admin/View/Promote/linkInfo.html @@ -65,7 +65,7 @@ From ee18eac37549735d292f1e58fbfff23be274699b Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Fri, 27 Dec 2019 12:48:31 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/ExportController.class.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 5825a0213..68dc7bfd7 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -3519,16 +3519,17 @@ class ExportController extends Controller } $map = " 1=1 "; $game_map = ""; - if (isset($_REQUEST['game_name'])) { + if (isset($_REQUEST['game_name']) && isset($_REQUEST['server_name'])) { $game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')); - $map .= " AND game_id in (" . 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']}' "; $game_map .= ") "; - } - - if (isset($_REQUEST['server_name'])) { - $map .= " AND server_name = '{$_REQUEST['server_name']}' "; + } else if (isset($_REQUEST['game_name'])) { + $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 as upi where upi.game_id in ({$game_ids}) AND upi.user_id = u.id "; + $game_map .= ") "; } // 获取包含的用户id From 3e11b4d0addd21be60c0245f00380f9c5c710ade Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Fri, 27 Dec 2019 12:57:55 +0800 Subject: [PATCH 03/14] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/ExportController.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 68dc7bfd7..848a23f60 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -3512,11 +3512,11 @@ class ExportController extends Controller $start_time = $start = strtotime($start); $end_time = $end = strtotime($end) + 86400; - if (is_file(RUNTIME_PATH.'/access_data_ltv.txt')) { - $filetxt = file_get_contents(RUNTIME_PATH.'/access_data_ltv.txt'); + // if (is_file(RUNTIME_PATH.'/access_data_ltv.txt')) { + // $filetxt = file_get_contents(RUNTIME_PATH.'/access_data_ltv.txt'); - $data = json_decode($filetxt, true); - } + // $data = json_decode($filetxt, true); + // } $map = " 1=1 "; $game_map = ""; if (isset($_REQUEST['game_name']) && isset($_REQUEST['server_name'])) { From c054595a94ccf55e515df18092a904a9101d46d9 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 27 Dec 2019 13:47:22 +0800 Subject: [PATCH 04/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=88=86=E4=BA=ABbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/HomeController.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 0c8145339..aaed98006 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -42,7 +42,13 @@ class HomeController extends Controller $secret = 'd3219c70a45c5e1954be4608b288d38b'; $tokenUrl = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=' . $appid . '&secret=' . $secret; - $content = file_get_contents(RUNTIME_PATH . 'Data/wechat_ticket'); + $tempDataDir = RUNTIME_PATH . 'Data'; + if(!is_dir($tempDataDir)) { + @mkdir($tempDataDir); + } + + $content = file_get_contents($tempDataDir . '/wechat_ticket'); + $ticketData = null; if ($content) { $ticketData = json_decode($content, true); From b88f395c9a4f5b45a7e447ffc5ddb3b88f882982 Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Fri, 27 Dec 2019 14:05:16 +0800 Subject: [PATCH 05/14] =?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 06/14] =?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 07/14] =?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 08/14] =?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 09/14] =?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 10/14] =?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 11/14] =?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 12/14] =?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 @@
注册即表示同意
- 《用户协议》 + 《用户协议》
From ca401adbd039378e01f9d1f6df9d344b52a6c3b8 Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Fri, 27 Dec 2019 16:49:53 +0800 Subject: [PATCH 13/14] =?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 --- .../Controller/BehaviorLogController.class.php | 16 ++++++++++------ .../Admin/Controller/ExportController.class.php | 15 +++++++++------ .../Admin/View/BehaviorLog/singleSupplement.html | 4 ++-- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/Application/Admin/Controller/BehaviorLogController.class.php b/Application/Admin/Controller/BehaviorLogController.class.php index ddfb070e8..82a4ef224 100644 --- a/Application/Admin/Controller/BehaviorLogController.class.php +++ b/Application/Admin/Controller/BehaviorLogController.class.php @@ -111,6 +111,10 @@ class BehaviorLogController extends ThinkController $map['tab_repair_pay.type'] = $params['type']; } + if(isset($params['type'])) { + $map['tab_spend.extend'] = $params['extend']; + } + if(isset($params['pay_order_number'])) { $map['tab_repair_pay.pay_order_number'] = $params['pay_order_number']; } @@ -120,8 +124,8 @@ class BehaviorLogController extends ThinkController } - if(!empty(I('get.order_number'))) { - $map['tab_spend.order_number'] = I('get.order_number'); + if(!empty(I('get.extend'))) { + $map['tab_spend.extend'] = I('get.extend'); $data = M('repair_pay', 'tab_')->join('tab_spend on tab_spend.pay_order_number = tab_repair_pay.pay_order_number')->where($map)->page($p, $row)->order('tab_repair_pay.id DESC')->select(); } else { $data = M('repair_pay', 'tab_')->where($map)->page($p, $row)->order('id DESC')->select(); @@ -133,10 +137,10 @@ class BehaviorLogController extends ThinkController $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(); + $order_detail = M('deposit', 'tab_')->field('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'] = isset($order_detail['extend']) ? $order_detail['extend'] : '-'; + $re_data['extend'] = 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'] : '-'; @@ -149,8 +153,8 @@ class BehaviorLogController extends ThinkController $show_data[] = $re_data; } - if(!empty(I('get.order_number'))) { - $map['tab_spend.order_number'] = I('get.order_number'); + if(!empty(I('get.extend'))) { + $map['tab_spend.extend'] = I('get.extend'); $count = M('repair_pay', 'tab_')->join('tab_spend on tab_spend.pay_order_number = tab_repair_pay.pay_order_number')->where($map)->count(); } else { $count = M('repair_pay', 'tab_')->where($map)->count(); diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index a8325b244..d5757619a 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -2151,7 +2151,7 @@ class ExportController extends Controller $xlsCell = array( array('type', '类型'), array('pay_order_number', '支付订单号'), - array('order_number', 'CP订单号'), + array('extend', 'CP订单号'), array('pay_time', '充值时间'), array('user_account', '玩家账号'), array('promote_account', '所属推广员'), @@ -2169,6 +2169,9 @@ class ExportController extends Controller $map['tab_repair_pay.create_time'] = array('BETWEEN', [$startTime, $endTime]); } + if(isset($params['type'])) { + $map['tab_spend.extend'] = $params['extend']; + } if(isset($params['type'])) { $map['tab_repair_pay.type'] = $params['type']; @@ -2183,8 +2186,8 @@ class ExportController extends Controller } - if(!empty(I('get.order_number'))) { - $map['tab_spend.order_number'] = I('get.order_number'); + if(!empty(I('get.extend'))) { + $map['tab_spend.extend'] = I('get.extend'); $data = M('repair_pay', 'tab_')->join('tab_spend on tab_spend.pay_order_number = tab_repair_pay.pay_order_number')->where($map)->page($p, $row)->order('tab_repair_pay.id DESC')->select(); } else { $data = M('repair_pay', 'tab_')->where($map)->page($p, $row)->order('id DESC')->select(); @@ -2193,13 +2196,13 @@ class ExportController extends Controller $xlsData = []; 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'] = set_show_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(); + $order_detail = M('deposit', 'tab_')->field('create_time,user_account,promote_account,pay_amount,pay_way')->where(['pay_order_number' => $v['pay_order_number']])->find(); $re_data['pay_time'] = set_show_time($order_detail['create_time']); } - $re_data['order_number'] = !empty($order_detail['order_number']) ? $order_detail['order_number'] : '-'; + $re_data['extend'] = !empty($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'] : '-'; diff --git a/Application/Admin/View/BehaviorLog/singleSupplement.html b/Application/Admin/View/BehaviorLog/singleSupplement.html index 28cc12552..fb3c242f3 100644 --- a/Application/Admin/View/BehaviorLog/singleSupplement.html +++ b/Application/Admin/View/BehaviorLog/singleSupplement.html @@ -51,7 +51,7 @@
- +