Browse Source

一些功能

Kirin 3 years ago
parent
commit
30bb668858
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/models/store/StoreProduct.php

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

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