|
@@ -757,7 +757,6 @@ class OrderService
|
|
if (Redis::sIsMember($cacheKey, $goodsId)) {
|
|
if (Redis::sIsMember($cacheKey, $goodsId)) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
- Redis::sAdd($cacheKey, $goodsId);
|
|
|
|
if ($couponDetail->coupon_category == 'PIECE' || ($couponDetail->coupon_category == 'NORMAL' && $countAndAmount['amount'] >= $couponDetail->coupon_minimum_limit)) {
|
|
if ($couponDetail->coupon_category == 'PIECE' || ($couponDetail->coupon_category == 'NORMAL' && $countAndAmount['amount'] >= $couponDetail->coupon_minimum_limit)) {
|
|
$diyongCouponDetailIds = CouponDetail::leftJoin('coupon_goods', 'coupon_goods.join_goods_coupon_id', '=', 'coupon_detail.join_detail_coupon_id')
|
|
$diyongCouponDetailIds = CouponDetail::leftJoin('coupon_goods', 'coupon_goods.join_goods_coupon_id', '=', 'coupon_detail.join_detail_coupon_id')
|
|
->where('join_detail_coupon_id', $couponId)
|
|
->where('join_detail_coupon_id', $couponId)
|
|
@@ -780,6 +779,7 @@ class OrderService
|
|
// 是否计算过了
|
|
// 是否计算过了
|
|
if (!Redis::sIsMember($cacheKey, $detailId)) {
|
|
if (!Redis::sIsMember($cacheKey, $detailId)) {
|
|
Redis::sAdd($cacheKey, $detailId);
|
|
Redis::sAdd($cacheKey, $detailId);
|
|
|
|
+ Redis::sAdd($cacheKey, $goodsId);
|
|
if ($good['nbr'] > 1) {
|
|
if ($good['nbr'] > 1) {
|
|
$payAmount = $payAmount - $good['goods_sales_price'];
|
|
$payAmount = $payAmount - $good['goods_sales_price'];
|
|
$good['nbr'] = $good['nbr'] - 1;
|
|
$good['nbr'] = $good['nbr'] - 1;
|