添加一体机登录接口

This commit is contained in:
chenshaohua
2026-05-12 13:07:58 +08:00
parent 0648e1f70c
commit aed2093175
6 changed files with 175 additions and 2 deletions

View File

@@ -213,4 +213,20 @@ public class StringUtil {
return "***";
}
}
/**
* 转大写
* @param str
* @return
*/
public static String toUpperCaseIgnoreBlank(String str) {
if (str == null) {
return null;
}
String trimmedStr = str.trim();
if (trimmedStr.isEmpty()) {
return str;
}
return str.toUpperCase();
}
}