Commit fb2f4860 by 杨树贤

获取单个品牌

parent 2c8832fd
Showing with 7 additions and 4 deletions
......@@ -28,7 +28,7 @@ class BrandService
}
return $standardBrandCache;
}
return [];
return [];
}
......@@ -70,9 +70,12 @@ class BrandService
public static function getStandardBrandInfo($brandId)
{
$standardBrand = Redis::hget('standard_brand', $brandId);
$standardBrand = json_decode($standardBrand, true);
return $standardBrand;
$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