...
|
...
|
@@ -468,7 +468,7 @@ class Index extends Api |
|
|
}
|
|
|
if (!empty($param['keywords']) || $param['keywords'] != null || $param['keywords'] != '') {
|
|
|
//搜索逻辑
|
|
|
$map4['a.name|a.con'] = array('LIKE', '%' . $param['keywords'] . '%');
|
|
|
$map4['a.name|a.con'] = array('in', $param['keywords']);
|
|
|
$product_title = Db::name('product')->where('name|con', 'LIKE', '%' . $param['keywords'] . '%')->find();
|
|
|
if (!empty($product_title)) {
|
|
|
Db::name('so_level_num')->insert(['product_id' => $product_title['id'], 'keywords' => $param['keywords'], 'createtime' => time()]);
|
...
|
...
|
@@ -1011,7 +1011,7 @@ class Index extends Api |
|
|
$fitst4[$k1] = Db::name('classa')->where(['id' => $v1['class_id']])->select();
|
|
|
$fitst5 = $this->three_arr($fitst4);
|
|
|
}
|
|
|
$fitst5=$this->second_array_unique_bykey($fitst5,'id');
|
|
|
$fitst5 = $this->second_array_unique_bykey($fitst5, 'id');
|
|
|
foreach ($fitst5 as $k3 => $v3) {
|
|
|
$LG_list[$k]['IsList'][$k3]['xid'] = $v3['id'];
|
|
|
$LG_list[$k]['IsList'][$k3]['title'] = $v3['class'];
|
...
|
...
|
|