edit-qyrobot2

This commit is contained in:
lccsw
2022-08-08 17:01:10 +08:00
parent 343f537167
commit b80ae5d22c
+2 -2
View File
@@ -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']