Commit 8788d8fe authored by christ's avatar christ

Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into ccw

parents 6c634e12 39fbba9e
...@@ -460,8 +460,8 @@ class GoodsCommonServiceModel extends \Business\AbstractModel ...@@ -460,8 +460,8 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$goodsRedis = \Redis\Db4\GoodsRedisModel::getInstance(); $goodsRedis = \Redis\Db4\GoodsRedisModel::getInstance();
$onlineStorageGoodsKey = \Our\NameConst::onlineStorageGoodsPrefix.$goodsCommonId; $onlineStorageGoodsKey = \Our\NameConst::onlineStorageGoodsPrefix.$goodsCommonId;
$onlineStorageGoods = $goodsRedis->tableHGAll($onlineStorageGoodsKey); $onlineStorageGoods = $goodsRedis->tableHGAll($onlineStorageGoodsKey);
if(count($goods) > 1){ if($goodsAttr = unserialize($commonInfo['goods_attr'])){
foreach (unserialize($commonInfo['goods_attr']) as $k=>$v){ foreach ($goodsAttr as $k=>$v){
$tempArr = array('attrName'=>$k,'attrValue'=>$v,'isPrimeAttribute'=>0,'images'=>[]); $tempArr = array('attrName'=>$k,'attrValue'=>$v,'isPrimeAttribute'=>0,'images'=>[]);
if(key_exists($k,$attrImage)){ if(key_exists($k,$attrImage)){
foreach ($v as $v1){ foreach ($v as $v1){
......
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 to comment