Browse Source

兼容多玩游戏大厅

DW-PC\DW 5 years ago
parent
commit
a11b712d0d
1 changed files with 17 additions and 6 deletions
  1. 17 6
      公共资源/src/js/dwudbproxy-new.js

+ 17 - 6
公共资源/src/js/dwudbproxy-new.js

@@ -52,7 +52,7 @@
                 'http://www.duowan.com/s/test_login.html'
             ]
         },
-        setNickName:{
+        showTips:{
             domainExcludeMap: [
                 'wan.duowan.com'
             ]
@@ -78,11 +78,9 @@
         setDefaultSuccCb: function () {
             //1.登录成功后,校验论坛信息
             this.loginSuccCallbacks.add(function (user) {
-                var domainExcludeMap = Config.setNickName.domainExcludeMap
-                for(var i = 0; i < domainExcludeMap.length; i++){
-                    var domainExclude = domainExcludeMap[i];
-                    if(location.hostname.indexOf(domainExclude) >= 0 ) return
-                }
+
+                if(Util.allowShowTips() === false) return 
+
                 $.ajax({
                     url: Util.toDecorateURL('//bbs.duowan.com/api/uinfo4dw.php?op=isregister'),
                     dataType: 'jsonp',
@@ -360,6 +358,18 @@
 
             return false;
         },
+
+        allowShowTips:function(){
+            var domainExcludeMap = Config.showTips.domainExcludeMap
+
+            for(var i = 0; i < domainExcludeMap.length; i++){
+                var domainExclude = domainExcludeMap[i];
+                if(location.hostname.indexOf(domainExclude) >= 0 ) return false
+            }
+
+            return true
+        },
+
         checkLogin: function () {
             if (this.isLogin()) {
                 this.loginSuccCallbacks.fire(this.getUserInfo())
@@ -920,6 +930,7 @@
         /**提示弹窗 */
         showTip: function () {
             if (Util.isWap) return
+            if( Util.allowShowTips() === false) return
             var self = this
             this.getUser(function (ret) {
                 if (ret.bindList.length == 0) {