Bladeren bron

fix: 修改商城帐户中心地址

wangcz 6 jaren geleden
bovenliggende
commit
25aed0f768
1 gewijzigde bestanden met toevoegingen van 7 en 1 verwijderingen
  1. 7 1
      src/main/webapp/resources/js/index/app.js

+ 7 - 1
src/main/webapp/resources/js/index/app.js

@@ -965,7 +965,13 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             });
         }
         $scope.ssoLink = function (url) {
-            window.location.href = 'https://sso2.usoftchina.com' + url;
+            AccountEnterprise.getB2cUrl({}, function(data) {
+                if (data.url.indexOf('uuzcc') > 0) {
+                    window.location.href = 'https://account.uuzcc.cn' + url;
+                } else {
+                    window.location.href = 'https://sso2.usoftchina.com' + url;
+                }
+            });
         }
 
     }]);