改bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user