|
@@ -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();
|
|
|
}
|