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]);