Commit 2de3ea02 authored by zhz's avatar zhz

goods

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