|
|
@@ -2,6 +2,7 @@ package com.uas.sso.entity.login;
|
|
|
|
|
|
import com.uas.sso.AccountConfig;
|
|
|
import com.uas.sso.core.Const;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
/**
|
|
|
* @author wangmh
|
|
|
@@ -23,6 +24,9 @@ public abstract class BaseLogin {
|
|
|
}
|
|
|
|
|
|
public void setAppId(String appId) {
|
|
|
+ if (StringUtils.isEmpty(appId)) {
|
|
|
+ appId = AccountConfig.ACCOUNT_CENTER;
|
|
|
+ }
|
|
|
this.appId = appId;
|
|
|
}
|
|
|
|
|
|
@@ -31,6 +35,9 @@ public abstract class BaseLogin {
|
|
|
}
|
|
|
|
|
|
public void setReturnUrl(String returnUrl) {
|
|
|
+ if (StringUtils.isEmpty(appId)) {
|
|
|
+ appId = Const.HOME_PAGE;
|
|
|
+ }
|
|
|
this.returnUrl = returnUrl;
|
|
|
}
|
|
|
|