Browse Source

修改适配微信平台

smallqiang 5 years ago
parent
commit
9a9fb1d930
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/scripts/net/WeChat.js

+ 1 - 1
assets/scripts/net/WeChat.js

@@ -68,7 +68,7 @@ class WeChat {
     login(cb) {
 
         this.cb = cb || function () { }
-        if (!CC_WECHATGAME || window.tt == undefined) {
+        if (!CC_WECHATGAME && window.tt == undefined) {
             GameGlobal.user = {
                 uid: 1,
                 token: 'lucifer_test_token',