You've already forked FrameTour-BE
fix(voucher): 移除人脸验证中的用户ID检查
- 删除了人脸验证中不必要的用户ID匹配检查 - 简化了自动领取凭证的逻辑流程 - 保留了景区ID的设置以确保业务连续性
This commit is contained in:
@@ -64,9 +64,6 @@ public class AppVoucherController {
|
||||
if (face == null) {
|
||||
throw new BaseException("请选择人脸");
|
||||
}
|
||||
if (!face.getMemberId().equals(Long.valueOf(BaseContextHandler.getUserId()))) {
|
||||
throw new BaseException("自动领取失败");
|
||||
}
|
||||
req.setScenicId(face.getScenicId());
|
||||
VoucherCodeResp result = voucherCodeService.claimVoucher(req);
|
||||
return ApiResponse.success(result);
|
||||
|
||||
Reference in New Issue
Block a user