fix(pricing): 移除自动发券中不必要的faceId校验

- 删除了对faceId参数的非空校验逻辑
- 保持其他参数校验不变
- 更新了日志记录中的参数列表
This commit is contained in:
2025-11-16 13:17:53 +08:00
parent 1a25848102
commit 9ee466bd5e

View File

@@ -30,7 +30,7 @@ public class AutoCouponServiceImpl implements IAutoCouponService {
public boolean autoGrantCoupon(Long memberId, Long faceId, Long scenicId, ProductType productType) {
try {
// 1. 校验参数
if (memberId == null || faceId == null || scenicId == null || productType == null) {
if (memberId == null || scenicId == null || productType == null) {
log.warn("自动发券参数不完整: memberId={}, faceId={}, scenicId={}, productType={}",
memberId, faceId, scenicId, productType);
return false;