作者 耿培杰

修改配置

... ... @@ -61,11 +61,19 @@ class Category extends Model
$part = Db::name('part')->where(['id'=>['in',array_unique($partids)]])->field($field)->select();
$category2 = Db::name('category2')->where(['id'=>['in',array_unique($category2ids)]])->field($field)->select();
$data = [];
if ($country) $data[] = ['title' => '国家','list'=>$country];
if ($brand) $data[] = ['title' => '品牌','list'=>$brand];
if ($level) $data[] = ['title' => '等级','list'=>$level];
if ($part) $data[] = ['title' => '部位','list'=>$part];
if ($category2) $data[] = ['title' => '品类','list'=>$category2];
if ($lang == 'ch'){
if ($country) $data[] = ['title' => '国家','list'=>$country];
if ($brand) $data[] = ['title' => '品牌','list'=>$brand];
if ($level) $data[] = ['title' => '等级','list'=>$level];
if ($part) $data[] = ['title' => '部位','list'=>$part];
if ($category2) $data[] = ['title' => '品类','list'=>$category2];
} else{
if ($country) $data[] = ['title' => 'state','list'=>$country];
if ($brand) $data[] = ['title' => 'brand','list'=>$brand];
if ($level) $data[] = ['title' => 'class','list'=>$level];
if ($part) $data[] = ['title' => 'part','list'=>$part];
if ($category2) $data[] = ['title' => 'category','list'=>$category2];
}
return $data;
}
... ...