对接测试登录流程(第三方登录以及手机号码登录)

This commit is contained in:
kehaoyuan
2017-07-18 10:43:38 +08:00
parent f42674ed6f
commit 4f4c90f792
16 changed files with 324 additions and 115 deletions

View File

@ -90,7 +90,7 @@ public class GetLoginDataUtils {
content.put("access_token_expire", Utils.getTime(mContext) + jsonObject.getLong("expires_in"));
content.put("access_token", jsonObject.getString("access_token"));
if (mLoginListener != null) {
mLoginListener.OnLoginData(jsonObject, LoginUtils.LoginTag.qq);// QQ 登录回调
mLoginListener.OnLoginData(content, LoginUtils.LoginTag.qq);// QQ 登录回调
}
} catch (JSONException e) {
@ -209,9 +209,9 @@ public class GetLoginDataUtils {
content.put("access_token", token.getToken());
content.put("access_token_expire", Utils.getTime(mContext) + token.getExpiresTime());
content.put("refresh_token", token.getRefreshToken());
// content.put("refresh_token_expire", ""); // TODO refresh_token 好像没有有效期
// content.put("refresh_token_expire", Utils.getTime(mContext) + 86400 * 30); // refresh_token 有效期30天
if (mLoginListener != null) {
mLoginListener.OnLoginData(content, LoginUtils.LoginTag.qq);// QQ 登录回调
mLoginListener.OnLoginData(content, LoginUtils.LoginTag.weibo);// QQ 登录回调
}
} catch (JSONException e) {
e.printStackTrace();