brand
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
defined('WXAPP_APP') OR exit('No direct script access allowed');
|
||||
//defined('WXAPP_APP') OR exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Created by Vim
|
||||
@@ -66,11 +66,7 @@ class Series extends Wxapp{
|
||||
//获取品牌
|
||||
protected function get_mbrand(){
|
||||
$keyword = $this->input_param('keyword');
|
||||
$where = [
|
||||
'status' => 1,
|
||||
'1' => null
|
||||
];
|
||||
|
||||
$where = ['status' => 1];
|
||||
$keyword && $where["name like '%{$keyword}%'"] = null;
|
||||
|
||||
$count = $this->auto_brand_model->count($where);
|
||||
@@ -79,6 +75,7 @@ class Series extends Wxapp{
|
||||
'list' => $list,
|
||||
'total' => $count
|
||||
];
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user