From b80ae5d22cec1d9f31dff2ac376f4c461cf0aaf1 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Mon, 8 Aug 2022 17:01:10 +0800 Subject: [PATCH] edit-qyrobot2 --- common/libraries/Qyrobot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']