更新品牌搜索

parent f7409a63
......@@ -128,7 +128,7 @@ class ApiController extends Controller
}
//查询品牌
private function GetBrand($request){
CommonModel::getBrand($request->p);
(new ServerFoostoneModel($request->appid,$request->key))->getBrand($request->input("p"),100,2);
}
//价格明细弹框
private function PurePrice($request){
......
......@@ -56,5 +56,12 @@ class ServerFoostoneModel
$data['goods_type'] = $goods_type;
return $this->push( '/third/api/obtain/list/sku',$data,$type);
}
//模糊搜索品牌
public function getBrand($keyword,$limit = 100,$type =1){
$data['key_word'] = $keyword;
$data['limit'] = $limit;
$s = $this->push( '/third/api/query/brand/list',$data,$type);
echo \GuzzleHttp\json_encode($s['data'],JSON_UNESCAPED_UNICODE);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment