2
0

2 Commits 14dc989650 ... 24862650d1

Autor SHA1 Mensagem Data
  DW-PC\DW 24862650d1 Merge branch 'common' of http://svn.ouj.com:3000/FED/dwweb-pc into common há 5 anos atrás
  DW-PC\DW 1483e4da6d 设置昵称弹窗新增白名单 há 5 anos atrás
1 ficheiros alterados com 10 adições e 0 exclusões
  1. 10 0
      公共资源/src/js/dwudbproxy-new.js

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

@@ -51,6 +51,11 @@
             urlMap: [
             urlMap: [
                 'http://www.duowan.com/s/test_login.html'
                 'http://www.duowan.com/s/test_login.html'
             ]
             ]
+        },
+        setNickName:{
+            domainExcludeMap: [
+                'wan.duowan.com'
+            ]
         }
         }
     }
     }
 
 
@@ -73,6 +78,11 @@
         setDefaultSuccCb: function () {
         setDefaultSuccCb: function () {
             //1.登录成功后,校验论坛信息
             //1.登录成功后,校验论坛信息
             this.loginSuccCallbacks.add(function (user) {
             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({
                 $.ajax({
                     url: Util.toDecorateURL('//bbs.duowan.com/api/uinfo4dw.php?op=isregister'),
                     url: Util.toDecorateURL('//bbs.duowan.com/api/uinfo4dw.php?op=isregister'),
                     dataType: 'jsonp',
                     dataType: 'jsonp',