|
|
@@ -737,7 +737,7 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void carLimited(String carId, String userToken, Integer expTime) {
|
|
|
+ public void carLimited(String carId, String userToken, Long expTime) {
|
|
|
if(carId == null){
|
|
|
if (StringUtils.isNotBlank(userToken)) {
|
|
|
ChatgptUser chatgptUser = chatgptUserMapper.selectOne(Wrappers.lambdaQuery(ChatgptUser.class).eq(ChatgptUser::getUserToken, userToken));
|
|
|
@@ -749,7 +749,7 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- redisService.set("chatgpt:clears_in:" + carId, expTime);
|
|
|
+ redisService.set("chatgpt:clears_in:" + carId, expTime, expTime);
|
|
|
}
|
|
|
|
|
|
@PostConstruct
|