|
|
@@ -666,9 +666,6 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
// 更新体验数据
|
|
|
redisService.zAdd(key, timestamp, String.valueOf(timestamp));
|
|
|
|
|
|
- // 更新车队评分
|
|
|
- redisService.zIncrementScore(RedisService.key.CHATGPT_CAR_SCORES.getName(), carId, scoreToAdd);
|
|
|
-
|
|
|
// 清理旧数据(可选)和重新计算评分(根据需要实现)
|
|
|
cleanupOldExperiencesAndRecalculateScore(carId, timestamp);
|
|
|
}
|
|
|
@@ -694,6 +691,9 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
Double highExperienceScore = (double) redisService.zCount(RedisService.key.CHATGPT_CAR_HIGH_CHAT.getName() + carId, currentTimestamp - (3 * 60 * 60 * 1000), currentTimestamp) * 2;
|
|
|
Double lowExperienceScore = (double) redisService.zCount(RedisService.key.CHATGPT_CAR_LOW_CHAT.getName() + carId, currentTimestamp - (3 * 60 * 60 * 1000), currentTimestamp);
|
|
|
double newScore = highExperienceScore + lowExperienceScore;
|
|
|
+ if(carId.contains("T")){
|
|
|
+ newScore = newScore * 0.3D;
|
|
|
+ }
|
|
|
redisService.zAdd(RedisService.key.CHATGPT_CAR_SCORES.getName(), newScore, carId);
|
|
|
}
|
|
|
|