Преглед изворни кода

Merge branch 'master' of http://git.liuniu946.com/Kirin/zccy

zxhxx пре 4 година
родитељ
комит
c69d4f21fd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/models/store/StoreProductAttr.php

+ 1 - 1
app/models/store/StoreProductAttr.php

@@ -59,7 +59,7 @@ class StoreProductAttr extends BaseModel
             }
             if ($store_id && $type_id == 0) {
                 $stockinfo = SystemStoreProductStock::where('unique', $value['unique'])->where('store_id', $store_id)->find();
-                $value['price'] = $stockinfo ? $stockinfo['price'] : $value['price'];
+                $value['price'] = ($stockinfo && $stockinfo['price'] > 0) ? $stockinfo['price'] : $value['price'];
             }
             $values[$value['suk']] = $value;
         }