This commit is contained in:
wuchunlei
2025-06-06 09:21:04 +08:00
parent 11c2fd858e
commit 1e07466d21
3 changed files with 12 additions and 10 deletions

View File

@@ -61,8 +61,10 @@ public class AiVipLogServiceImpl extends ServiceImpl<AiVipLogDao, AiVipLog> impl
AiVipLog aiVipLog = this.getOne(new LambdaQueryWrapper<AiVipLog>()
.eq(AiVipLog::getUserId,ShiroUtils.getUId())
.eq(AiVipLog::getState,0));
if (aiVipLog.getSurplusCount()>0&&new Date().getTime()<aiVipLog.getEndTime().getTime()){
return true;
if (aiVipLog!=null){
if (aiVipLog.getSurplusCount()>0&&new Date().getTime()<aiVipLog.getEndTime().getTime()){
return true;
}
}
return false;
}