Jelajahi Sumber

一些功能

Kirin 4 tahun lalu
induk
melakukan
4d31f52044
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      app/models/store/StoreProduct.php

+ 1 - 0
app/models/store/StoreProduct.php

@@ -268,6 +268,7 @@ class StoreProduct extends BaseModel
         if (!empty($list)) {
             foreach ($list as $k => $v) {
                 $list[$k]['activity'] = self::activity($v['id']);
+                var_dump($store_id);
                 if ($store_id) {
                     $stockinfo = SystemStoreProductStock::where('product_id', $list[$k]['id'])->where('store_id', $store_id)->find();
                     $item['price'] = $stockinfo ? SystemStoreProductStock::where('product_id', $list[$k]['id'])->where('store_id', $store_id)->min('price') : $list[$k]['price'];