调整平台优惠券使用限制
This commit is contained in:
parent
9c847b1321
commit
cf8c232b96
@ -572,7 +572,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
|||||||
foreach ($platformCoupon as &$coupon) {
|
foreach ($platformCoupon as &$coupon) {
|
||||||
$coupon['checked'] = false;
|
$coupon['checked'] = false;
|
||||||
//通用券
|
//通用券
|
||||||
if ($coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_ALL) {
|
if ($coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_ALL || $coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_CARD) {
|
||||||
$coupon['disabled'] = $total_true_price <= 0 || $coupon['use_min_price'] > $total_true_price;
|
$coupon['disabled'] = $total_true_price <= 0 || $coupon['use_min_price'] > $total_true_price;
|
||||||
if (!$platformCouponRate && !$coupon['disabled'] && !$flag && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) {
|
if (!$platformCouponRate && !$coupon['disabled'] && !$flag && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) {
|
||||||
$platformCouponRate = [
|
$platformCouponRate = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user