Преглед изворни кода

pref: 将B2B代理进行转接处理

wangcz пре 7 година
родитељ
комит
8a3d24ca10

+ 3 - 0
src/main/webapp/resources/js/common/controllers/commonCtrls.js

@@ -42,6 +42,9 @@ define([ 'app/app' ], function(app) {
 				if(cfg.url && !isInArr(cfg.url)) {
 					startLoading();
 				}
+				if (cfg.url.indexOf('/UBTOB')) {
+					cfg.url = cfg.url.replace('/UBTOB', '')
+				}
 				return cfg;
 			},
 			requestError: function(rejection) {

+ 5 - 5
src/main/webapp/resources/js/common/services.js

@@ -152,15 +152,15 @@ define([ 'angular', 'common/utils', 'big'], function(angular, utils, Big) {
 					// 	$rootScope.b2bUrl = resolve.url;
 					// });
 					if (this.getRootPath().indexOf('test-b2c.uuzcc.cn') > -1 || this.getRootPath().indexOf('test-mall.uuzcc.cn') > -1) {
-                        $rootScope.b2bUrl = 'https://test-b2b.uuzcc.cn'
+                        $rootScope.b2bUrl = 'https://test-b2b.uuzcc.cn/UBTOB'
 					} else if (this.getRootPath().indexOf('rel-b2c.uuzcc.cn') > -1 || this.getRootPath().indexOf('rel-mall.uuzcc.cn') > -1) {
-                        $rootScope.b2bUrl = 'https://rel-b2b.uuzcc.cn'
+                        $rootScope.b2bUrl = 'https://rel-b2b.uuzcc.cn/UBTOB'
                     } else if (this.getRootPath().indexOf('pre-b2c.uuzcc.cn') > -1 || this.getRootPath().indexOf('pre-mall.uuzcc.cn') > -1) {
-                        $rootScope.b2bUrl = 'https://pre-b2b.uuzcc.cn'
+                        $rootScope.b2bUrl = 'https://pre-b2b.uuzcc.cn/UBTOB'
                     } else if (this.getRootPath().indexOf('b2c.usoftchina.com') > -1 || this.getRootPath().indexOf('mall.usoftchina.com') > -1) {
-                        $rootScope.b2bUrl = 'https://b2b.usoftchina.com'
+                        $rootScope.b2bUrl = 'https://b2b.usoftchina.com/UBTOB'
 					} else {
-                        $rootScope.b2bUrl = 'http://10.1.51.125:8090/platform-b2b/'
+                        $rootScope.b2bUrl = 'http://10.1.51.125:8090/platform-b2b/UBTOB'
 					}
 				}
 				return $rootScope.b2bUrl;