| | |
| | | * 判断是否token有效 |
| | | */ |
| | | private void checkTokenEffective() { |
| | | //https:api.weixin.qq.com/sns/auth?access_token=ACCESS_TOKEN&openid=OPENID |
| | | |
| | | String url = "https:api.weixin.qq.com/sns/auth?access_token=" + bean.getAccess_token() + "&openid=" + WXConstants.APP_ID; |
| | | WXHttpUtil.doGet(url, CacheMode.DEFAULT, new HttpCallBack() { |
| | | @Override |
| | |
| | | * 检查是否登陆失效 |
| | | */ |
| | | private void checkWXLogin() { |
| | | // |
| | | String url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid= " + |
| | | WXConstants.APP_ID + |
| | | "&secret=" + "应用密钥" + "&code="+ |
| | |
| | | |
| | | @Override |
| | | public void showLoadingDialog() { |
| | | // |
| | | } |
| | | |
| | | @Override |