diff --git a/src/main/java/com/peanut/modules/common/service/impl/AiVipLogServiceImpl.java b/src/main/java/com/peanut/modules/common/service/impl/AiVipLogServiceImpl.java index 12626346..d432be00 100644 --- a/src/main/java/com/peanut/modules/common/service/impl/AiVipLogServiceImpl.java +++ b/src/main/java/com/peanut/modules/common/service/impl/AiVipLogServiceImpl.java @@ -61,8 +61,10 @@ public class AiVipLogServiceImpl extends ServiceImpl impl AiVipLog aiVipLog = this.getOne(new LambdaQueryWrapper() .eq(AiVipLog::getUserId,ShiroUtils.getUId()) .eq(AiVipLog::getState,0)); - if (aiVipLog.getSurplusCount()>0&&new Date().getTime()0&&new Date().getTime() quankeContentList = aiChatContentService.list(new LambdaQueryWrapper() - .eq(AiChatContent::getUserId,ShiroUtils.getUId()) - .like(AiChatContent::getChatAssistantName,"全科") - .orderByAsc(AiChatContent::getCreateTime) - .groupBy(AiChatContent::getChatId)); + } + List quankeContentList = aiChatContentService.list(new LambdaQueryWrapper() + .eq(AiChatContent::getUserId,ShiroUtils.getUId()) + .like(AiChatContent::getChatAssistantName,"全科") + .orderByAsc(AiChatContent::getCreateTime) + .groupBy(AiChatContent::getChatId)); + if (quankeContentList.size()<3){ freeCount = 3-quankeContentList.size(); - } return R.ok().put("aiVipLog",aiVipLog) .put("flag",flag)