|
|
@@ -561,7 +561,7 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
.map((historyView) -> {
|
|
|
ChatgptCarInfoView chatgptCarInfoView = buildChatgptCarInfoView(historyView.getCarId(), historyView.getCarName(), historyView.getIsPLus(), redisService.zScore(RedisService.key.CHATGPT_CAR_SCORES.getName(), historyView.getCarId()));
|
|
|
chatgptCarInfoView.setIsHistory(true);
|
|
|
- chatgptCarInfoView.setScore(redisService.zScore(RedisService.key.CHATGPT_CAR_SCORES.getName(), historyView.getCarId()));
|
|
|
+ chatgptCarInfoView.setScore(Math.min(redisService.zScore(RedisService.key.CHATGPT_CAR_SCORES.getName(), historyView.getCarId()), 100));
|
|
|
|
|
|
return chatgptCarInfoView;
|
|
|
}).collect(Collectors.toCollection(LinkedHashSet::new));
|
|
|
@@ -659,7 +659,7 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
ChatgptCarInfoView view = new ChatgptCarInfoView();
|
|
|
view.setCarId(carId);
|
|
|
// 假设以下方法从Redis或其他服务获取数据
|
|
|
- view.setScore(score);
|
|
|
+ view.setScore(Math.min(score,100));
|
|
|
view.setStatus(score >= 50 ? "繁忙" : "空闲"); // 或“繁忙”
|
|
|
|
|
|
view.setType(isPlus == 1 ? "plus" : "3.5");
|