增加收藏页面,优化登录流程

This commit is contained in:
kehaoyuan
2017-07-19 11:21:42 +08:00
parent fdf7bdd64d
commit d96a2d22e0
25 changed files with 852 additions and 47 deletions

View File

@ -147,6 +147,12 @@ public class GetLoginDataUtils {
}
}
public void QQLogout() {
if (mTencent != null && mTencent.isSessionValid()) {
mTencent.logout(mContext);
}
}
// 微信登录
public void WCLogin(OnLoginDataListener listener) {
@ -159,6 +165,9 @@ public class GetLoginDataUtils {
req.state = "光环助手";
boolean b = mIWXAPI.sendReq(req);
Utils.log(GetLoginDataUtils.class.getSimpleName(), "微信注册状态::" + register + "\n 发送状态::" + b);
if (!register || !b) {
Utils.toast(mContext, "请检查是否安装微信客户端");
}
}
}