kulley il y a 6 ans
Parent
commit
e583aea8c4
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/App.js

+ 1 - 2
src/App.js

@@ -87,13 +87,12 @@ class App extends Component {
         let isWechatLogin = getIsWechatBrowser()
         let isWechatLogin = getIsWechatBrowser()
         // console.log('isWechatLogin',isWechatLogin)
         // console.log('isWechatLogin',isWechatLogin)
         if (isWechatLogin) {
         if (isWechatLogin) {
-            setCookie("openid","o2fcFv6Rh2-4rCh3d5_1uCWCT5Yc")
+            // setCookie("openid","o2fcFv6Rh2-4rCh3d5_1uCWCT5Yc")
             let openid = getCookie("openid")
             let openid = getCookie("openid")
             let user_id = getCookie("user_id")
             let user_id = getCookie("user_id")
             console.log('oauthLogin openid', openid)
             console.log('oauthLogin openid', openid)
 
 
             if (!openid) {
             if (!openid) {
-                // 需要修改
                 window.location.href = "/subscribe"
                 window.location.href = "/subscribe"
             } else if (!user_id) {
             } else if (!user_id) {
                 request(graphqlFC, find_user_by_openid, {openid})
                 request(graphqlFC, find_user_by_openid, {openid})