You've already forked FrameTour-BE
fix(pricing): 移除自动发券中不必要的faceId校验
- 删除了对faceId参数的非空校验逻辑 - 保持其他参数校验不变 - 更新了日志记录中的参数列表
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user