refactor(pricing): 优化代金券可用性判断逻辑
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good

- 移除了对 canClaimVoucher 方法的调用,暂时注释掉以简化逻辑
- 此修改可能会影响代金券领取功能
This commit is contained in:
2025-09-03 14:35:10 +08:00
parent 5c416f6c09
commit 7d2666128a

View File

@@ -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);