From d91a44184fee54d642eb97ad6731ad4de7573933 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Fri, 1 Nov 2019 09:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SpendCountSetController.class.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Application/Admin/Controller/SpendCountSetController.class.php b/Application/Admin/Controller/SpendCountSetController.class.php index 34174c8b4..33aedc6ec 100644 --- a/Application/Admin/Controller/SpendCountSetController.class.php +++ b/Application/Admin/Controller/SpendCountSetController.class.php @@ -51,7 +51,7 @@ class SpendCountSetController extends \Think\Controller $countRes = M("spend_count","tab_")->field("count(*) date_count")->where("count_date = '{$this->date}'")->find()['date_count']; $countUserRes = M("spend_user_count","tab_")->field("count(*) date_count")->where("count_date = '{$this->date}'")->find()['date_count']; if($countRes > 0 || $countUserRes >0){ - die("error:Repeated statistics"); + die("error:Repeated statistics,msg:{$this->date}已经聚合过"); } $this->model->startTrans(); $this->usermodel->startTrans(); @@ -81,7 +81,7 @@ class SpendCountSetController extends \Think\Controller # code... } //获取游戏现金流水 - public function getCashData() + protected function getCashData() { if(!$this->continue){ die("api error"); @@ -115,7 +115,7 @@ class SpendCountSetController extends \Think\Controller # code... } //获取平台币聚合 - public function getBalanceData() + protected function getBalanceData() { if(!$this->continue){ die("api error"); @@ -169,7 +169,7 @@ class SpendCountSetController extends \Think\Controller # code... } //获取绑定币充值 - public function getInsideData() + protected function getInsideData() { if(!$this->continue){ die("api error"); @@ -222,7 +222,7 @@ class SpendCountSetController extends \Think\Controller } } - public function getRoot() + protected function getRoot() { if(!$this->continue){ die("api error"); @@ -268,7 +268,7 @@ class SpendCountSetController extends \Think\Controller } //获取会长信息 - public function getRootUser() + protected function getRootUser() { if(!$this->continue) die("api error"); //获取所有数据 @@ -310,7 +310,7 @@ class SpendCountSetController extends \Think\Controller } //获取组长信息 - public function getParentUser() + protected function getParentUser() { if(!$this->continue) die("api error"); $month =$this->date; @@ -350,7 +350,7 @@ class SpendCountSetController extends \Think\Controller } //获取组员 - public function getPromoteUser() + protected function getPromoteUser() { if(!$this->continue) die("api error"); $month = $this->date;; @@ -388,7 +388,7 @@ class SpendCountSetController extends \Think\Controller # code... } //渠道角色统计仅计算推广员的平台币发放与收回 - public function getUserInsideData() + protected function getUserInsideData() { // if(!$this->continue) die("api error"); //获取发送给推广员的数据 @@ -545,7 +545,7 @@ class SpendCountSetController extends \Think\Controller # code... } //按角色修正inside_cash_count数据 - public function setInsideCount($promote_id,$inside_cash_count) + protected function setInsideCount($promote_id,$inside_cash_count) { $tempmap = array( "promote_id"=>$promote_id,