提交 13dacba3 编写于 作者: NoSubject's avatar NoSubject

修复url获取多冒号的问题

上级 9e046b49
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}) })
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -316,10 +316,10 @@ if (!layout.isReady) { ...@@ -316,10 +316,10 @@ if (!layout.isReady) {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -79,10 +79,10 @@ o2.addReady(function () { ...@@ -79,10 +79,10 @@ o2.addReady(function () {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -72,10 +72,10 @@ o2.addReady(function () { ...@@ -72,10 +72,10 @@ o2.addReady(function () {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -141,10 +141,10 @@ o2.addReady(function () { ...@@ -141,10 +141,10 @@ o2.addReady(function () {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -275,10 +275,10 @@ o2.addReady(function(){ ...@@ -275,10 +275,10 @@ o2.addReady(function(){
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -381,10 +381,10 @@ o2.addReady(function () { ...@@ -381,10 +381,10 @@ o2.addReady(function () {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -295,10 +295,10 @@ o2.addReady(function () { ...@@ -295,10 +295,10 @@ o2.addReady(function () {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -288,10 +288,10 @@ o2.addReady(function () { ...@@ -288,10 +288,10 @@ o2.addReady(function () {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -72,7 +72,7 @@ function getServiceAddressConfigObject(callback, center){ ...@@ -72,7 +72,7 @@ function getServiceAddressConfigObject(callback, center){
var serviceAddressList = json.data; var serviceAddressList = json.data;
if (layout.config.proxyApplicationEnable){ if (layout.config.proxyApplicationEnable){
Object.keys(serviceAddressList).forEach(function(k){ Object.keys(serviceAddressList).forEach(function(k){
if (k!=="x_message_assemble_communicate") serviceAddressList[k].port = window.location.port; if (k!=="x_message_assemble_communicate") serviceAddressList[k].port = window.location.port || 80;
}); });
} }
window.layout.serviceAddressList = serviceAddressList; window.layout.serviceAddressList = serviceAddressList;
......
...@@ -93,10 +93,10 @@ o2.addReady(function () { ...@@ -93,10 +93,10 @@ o2.addReady(function () {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -158,10 +158,10 @@ o2.addReady(function () { ...@@ -158,10 +158,10 @@ o2.addReady(function () {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -33,10 +33,10 @@ COMMON.DOM.addReady(function(){ ...@@ -33,10 +33,10 @@ COMMON.DOM.addReady(function(){
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -327,10 +327,10 @@ o2.addReady(function () { ...@@ -327,10 +327,10 @@ o2.addReady(function () {
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -265,10 +265,10 @@ o2.addReady(function(){ ...@@ -265,10 +265,10 @@ o2.addReady(function(){
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}); });
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}) })
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}) })
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
layout.config = config; layout.config = config;
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
if (config.proxyCenterEnable){ if (config.proxyCenterEnable){
if (o2.typeOf(config.center)==="array"){ if (o2.typeOf(config.center)==="array"){
config.center.forEach(function(c){ config.center.forEach(function(c){
c.port = window.location.port; c.port = window.location.port || 80;
}) })
}else{ }else{
config.port = window.location.port; config.port = window.location.port || 80;
} }
} }
if (!window.layout) window.layout = {}; if (!window.layout) window.layout = {};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册