Commit 1baeece6 by mushishixian

品牌显示

parent 65ee9685
Showing with 7 additions and 3 deletions
...@@ -166,9 +166,13 @@ class SupplierTransformer ...@@ -166,9 +166,13 @@ class SupplierTransformer
{ {
$mainBrandsIds = explode(',', $mainBrandsIds); $mainBrandsIds = explode(',', $mainBrandsIds);
$redis = new RedisModel(); $redis = new RedisModel();
$brands = $redis->hmget('brand', $mainBrandsIds); $brands = $redis->hmget('standard_brand', $mainBrandsIds);
$brands = implode(',', $brands); $brandNames = '';
return $brands; foreach ($brands as $brand) {
$brand = json_decode($brand, true);
$brandNames = $brandNames . $brand['brand_name'];
}
return $brandNames;
} }
public function transformStockupTypeData($stockupType) public function transformStockupTypeData($stockupType)
......
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