Browse Source

绑定页面接口对接

RaoMeng 6 years ago
parent
commit
ff84b354d0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frontend/wechat-web/src/modules/accountBind/BindMenu.jsx

+ 2 - 2
frontend/wechat-web/src/modules/accountBind/BindMenu.jsx

@@ -45,7 +45,7 @@ export default class BindMenu extends Component {
                 })
                 window.location.href =
                     'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
-                    this.paramId + '&redirect_uri=https%3a%2f%2ftmobile.ubtob.com%2fschool%2fuser%2fuserLogin&response_type=code&scope=snsapi_userinfo&state=' +
+                    this.paramId + '&redirect_uri=https%3a%2f%2fschool-api.ubtob.com%2fwxSchool%2fuser%2fuserLogin&response_type=code&scope=snsapi_userinfo&state=' +
                     this.paramId + '&connect_redirect=1#wechat_redirect'
             }
 
@@ -75,7 +75,7 @@ export default class BindMenu extends Component {
 
     obtainBindStatus = () => {
         fetchGet(API.USER_ISBINDING, {
-            openid: 'fanglonghai',
+            openid: this.openid,
             schoolId: 1
         }).then(response => {
             if (response.data) {