From f855835501ddec1da27b33978c18fed6136e9a45 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 30 Dec 2020 11:04:07 +0800 Subject: [PATCH 01/12] =?UTF-8?q?12.28=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PlatformController.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Application/Admin/Controller/PlatformController.class.php b/Application/Admin/Controller/PlatformController.class.php index 0260a2429..cf41d1e5b 100644 --- a/Application/Admin/Controller/PlatformController.class.php +++ b/Application/Admin/Controller/PlatformController.class.php @@ -1186,9 +1186,9 @@ class PlatformController extends ThinkController } $tdata = M('promote', 'tab_')->alias('tp1') ->field('tp1.account as promote_account,tp1.id,g.relation_game_id,g.relation_game_name, - floor(sum(IF(s.pay_time ' . $today . ',pay_amount,0))*100) as today, - floor(sum(IF(s.pay_time ' . $week . ',pay_amount,0))*100) as week, - floor(sum(IF(s.pay_time ' . $mounth . ',pay_amount,0))*100) as mounth') + floor(sum(IF(s.pay_time ' . $today . ' and is_check=1,pay_amount,0))*100) as today, + floor(sum(IF(s.pay_time ' . $week . ' and is_check=1,pay_amount,0))*100) as week, + floor(sum(IF(s.pay_time ' . $mounth . ' and is_check=1,pay_amount,0))*100) as mounth') ->join("tab_promote AS tp2 ON tp2.`chain` LIKE CONCAT('%/', tp1.id, '/%') OR tp2.id = tp1.id", 'left') ->join("tab_spend as s on tp2.id = s.promote_id", 'left') ->join("tab_game as g on g.id = s.game_id", 'left') @@ -1243,14 +1243,14 @@ class PlatformController extends ThinkController if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) { //官方渠道数据添加 $authorityData = M('spend', 'tab_')->alias('s') - ->field('floor(sum(pay_amount)*100) as count,IFNULL(sum(IF(is_check=2,pay_amount,0)),0) unpay_count') + ->field('floor(sum(IF(is_check=1,pay_amount,0))*100) as count,IFNULL(sum(IF(is_check=2,pay_amount,0)),0) unpay_count') ->where($map) ->find(); $tauthorityData = M('spend', 'tab_')->alias('s') ->field(' - floor(sum(IF(s.pay_time ' . $today . ',pay_amount,0))*100) as today, - floor(sum(IF(s.pay_time ' . $week . ',pay_amount,0))*100) as week, - floor(sum(IF(s.pay_time ' . $mounth . ',pay_amount,0))*100) as mounth') + floor(sum(IF(s.pay_time ' . $today . ' and is_check=1,pay_amount,0))*100) as today, + floor(sum(IF(s.pay_time ' . $week . ' and is_check=1,pay_amount,0))*100) as week, + floor(sum(IF(s.pay_time ' . $mounth . ' and is_check=1,pay_amount,0))*100) as mounth') ->where($tmap) ->find(); $authorityData['today'] = $tauthorityData['today']; From 9c0006ef4566f9dac815162ec167a30bccd0c52e Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 30 Dec 2020 14:02:54 +0800 Subject: [PATCH 02/12] =?UTF-8?q?12.28=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PlatformController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/PlatformController.class.php b/Application/Admin/Controller/PlatformController.class.php index cf41d1e5b..f8cc24362 100644 --- a/Application/Admin/Controller/PlatformController.class.php +++ b/Application/Admin/Controller/PlatformController.class.php @@ -1329,7 +1329,7 @@ class PlatformController extends ThinkController 'admin_username' => '当前市场专员', 'relation_game_name' => '游戏', "count"=>"累计充值", - "unpay_count"=>"累计充值", + "unpay_count"=>"累计不结算充值", "rand"=>"排行榜", "today"=>"今日充值", "week"=>"本周充值", From f5e2adb8608fe6ce41d45fa467bad0f4aa6c4020 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 30 Dec 2020 14:30:53 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E4=B8=87=E8=83=BD=E9=AA=8C=E8=AF=81=E7=A0=81=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Payment/Controller/PublicController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Payment/Controller/PublicController.class.php b/Application/Payment/Controller/PublicController.class.php index 48a41f7bb..60c0664d5 100644 --- a/Application/Payment/Controller/PublicController.class.php +++ b/Application/Payment/Controller/PublicController.class.php @@ -130,9 +130,9 @@ class PublicController extends \Think\Controller public function checksafecode($phone, $code) { //测试验证码 - if($code == "txsb0601"){ - return true; - } +// if($code == "txsb0601"){ +// return true; +// } $taskClient = new TaskClient(); $result = $taskClient->checkSms($phone, $code); $data = []; From ee34cc86f58210fbaf99f48e29a0d4be0386cffd Mon Sep 17 00:00:00 2001 From: tping Date: Wed, 30 Dec 2020 14:47:50 +0800 Subject: [PATCH 04/12] 1 --- Application/Admin/Controller/SocietyInfoController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/SocietyInfoController.class.php b/Application/Admin/Controller/SocietyInfoController.class.php index c92fb18ba..85027a5fe 100644 --- a/Application/Admin/Controller/SocietyInfoController.class.php +++ b/Application/Admin/Controller/SocietyInfoController.class.php @@ -408,7 +408,7 @@ class SocietyInfoController extends ThinkController $inserts[$k-2]['create_time'] = time(); $inserts[$k-2]['update_time'] = time(); $inserts[$k-2]['communication_time'] = time(); - $save['create_account'] = $this->admininfo['username']; + $inserts[$k-2]['create_account'] = $this->admininfo['username']; $gameTypes = explode('/', $v['I']); foreach ($gameTypes as $gameType) { From e57a5f8e50ebedc48ae12aa2c4def759fdfc89d1 Mon Sep 17 00:00:00 2001 From: tping Date: Wed, 30 Dec 2020 16:26:09 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/SocietyInfoController.class.php | 3 +++ Application/Admin/View/SocietyInfo/lists.html | 8 ++++---- Application/Admin/View/SocietyInfo/timeset.html | 6 +++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Application/Admin/Controller/SocietyInfoController.class.php b/Application/Admin/Controller/SocietyInfoController.class.php index 85027a5fe..1725709ad 100644 --- a/Application/Admin/Controller/SocietyInfoController.class.php +++ b/Application/Admin/Controller/SocietyInfoController.class.php @@ -143,6 +143,9 @@ class SocietyInfoController extends ThinkController $num = $config['value']; if (IS_POST) { $num = I('num'); + if ($num < 0) { + $this->error("时间设置不能小于0"); + } M('config', 'sys_')->where([ 'name' => 'SOCIETY_INFO_COMMUNITION_GAP' ])->save([ diff --git a/Application/Admin/View/SocietyInfo/lists.html b/Application/Admin/View/SocietyInfo/lists.html index 61bd2db6a..3880f3942 100644 --- a/Application/Admin/View/SocietyInfo/lists.html +++ b/Application/Admin/View/SocietyInfo/lists.html @@ -111,9 +111,9 @@ - -
-

文件格式参考:请严格按照此格式,文件的第一行必须是字段名,且字段名不允许修改,游戏类型目前仅支持:国战、宫斗、返利服、商战、传奇、仙侠、卡牌、策略如果游戏为多个类型,请用“/”隔开,如:策略/卡牌

+
+

文件格式参考:请严格按照此格式,文件的第一行必须是字段名,且字段名不允许修改,游戏类型目前仅支持:国战、宫斗、返利服、商战、传奇、仙侠、卡牌、策略如果游戏为多个类型,请用“/”隔开,如:策略/卡牌

+
@@ -193,7 +193,7 @@