wupengfei 2 years ago
parent
commit
08b5b0ebac
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/store/controller/Goods1.php

+ 1 - 0
application/store/controller/Goods1.php

@@ -50,6 +50,7 @@ class Goods1 extends Controller
     {
         foreach ($data as &$v){
             $now_inventory = getCollectionInventory($v['id']);
+            var_dump($now_inventory);
             $v['now_inventory'] = $now_inventory<=0 ? 0 : $now_inventory;
             $v['shengyu'] = Db::name('hash')->where('goods_id',$v['id'])->where('status',0)->count();
         }