|
@@ -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',
|