update 拿到所有数据取出最后一条数据,对比数据变化

This commit is contained in:
2024-05-06 14:17:08 +08:00
parent 3727199935
commit eb39a4d6c3
3 changed files with 28 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import com.jsowell.common.constant.CacheConstants;
import com.jsowell.common.constant.Constants;
import com.jsowell.common.core.redis.RedisCache;
import com.jsowell.common.enums.AgentDev.AuditStatusEnum;
import com.jsowell.common.util.DictUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.http.HttpUtils;
import com.jsowell.common.util.wxplatform.AesException;
@@ -283,6 +284,9 @@ public class AgentDevService {
// 如果没有,就通过刷新令牌去重新获取
String refreshTokenKey = CacheConstants.AUTHORIZER_REFRESH_TOKEN + authAppId;
String refreshToken = redisCache.getCacheObject(refreshTokenKey);
if (StringUtils.isBlank(refreshToken)) {
refreshToken = DictUtils.getDictValue("authorizer_refresh_token", authAppId);
}
return getAuthTokenByRefreshToken(authAppId, refreshToken);
}