Commit 955fa9b5 authored by 马志宇's avatar 马志宇 Committed by 马志宇

fix update info


(cherry picked from commit c736cb04)
parent 66b369a7
......@@ -22,7 +22,6 @@ import mobi.mixiong.camp.entity.program.Program;
import mobi.mixiong.camp.entity.stream.Stream;
import mobi.mixiong.camp.entity.stream.StreamMessage;
import mobi.mixiong.camp.enums.StreamTypeEnum;
import mobi.mixiong.camp.enums.TransferStatus;
import mobi.mixiong.camp.enums.UserGagStatus;
import mobi.mixiong.camp.exception.ServerException;
import mobi.mixiong.camp.service.program.ProgramService;
......
......@@ -2,6 +2,7 @@ package mobi.mixiong.camp.cache.system;
import lombok.extern.slf4j.Slf4j;
import mobi.mixiong.camp.StringUtils;
import mobi.mixiong.camp.cache.CacheUtil;
import mobi.mixiong.camp.cache.system.co.AppVersionInfoCo;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -73,7 +74,11 @@ public class AppVersionInfoCache {
public Long getCurrentAppVersion(int productId, int platform) {
String cacheKey = currentVersionKeyPrefix + productId + "_" + platform;
String val= String.valueOf(CacheUtil.val().get(longRedisTemplate, cacheKey, currentVersionInfoTTL));
return Long.valueOf(val);
if(StringUtils.isNotBlank(val)&&!StringUtils.equals("null",val)) {
return Long.valueOf(val);
}else{
return null;
}
}
public void dropCurrentAppVersion(int productId, int platform) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment