Commit 1baeece6 by mushishixian

品牌显示

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