|
@@ -157,14 +157,14 @@ public class MirrorController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/gpt/cars")
|
|
@GetMapping("/gpt/cars")
|
|
|
- public Result<SearchResult<ChatgptCarInfoView>> getCarInfoList(Long relationId,@RequestParam(defaultValue = "20") Integer limit,@RequestParam(defaultValue = "true") Boolean isPlus) {
|
|
|
|
|
|
|
+ public Result<SearchResult<ChatgptCarInfoView>> getCarInfoList(Long relationId,@RequestParam(defaultValue = "20") Integer limit) {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
//查看用户是否存在车票
|
|
//查看用户是否存在车票
|
|
|
ChatgptUser carChatGptUser = chatGptAccountService.getCarChatGptUser(userId, relationId);
|
|
ChatgptUser carChatGptUser = chatGptAccountService.getCarChatGptUser(userId, relationId);
|
|
|
if (carChatGptUser == null) {
|
|
if (carChatGptUser == null) {
|
|
|
throw BusinessRuntimeException.getInstance("您还未购买车票");
|
|
throw BusinessRuntimeException.getInstance("您还未购买车票");
|
|
|
}
|
|
}
|
|
|
- SearchResult<ChatgptCarInfoView> carInfoList = chatGptAccountService.getCarInfoPage(carChatGptUser.getUserToken(),limit, isPlus);
|
|
|
|
|
|
|
+ SearchResult<ChatgptCarInfoView> carInfoList = chatGptAccountService.getCarInfoPage(carChatGptUser.getUserToken(),limit);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(carInfoList);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(carInfoList);
|
|
|
}
|
|
}
|
|
|
|
|
|