-
-
-
-
-
-
-
+
+
+
+
+
+
+
{$game['relation_game_name']}
+
{$game['features']}
+
+
+
免费安装
+
+
免费安装
+
+
+
+
+
+
+
+
+
{$game['game_score']}
+
+
+
14.48K个评分
+
+
+
#{$game['recommend_level']}
+
网络游戏
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
简介
+
{$game['features']}
+
+
+
+
评分及评论
+
+
+ {$game['game_score']}
+ 满分5分
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
14.48K个评分
+
+
+
+
+
新功能
+
更新说明:
+
1、优化用户体验
+
+
+
+
-
-
-
-
-
\ No newline at end of file
From 8fd70a94e7f82106b6334a8506ee513bb35c022b Mon Sep 17 00:00:00 2001
From: liuweiwen <“529520975@qq.com>
Date: Fri, 29 Nov 2019 11:47:13 +0800
Subject: [PATCH 11/27] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Home/View/default/Home/landingPage.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html
index 78b2e994e..34372a598 100644
--- a/Application/Home/View/default/Home/landingPage.html
+++ b/Application/Home/View/default/Home/landingPage.html
@@ -9,6 +9,7 @@
+
From 1bd90da91417b97bd7a3d18cdbcac771e7575dcb Mon Sep 17 00:00:00 2001
From: liuweiwen <“529520975@qq.com>
Date: Fri, 29 Nov 2019 12:12:35 +0800
Subject: [PATCH 12/27] =?UTF-8?q?=E3=80=90=E7=BB=9F=E8=AE=A1=E3=80=91-?=
=?UTF-8?q?=E3=80=90=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=E3=80=91-?=
=?UTF-8?q?=E3=80=90ARPU=E5=88=86=E6=9E=90=E3=80=91=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BC=82=E5=B8=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Admin/Controller/StatController.class.php | 56 +++++++++++++++----
1 file changed, 44 insertions(+), 12 deletions(-)
diff --git a/Application/Admin/Controller/StatController.class.php b/Application/Admin/Controller/StatController.class.php
index a9c341bec..325a530f8 100644
--- a/Application/Admin/Controller/StatController.class.php
+++ b/Application/Admin/Controller/StatController.class.php
@@ -604,7 +604,11 @@ class StatController extends ThinkController
->where($map)
->group('user_id')
->find();
- $data[$key]['keep_num'] = round($num['num']/$data[$key]['register_num'],4)*100;
+ if (!empty($data[$key]['register_num'])) {
+ $data[$key]['keep_num'] = round($num['num']/$data[$key]['register_num'],4)*100;
+ } else {
+ $data[$key]['keep_num'] = 0;
+ }
//充值
$map = $map_list;
empty($game_name ) || $map['game_name'] = array('like','%'.$game_name.'%');
@@ -638,12 +642,24 @@ class StatController extends ThinkController
$data[$key]['new_pop'] = $query[0]['num'];
//付费率
- $data[$key]['spend_rate'] = round($data[$key]['spend_people']/$data[$key]['act_user'],4)*100;
+ if (!empty($data[$key]['act_user'])) {
+ $data[$key]['spend_rate'] = round($data[$key]['spend_people']/$data[$key]['act_user'],4)*100;
+ } else {
+ $data[$key]['spend_rate'] = 0;
+ }
//ARPU
- $data[$key]['ARPU'] = round($data[$key]['spend']/$data[$key]['act_user'],2);
- //ARPPU
- $data[$key]['ARPPU'] = round($data[$key]['spend']/$data[$key]['spend_people'],2);
+ if (!empty($data[$key]['act_user'])) {
+ $data[$key]['ARPU'] = round($data[$key]['spend']/$data[$key]['act_user'],2);
+ } else {
+ $data[$key]['ARPU'] = 0;
+ }
+ //ARPPU
+ if (!empty($data[$key]['spend_people'])) {
+ $data[$key]['ARPPU'] = round($data[$key]['spend']/$data[$key]['spend_people'],2);
+ } else {
+ $data[$key]['ARPPU'] = 0;
+ }
//累计付费玩家
$map = $map_list;
empty($hasbindcoins) || $map['pay_way'] = $hasbindcoins['pay_way'];
@@ -1144,7 +1160,11 @@ class StatController extends ThinkController
->join("right join tab_user_login_record as ur on ur.user_id = tab_user.id and FROM_UNIXTIME(ur.login_time,'%Y-%m-%d') = '{$login_time}'")
->where($mapl)
->find();
- $data[$key]['keep_num'] = round($num['num']/$data[$key]['register_num'],4)*100;
+ if (!empty($data[$key]['register_num'])) {
+ $data[$key]['keep_num'] = round($num['num']/$data[$key]['register_num'],4)*100;
+ } else {
+ $data[$key]['keep_num'] = 0;
+ }
//充值
$mapl = $map_list;
empty($game_name ) || $mapl['game_name'] = array('like','%'.$game_name.'%');
@@ -1157,15 +1177,26 @@ class StatController extends ThinkController
//付费玩家数
$data[$key]['spend_people'] = $spend['people'];
//付费率
- $data[$key]['spend_rate'] = round($data[$key]['spend_people']/$data[$key]['act_user'],4)*100;
+ if (!empty($data[$key]['act_user'])) {
+ $data[$key]['spend_rate'] = round($data[$key]['spend_people']/$data[$key]['act_user'],4)*100;
+ } else {
+ $data[$key]['spend_rate'] = 0;
+ }
//ARPU
- $data[$key]['ARPU'] = round($data[$key]['spend']/$data[$key]['act_user'],2);
+ if (!empty($data[$key]['act_user'])) {
+ $data[$key]['ARPU'] = round($data[$key]['spend']/$data[$key]['act_user'],2);
+ } else {
+ $data[$key]['ARPU'] = 0;
+ }
//ARPPU
- $data[$key]['ARPPU'] = round($data[$key]['spend']/$data[$key]['spend_people'],2);
- if($data[$key]['register_num']==0&&$data[$key]['act_user']==0&&$data[$key]['keep_num']==0&&$data[$key]['spend']==0&&$data[$key]['spend_people']==0){
- unset($data[$key]);
+ if (!empty($data[$key]['spend_people'])) {
+ $data[$key]['ARPPU'] = round($data[$key]['spend']/$data[$key]['spend_people'],2);
+ } else {
+ $data[$key]['ARPPU'] = 0;
}
-
+// if($data[$key]['register_num']==0&&$data[$key]['act_user']==0&&$data[$key]['keep_num']==0&&$data[$key]['spend']==0&&$data[$key]['spend_people']==0){
+// unset($data[$key]);
+// }
}
$count=count($data);
if($count > $row){
@@ -1180,6 +1211,7 @@ class StatController extends ThinkController
$this->assign('list_data',$data);
$this->display();
}
+
function game_analysis(){
if($_REQUEST['time-start']!=''&&$_REQUEST['time-end']!=''){
$start=$_REQUEST['time-start'];
From b61587868bcd13232b4c5da0dcdb0a72ac5d3211 Mon Sep 17 00:00:00 2001
From: liuweiwen <“529520975@qq.com>
Date: Fri, 29 Nov 2019 12:22:21 +0800
Subject: [PATCH 13/27] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=B9=BF=E5=91=8A?=
=?UTF-8?q?=E5=9B=BE=E7=89=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Admin/Controller/FileController.class.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Application/Admin/Controller/FileController.class.php b/Application/Admin/Controller/FileController.class.php
index 44f7c7a50..0e1304463 100644
--- a/Application/Admin/Controller/FileController.class.php
+++ b/Application/Admin/Controller/FileController.class.php
@@ -209,9 +209,9 @@ class FileController extends AdminController
); //TODO:上传到远程服务器
// 添加水印
- if ($_REQUEST['flag']) {
- $this->addWatermarkOnPic($info['download']);
- }
+// if ($_REQUEST['flag']) {
+// $this->addWatermarkOnPic($info['download']);
+// }
/* 记录图片信息 */
if ($info) {
From 56d3718c14b6b67d802b237029e2d3ebace37ba6 Mon Sep 17 00:00:00 2001
From: zhengyongxing
Date: Fri, 29 Nov 2019 14:15:42 +0800
Subject: [PATCH 14/27] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controller/MemberController.class.php | 9 +++-
.../Admin/View/Member/login_record.html | 42 +++++++++++++++++++
2 files changed, 50 insertions(+), 1 deletion(-)
diff --git a/Application/Admin/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php
index afde5599c..8f064b6a8 100644
--- a/Application/Admin/Controller/MemberController.class.php
+++ b/Application/Admin/Controller/MemberController.class.php
@@ -788,13 +788,20 @@ class MemberController extends ThinkController
$map['server_name'] = $_REQUEST['server_name'];
unset($_REQUEST['server_name']);
}
+ if (isset($_REQUEST['promote_id'])) {
+ $map['promote_id'] = $_REQUEST['promote_id'];
+ unset($_REQUEST['promote_id']);
+ }
// $map['type'] = 1;
// $map['login_time'] = ['exp', 'login_time<>0'];
$extend = array();
$extend['map'] = $map;
-
+ $count = M('UserLoginRecord','tab_')->field('user_id')->where($extend['map'])->group('user_id')->select(false);
+ $sql = "select count(user_id) as count from ({$count})t";
+ $count = M('UserLoginRecord','tab_')->query($sql);
$this->m_title = '登录记录';
+ $this->assign('user_count',$count[0]['count']);
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Member/login_record', 'status' => 1])->find());
parent::lists("UserLoginRecord", $p, $extend['map']);
diff --git a/Application/Admin/View/Member/login_record.html b/Application/Admin/View/Member/login_record.html
index 93fd046e7..8de70f9e1 100644
--- a/Application/Admin/View/Member/login_record.html
+++ b/Application/Admin/View/Member/login_record.html
@@ -90,6 +90,21 @@
+
+
+ -
+
+
+
+
- 复制成功,ctrl+v粘贴即可
+ 复制成功,ctrl+v粘贴即可
+
@@ -887,12 +895,22 @@
});
});
- new ClipboardJS('#clipboard-btn', {
+ var clipboard = new ClipboardJS('#clipboard-btn', {
text: function(trigger) {
return trigger.getAttribute('data-text');
}
})
+ clipboard.on('success', function (e) {
+ $('#copy_msg').text('复制成功,ctrl+v粘贴即可');
+ $('#clipboard-btn').hide();
+ });
+
+ clipboard.on('error', function (e) {
+ $('#copy_msg').text('自动复制失败,请点击复制按钮');
+ $('#clipboard-btn').show();
+ });
+
$('#submit').click(function () {
var url = $(this).attr('url');
var query = $('.jssearch').find('input').serialize();
From 43c1f7832a3af4231cd04a2e5c1ca47b62d011c8 Mon Sep 17 00:00:00 2001
From: liuweiwen <“529520975@qq.com>
Date: Fri, 29 Nov 2019 16:42:33 +0800
Subject: [PATCH 16/27] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Home/Controller/HomeController.class.php | 1 +
.../Home/View/default/Home/landingPage.html | 33 ++++++++++++++++++-
2 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php
index 97d6a27b6..b6666d374 100644
--- a/Application/Home/Controller/HomeController.class.php
+++ b/Application/Home/Controller/HomeController.class.php
@@ -227,6 +227,7 @@ class HomeController extends Controller
$this->assign('apply', $apply);
$this->assign('game', $game);
$this->assign('promoteId', $promoteId);
+ $this->assign('cur_url', "http://" . $_SERVER['HTTP_HOST'] . __SELF__);
$this->display('landingPage');
}
diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html
index 34372a598..fbb757adf 100644
--- a/Application/Home/View/default/Home/landingPage.html
+++ b/Application/Home/View/default/Home/landingPage.html
@@ -198,7 +198,7 @@
• 至尊下载:永不闪退、不丢数据稳定有保障
• 同一设备安装一次可在一年内无限次下载重装
¥10至尊下载
- 普通下载
+ 普通下载