Commit fa4172f9 by zhanghj

V1.4.0--修改token过期时间

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23691 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 022bc08f
......@@ -118,8 +118,8 @@ public class WechatUtils {
if (tokenJO.containsKey("access_token")) {
access_token = tokenJO.getString("access_token");
//long expires_in = tokenJO.getLongValue("expires_in");
//过期时间设置为30分钟
long expires_in=1800;
//过期时间设置为10分钟
long expires_in=600;
String tokenCacheKey = Constants.WECHAT_TOKEN_KEY + appid;
redisCacheUtil.setCacheObject(tokenCacheKey, access_token, expires_in, TimeUnit.SECONDS);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!