Browse Source

feat:优软云地址修改

wangmh 7 years ago
parent
commit
cbc1fa3cda

+ 1 - 1
sso-server/src/main/java/com/uas/sso/core/Const.java

@@ -68,5 +68,5 @@ public class Const {
 
     public static final Long SPACEUU_PERSONAL = 1L;
 
-    public static final String HOME_PAGE = "http://www.ubtob.com";
+    public static final String HOME_PAGE = "https://www.usoftchina.com/";
 }

+ 1 - 1
sso-server/src/main/java/com/uas/sso/entity/login/BaseLogin.java

@@ -52,7 +52,7 @@ public abstract class BaseLogin {
     }
 
     public void setReturnUrl(String returnUrl) {
-        if (StringUtils.isEmpty(appId)) {
+        if (StringUtils.isEmpty(returnUrl)) {
             appId = Const.HOME_PAGE;
         }
         this.returnUrl = returnUrl;

+ 5 - 5
sso-server/src/main/webapp/resources/js/proxyByToken.js

@@ -21,7 +21,7 @@ var app = {
         }
         var str = args[1];
         args = str.split("&");
-        var data = {appId:"", t:-1, p:"", u:null, returnURL:"http://www.ubtob.com", baseURL:null};
+        var data = {appId:"", t:-1, p:"", u:null, returnURL:"https://www.usoftchina.com/", baseURL:null};
         for(var i=0; i<args.length; i++){
             str = args[i];
             if(str.length <= 1) continue;
@@ -35,7 +35,7 @@ var app = {
         toastr.error(message, title, {
             positionClass : 'toast-' + (position || 'top-center')
         });
-        window.location.href="http://www.ubtob.com";
+        window.location.href="https://www.usoftchina.com/";
     },
     returnHref: function () {
         var url = $('#body').val();
@@ -131,7 +131,7 @@ var app = {
             success: function (msg) {
                 app.loading(false);
                 if(msg.success) {
-                    $('#body').val(msg.content.returnUrl || 'http://www.ubtob.com') ;
+                    $('#body').val(msg.content.returnUrl || 'https://www.usoftchina.com/') ;
                     // // 为了使众创登陆成功,加了一个延迟
                     app.returnCount = 0;
                     app.count = msg.content.count;
@@ -142,7 +142,7 @@ var app = {
                     if ($('input[name="returnUrl"]').val() == "http://www.usoftmall.com/login/proxy"){
                         $('input[name="returnUrl"]').val("http://www.usoftmall.com/logout/proxy");
                     }
-                    window.location.href = $('input[name="returnUrl"]').val() || 'http://www.ubtob.com';
+                    window.location.href = $('input[name="returnUrl"]').val() || 'https://www.usoftchina.com/';
                     // app.error(msg.errMsg);
                 }
             },
@@ -150,7 +150,7 @@ var app = {
                 if (formData.returnURL == "http://www.usoftmall.com/login/proxy"){
                     formData.returnURL = "http://www.usoftmall.com/logout/proxy";
                 }
-                window.location.href = formData.returnURL || 'http://www.ubtob.com';
+                window.location.href = formData.returnURL || 'https://www.usoftchina.com/';
                 app.loading(false);
                 // app.error(res);
             }