mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-06-25 06:06:42 +08:00
代码格式化
This commit is contained in:
@ -122,9 +122,12 @@ class _HomeState extends State<Home> {
|
|||||||
ListTile(
|
ListTile(
|
||||||
title: const Text('获取用户信息'),
|
title: const Text('获取用户信息'),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (_loginDate != null && _loginResp != null &&
|
if (_loginDate != null &&
|
||||||
|
_loginResp != null &&
|
||||||
_loginResp.ret == TencentResp.RET_SUCCESS) {
|
_loginResp.ret == TencentResp.RET_SUCCESS) {
|
||||||
if (DateTime.now().millisecondsSinceEpoch - _loginResp.createAt < _loginResp.expiresIn * 1000) {
|
if (DateTime.now().millisecondsSinceEpoch -
|
||||||
|
_loginResp.createAt <
|
||||||
|
_loginResp.expiresIn * 1000) {
|
||||||
widget.tencent.getUserInfo(
|
widget.tencent.getUserInfo(
|
||||||
openId: _loginResp.openid,
|
openId: _loginResp.openid,
|
||||||
accessToken: _loginResp.accessToken,
|
accessToken: _loginResp.accessToken,
|
||||||
|
Reference in New Issue
Block a user