Commit fb2f4860 by 杨树贤

获取单个品牌

parent 2c8832fd
Showing with 5 additions and 2 deletions
......@@ -70,9 +70,12 @@ class BrandService
public static function getStandardBrandInfo($brandId)
{
$standardBrand = Redis::hget('standard_brand', $brandId);
$standardBrand = json_decode($standardBrand, true);
$standardBrandData = \Http::get(config('website.footstone_url') . '/open/getStandardBrandInfo?brand_id=' . $brandId)->json();
if (isset($standardBrandData['code']) && $standardBrandData['code'] == 0) {
$standardBrand = $standardBrandData['data'];
return $standardBrand;
}
return [];
}
}
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