perf:调整授权登录
This commit is contained in:
@@ -1,33 +1,9 @@
|
||||
package com.tiesheng.login.pojos;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
||||
public class LoginToInfo {
|
||||
|
||||
private String to;
|
||||
|
||||
/**
|
||||
* 获取默认的去往目的地
|
||||
*
|
||||
* @param def
|
||||
* @return
|
||||
*/
|
||||
public String getDefaultTo(String def) {
|
||||
if (StrUtil.isEmpty(getTo())) {
|
||||
return def;
|
||||
}
|
||||
return getTo();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取默认的去往目的地
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getDefaultTo() {
|
||||
return getDefaultTo("mobile");
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// setter\getter
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user