This commit is contained in:
2025-03-14 11:47:47 +08:00
parent c2ebbd71e2
commit 05bc2773b9
12 changed files with 205 additions and 50 deletions

View File

@@ -99,6 +99,10 @@ public class AppOrderController {
@GetMapping("/scenic/{scenicId}/queryBatchPrice")
public ApiResponse<IsBuyBatchRespVO> queryPrice(@PathVariable("scenicId") Long scenicId, @RequestParam("type") Integer type, @RequestParam(value = "goodsIds", required = false) String goodsIds) {
Long userId = Long.parseLong(BaseContextHandler.getUserId());
return ApiResponse.success(priceBiz.isBuy(userId, scenicId, type, goodsIds));
IsBuyBatchRespVO buy = priceBiz.isBuy(userId, scenicId, type, goodsIds);
if (buy == null) {
return ApiResponse.fail("该套餐暂未开放购买");
}
return ApiResponse.success(buy);
}
}