From d48c0e977abe753a979c1779b64f8d745daf92c0 Mon Sep 17 00:00:00 2001 From: lin fan Date: Thu, 21 Nov 2024 16:03:12 +0800 Subject: [PATCH] 1 --- api/controllers/wxapp/licheb/Score.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/controllers/wxapp/licheb/Score.php b/api/controllers/wxapp/licheb/Score.php index 880606b5..3fd26563 100644 --- a/api/controllers/wxapp/licheb/Score.php +++ b/api/controllers/wxapp/licheb/Score.php @@ -246,7 +246,7 @@ class Score extends Wxapp $where['biz_id'] = $this->biz_id; $value = $this->customers_model->count($where); $series_value[] = $value; - $max_total[] = $max; + $max_total[] = $max ? $max : 10 ; //跟进能力 $where_max = $where = [ @@ -258,7 +258,7 @@ class Score extends Wxapp $where['biz_id'] = $this->biz_id; $value = $this->customers_model->count($where); $series_value[] = $value; - $max_total[] = $max; + $max_total[] = $max ? $max : 10 ; //邀约能力 $where_max = $where = [ @@ -271,7 +271,7 @@ class Score extends Wxapp $where['biz_id'] = $this->biz_id; $value = $this->customers_model->count($where); $series_value[] = $value; - $max_total[] = $max; + $max_total[] = $max ? $max : 10 ; //成交能力 $where_max = $where = [ @@ -284,7 +284,7 @@ class Score extends Wxapp $where["biz_id"] = $this->biz_id; $value = $this->orders_model->count($where); $series_value[] = $value; - $max_total[] = $max; + $max_total[] = $max ? $max : 10 ; //交付能力 $where_max = $where = [ @@ -297,7 +297,7 @@ class Score extends Wxapp $where["biz_id"] = $this->biz_id; $value = $this->orders_model->count($where); $series_value[] = $value; - $max_total[] = $max; + $max_total[] = $max ? $max : 10 ; foreach ($names as $key => $value) { $indicator[] = array('name' => $value, 'max' => $max_total[$key]);