diff --git a/common/libraries/Qyrobot.php b/common/libraries/Qyrobot.php index 0a5ba642..b98e3736 100644 --- a/common/libraries/Qyrobot.php +++ b/common/libraries/Qyrobot.php @@ -504,7 +504,7 @@ class Qyrobot{ if($today_rows){ foreach ($today_rows as $key => $val) { $today_count += $val['total']; - $row = $this->auto_brand_model->get(['id'=>$val['brand_id']],'name'); + $row = $this->ci->auto_brand_model->get(['id'=>$val['brand_id']],'name'); $today_info[] = [ 'brand_name' => $row['name'], 'num' => $val['total'] @@ -522,7 +522,7 @@ class Qyrobot{ if($month_rows){ foreach ($today_rows as $key => $val) { $month_count += $val['total']; - $row = $this->auto_brand_model->get(['id'=>$val['brand_id']],'name'); + $row = $this->ci->auto_brand_model->get(['id'=>$val['brand_id']],'name'); $month_info[] = [ 'brand_name' => $row['name'], 'num' => $val['total']