From a877b475f5d174be9adb3e33c01c9c46acd7505a Mon Sep 17 00:00:00 2001
From: chenzhi <chenzhi063@qq.com>
Date: Thu, 19 Dec 2019 20:51:17 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=80=BB=E8=A7=88=E8=84=9A?=
 =?UTF-8?q?=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Admin/Controller/StatisticsCountSetController.class.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Application/Admin/Controller/StatisticsCountSetController.class.php b/Application/Admin/Controller/StatisticsCountSetController.class.php
index 68aa4cffd..150b9d45e 100644
--- a/Application/Admin/Controller/StatisticsCountSetController.class.php
+++ b/Application/Admin/Controller/StatisticsCountSetController.class.php
@@ -185,7 +185,11 @@ class StatisticsCountSetController extends Controller {
 				$value['create_time']=$this->nowdata;
 				$value['active_user_list'] = @json_encode(array_map("intFun",explode(",",$value['active_user_list'])));
 				if(empty($value['promote_account']) && $value['promote_id']){
-					$value['promote_account'] =  $this->PromoteModel->field("account")->where("id = {$value['promote_id']}")->find()['account'];
+					if($value['promote_id'] == 0){
+						$value['promote_account'] = "官方渠道";
+					}else{
+						$value['promote_account'] =  $this->PromoteModel->field("account")->where("id = {$value['promote_id']}")->find()['account'];
+					}
 				}
 				$tempdbres = $this->PromoteCountModel->add($value);
 				if($tempdbres === false){