Commit 942344bd authored by wuwz's avatar wuwz

修改token判断

parent 6d5bbcba
......@@ -54,7 +54,7 @@ public class AccessTokenService {
{
JSONObject obj = JSONObject.parseObject(accessTokenRedis).getJSONObject(wy_appid);
AccessToken accessToken = new AccessToken(obj.getString("json"),obj.getString("accessToken"),obj.getInteger("expiresIn"),obj.getLong("expiredTime"));
if(accessToken.isAvailable()){
if(null != accessToken && accessToken.isAvailable()){
return accessToken;
}
summbitRedisTemplate.delete(wy_appid);
......
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