diff --git a/app/admin/logic/merchant/MerchantLogic.php b/app/admin/logic/merchant/MerchantLogic.php index 4c767c4..27ffeb7 100644 --- a/app/admin/logic/merchant/MerchantLogic.php +++ b/app/admin/logic/merchant/MerchantLogic.php @@ -268,7 +268,7 @@ class MerchantLogic extends BaseLogic $data = [ 'mer_id' => $params['mer_id'], 'goods_id' => $v['goods_id'], - 'nums' => $v['nums'] + 'nums' => $v['nums']??0 ]; $has = Db::name('merchant_bind_goods')->where('mer_id', $params['mer_id'])->where('goods_id', $v['goods_id'])->findOrEmpty(); if (!empty($has)) {