Prechádzať zdrojové kódy

兼容多玩游戏大厅

DW-PC\DW 5 rokov pred
rodič
commit
a11b712d0d
1 zmenil súbory, kde vykonal 17 pridanie a 6 odobranie
  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) {