You've already forked FrameTour-BE
refactor(pricing): 优化代金券可用性判断逻辑
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
- 移除了对 canClaimVoucher 方法的调用,暂时注释掉以简化逻辑 - 此修改可能会影响代金券领取功能
This commit is contained in:
@@ -63,7 +63,7 @@ public class VoucherServiceImpl implements IVoucherService {
|
||||
// 检查券码状态和可用性
|
||||
if (VoucherCodeStatus.UNCLAIMED.getCode().equals(voucherCodeEntity.getStatus())) {
|
||||
// 未领取状态,检查是否可以领取
|
||||
if (faceId != null && canClaimVoucher(faceId, voucherCodeEntity.getScenicId())) {
|
||||
if (faceId != null) { // && canClaimVoucher(faceId, voucherCodeEntity.getScenicId())
|
||||
voucherInfo.setAvailable(true);
|
||||
} else {
|
||||
voucherInfo.setAvailable(false);
|
||||
|
Reference in New Issue
Block a user