大礼包添加限购
This commit is contained in:
parent
fdbe4e0626
commit
089a868ebd
@ -90,7 +90,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
|||||||
}
|
}
|
||||||
if ($isPlatformCard) {
|
if ($isPlatformCard) {
|
||||||
$merchantTypeId = Merchant::where('uid', $uid)->value('type_id');
|
$merchantTypeId = Merchant::where('uid', $uid)->value('type_id');
|
||||||
if ($merchantTypeId != 21) {
|
if (empty($merchantTypeId) || $merchantTypeId != 21) {
|
||||||
throw new ValidateException('大礼包仅限种养殖户购买');
|
throw new ValidateException('大礼包仅限种养殖户购买');
|
||||||
}
|
}
|
||||||
//平台购物卡仅能购买一次
|
//平台购物卡仅能购买一次
|
||||||
|
Loading…
x
Reference in New Issue
Block a user