You've already forked FrameTour-BE
3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user