2 Commits 14dc989650 ... 24862650d1

Author SHA1 Message Date
  DW-PC\DW 24862650d1 Merge branch 'common' of http://svn.ouj.com:3000/FED/dwweb-pc into common 5 years ago
  DW-PC\DW 1483e4da6d 设置昵称弹窗新增白名单 5 years ago
1 changed files with 10 additions and 0 deletions
  1. 10 0
      公共资源/src/js/dwudbproxy-new.js

+ 10 - 0
公共资源/src/js/dwudbproxy-new.js

@@ -51,6 +51,11 @@
             urlMap: [
                 'http://www.duowan.com/s/test_login.html'
             ]
+        },
+        setNickName:{
+            domainExcludeMap: [
+                'wan.duowan.com'
+            ]
         }
     }
 
@@ -73,6 +78,11 @@
         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
+                }
                 $.ajax({
                     url: Util.toDecorateURL('//bbs.duowan.com/api/uinfo4dw.php?op=isregister'),
                     dataType: 'jsonp',