大礼包添加限购

This commit is contained in:
luofei 2024-02-22 16:47:38 +08:00
parent fdbe4e0626
commit 089a868ebd

View File

@ -90,7 +90,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
}
if ($isPlatformCard) {
$merchantTypeId = Merchant::where('uid', $uid)->value('type_id');
if ($merchantTypeId != 21) {
if (empty($merchantTypeId) || $merchantTypeId != 21) {
throw new ValidateException('大礼包仅限种养殖户购买');
}
//平台购物卡仅能购买一次