fx
This commit is contained in:
parent
42141d700d
commit
748de42ea9
@ -188,7 +188,7 @@ public class WeiboKitPlugin implements FlutterPlugin, ActivityAware, PluginRegis
|
|||||||
map.put("userId", token.getUid());
|
map.put("userId", token.getUid());
|
||||||
map.put("accessToken", token.getAccessToken());
|
map.put("accessToken", token.getAccessToken());
|
||||||
map.put("refreshToken", token.getRefreshToken());
|
map.put("refreshToken", token.getRefreshToken());
|
||||||
final long expiresIn = (long) Math.ceil((token.getExpiresTime() - System.currentTimeMillis()) / 1000.0);
|
final long expiresIn = (long) Math.ceil(token.getExpiresTime() / 1000.0);
|
||||||
map.put("expiresIn", expiresIn);// 向上取整
|
map.put("expiresIn", expiresIn);// 向上取整
|
||||||
} else {
|
} else {
|
||||||
map.put("errorCode", WeiboErrorCode.UNKNOWN);
|
map.put("errorCode", WeiboErrorCode.UNKNOWN);
|
||||||
|
Loading…
Reference in New Issue
Block a user