|
|
@@ -242,7 +242,7 @@ public class VipFrontServiceImpl implements VipFrontService {
|
|
|
//当天购买的按规格原价抵扣
|
|
|
if (now.toDateStr().equals(DateUtil.format(relationStartTime, "yyyy-MM-dd"))) {
|
|
|
//并且没有续费 且未扣时长
|
|
|
- if (DateUtil.betweenDay(DateUtil.offsetMonth(relationStartTime, 1), relationExpiryTime, true) == 0) {
|
|
|
+ if (DateUtil.betweenDay(DateUtil.offsetMonth(relationStartTime, sku.getMonths()), relationExpiryTime, true) == 0) {
|
|
|
return sku.getPrice();
|
|
|
}
|
|
|
}
|