浏览代码

一些功能

Kirin 3 年之前
父节点
当前提交
30bb668858
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)) {
             foreach ($list as $k => $v) {
                 $list[$k]['activity'] = self::activity($v['id']);
-                var_dump($store_id);
+//                var_dump($store_id);
                 if ($store_id) {
                     $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'];
                 }
             }