Commit eaac87a3 authored by hezhen's avatar hezhen

123

parent 87359b1f
......@@ -79,8 +79,7 @@ public class AccessTokenService {
* @return String accessToken
*/
public String getAccessTokenStr() {
// return getAccessToken().getAccessToken();
return null;
return getAccessToken().getAccessToken();
}
......@@ -102,7 +101,7 @@ public class AccessTokenService {
obj.put(wy_appid, result);
Boolean suc=summbitRedisTemplate.opsForValue().setIfAbsent(wy_appid, obj.toJSONString());
if (suc) {
// summbitRedisTemplate.expire(wy_appid, result.getExpiresIn(), TimeUnit.MINUTES);
summbitRedisTemplate.expire(wy_appid, result.getExpiresIn(), TimeUnit.MINUTES);
}
}
}
\ No newline at end of file
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