Browse Source

修改测试环境请求接口地址

wangcz 7 years ago
parent
commit
44501e213c
1 changed files with 4 additions and 6 deletions
  1. 4 6
      src/main/webapp/resources/js/common/services.js

+ 4 - 6
src/main/webapp/resources/js/common/services.js

@@ -151,12 +151,10 @@ define([ 'angular', 'common/utils', 'big'], function(angular, utils, Big) {
 					// defer.promise.then(function (resolve) {
 					// 	$rootScope.b2bUrl = resolve.url;
 					// });
-					if (this.getRootPath().indexOf('tb2c.usoftchina.com') > -1 || this.getRootPath().indexOf('tmall.usoftchina.com') > -1) {
-                        $rootScope.b2bUrl = 'https://tb2b.usoftchina.com'
-					} else if (this.getRootPath().indexOf('rb2c.usoftchina.com') > -1 || this.getRootPath().indexOf('rmall.usoftchina.com') > -1) {
-                        $rootScope.b2bUrl = 'https://rb2b.usoftchina.com'
-					} else if (this.getRootPath().indexOf('pb2c.usoftchina.com') > -1 || this.getRootPath().indexOf('pmall.usoftchina.com') > -1) {
-                        $rootScope.b2bUrl = 'https://pb2b.usoftchina.com'
+					if (this.getRootPath().indexOf('test-b2c.uuzcc.cn') > -1 || this.getRootPath().indexOf('test-mall.uuzcc.cn') > -1) {
+                        $rootScope.b2bUrl = 'https://test-b2b.uuzcc.cn'
+					} 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'
                     } else if (this.getRootPath().indexOf('b2c.usoftchina.com') > -1 || this.getRootPath().indexOf('mall.usoftchina.com') > -1) {
                         $rootScope.b2bUrl = 'https://b2b.usoftchina.com'
 					} else {