微博open API oauth2.0,测试级别。用测试用户登录,第一次授权结束之后不断登录但是授权更新时间不会刷新,expire在不断减少。官方帮助里面这么写:
access_token自动延续方案
如果用户在授权有效期内重新打开授权页授权(如果此时用户有微博登录状态,这个页面将一闪而过),那么新浪会为开发者自动延长access_token的生命周期,请开发者维护新授权后得access_token值。
但是我实际操作里并没有延长,access_token的生命周期不断减少,不知道这是什么原因。
1
Sinute 2015-02-19 16:23:44 +08:00 1
我自己这边测试结果是立即重新登录不会刷新
超过一段时间后会刷新(比如一天 从11号到19号的记录, 每天10点登录 ``` 2015-02-11 {"access_token":"","remind_in":"665989","expires_in":"665989","uid":""} 2015-02-12 {"access_token":"","remind_in":"665988","expires_in":"665988","uid":""} 2015-02-13 {"access_token":"","remind_in":"665988","expires_in":"665988","uid":""} 2015-02-14 {"access_token":"","remind_in":"665987","expires_in":"665987","uid":""} 2015-02-15 {"access_token":"","remind_in":"665987","expires_in":"665987","uid":""} 2015-02-16 {"access_token":"","remind_in":"665987","expires_in":"665987","uid":""} 2015-02-17 {"access_token":"","remind_in":"665987","expires_in":"665987","uid":""} 2015-02-18 {"access_token":"","remind_in":"665988","expires_in":"665988","uid":""} 2015-02-19 {"access_token":"","remind_in":"665987","expires_in":"665987","uid":""} ``` |