|
@@ -536,10 +536,10 @@ class OrderService
|
|
|
CouponDetail::where('coupon_detail_id', $couponDetail->coupon_detail_id)->update(['coupon_detail_status' => 'USED']);
|
|
|
}
|
|
|
} elseif ($couponDetail->coupon_classify == '折扣券') {
|
|
|
- if (Redis::sIsMember($cacheKey, $goodsId)) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- Redis::sAdd($cacheKey, $goodsId);
|
|
|
+// if (Redis::sIsMember($cacheKey, $goodsId)) {
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+// Redis::sAdd($cacheKey, $goodsId);
|
|
|
if ($couponDetail->coupon_category == 'PIECE' || ($couponDetail->coupon_category == 'NORMAL' && $countAndAmount['amount'] >= $couponDetail->coupon_minimum_limit)) {
|
|
|
$payAmount = $payAmount - ($money * (100 - $couponDetail->coupon_value) / 100);
|
|
|
if (!empty($discountData[$couponId]['coupon_value'])) {
|
|
@@ -746,10 +746,10 @@ class OrderService
|
|
|
}
|
|
|
}
|
|
|
} elseif ($couponDetail->coupon_classify == '折扣券') {
|
|
|
- if (Redis::sIsMember($cacheKey, $goodsId)) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- Redis::sAdd($cacheKey, $goodsId);
|
|
|
+// if (Redis::sIsMember($cacheKey, $goodsId)) {
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+// Redis::sAdd($cacheKey, $goodsId);
|
|
|
if ($couponDetail->coupon_category == 'PIECE' || ($couponDetail->coupon_category == 'NORMAL' && $countAndAmount['amount'] >= $couponDetail->coupon_minimum_limit)) {
|
|
|
$payAmount = $payAmount - ($money * (100 - $couponDetail->coupon_value) / 100);
|
|
|
}
|