diff --git a/api/controllers/wxapp/licheb/Score.php b/api/controllers/wxapp/licheb/Score.php index c24e2d87..7d5a0d21 100644 --- a/api/controllers/wxapp/licheb/Score.php +++ b/api/controllers/wxapp/licheb/Score.php @@ -248,7 +248,7 @@ class Score extends Wxapp $value = $this->customers_model->count($where); $max = $max > $biz_count ? ceil($max/$biz_count) * 5 : $biz_count ; $series_value[] = $value > ceil($max/$biz_count) ? $value : ceil($max/$biz_count); - $max_total[] = $max_total; + $max_total[] = $max; //跟进能力 $where_max = $where = [ @@ -261,7 +261,7 @@ class Score extends Wxapp $value = $this->customers_model->count($where); $max = $max > $biz_count ? ceil($max/$biz_count) * 5 : $biz_count ; $series_value[] = $value > ceil($max/$biz_count) ? $value : ceil($max/$biz_count); - $max_total[] = $max_total; + $max_total[] = $max; //邀约能力 $where_max = $where = [ @@ -275,7 +275,7 @@ class Score extends Wxapp $value = $this->customers_model->count($where); $max = $max > $biz_count ? ceil($max/$biz_count) * 5 : $biz_count ; $series_value[] = $value > ceil($max/$biz_count) ? $value : ceil($max/$biz_count); - $max_total[] = $max_total; + $max_total[] = $max; //成交能力 $where_max = $where = [ @@ -289,7 +289,7 @@ class Score extends Wxapp $value = $this->orders_model->count($where); $max = $max > $biz_count ? ceil($max/$biz_count) * 5 : $biz_count ; $series_value[] = $value > ceil($max/$biz_count) ? $value : ceil($max/$biz_count); - $max_total[] = $max_total; + $max_total[] = $max; //交付能力 $where_max = $where = [ @@ -303,7 +303,7 @@ class Score extends Wxapp $value = $this->orders_model->count($where); $max = $max > $biz_count ? ceil($max/$biz_count) * 5 : $biz_count ; $series_value[] = $value > ceil($max/$biz_count) ? $value : ceil($max/$biz_count); - $max_total[] = $max_total; + $max_total[] = $max; foreach ($names as $key => $value) { $indicator[] = array('name' => $value, 'max' => $max_total[$key]);