重构 SaTokenException 类方法 throwBy->notTrue、throwByNull->notEmpty

This commit is contained in:
click33
2024-04-12 10:05:56 +08:00
parent 8a2a4f0372
commit 217721cae6
5 changed files with 78 additions and 13 deletions

View File

@@ -524,7 +524,7 @@ public class SaSsoTemplate {
String url = path;
if( ! url.startsWith("http") ) {
String serverUrl = SaSsoManager.getConfig().getServerUrl();
SaSsoException.throwByNull(serverUrl, "请先配置 sa-token.sso.server-url 地址", SaSsoErrorCode.CODE_30012);
SaSsoException.notEmpty(serverUrl, "请先配置 sa-token.sso.server-url 地址", SaSsoErrorCode.CODE_30012);
url = SaFoxUtil.spliceTwoUrl(serverUrl, path);
}