fix(voucher): 移除人脸验证中的用户ID检查

- 删除了人脸验证中不必要的用户ID匹配检查
- 简化了自动领取凭证的逻辑流程
- 保留了景区ID的设置以确保业务连续性
This commit is contained in:
2025-11-17 01:02:31 +08:00
parent 9ee466bd5e
commit 9d708ae20c

View File

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