fix 修复获取当前用户名不应加后面的路径/符号

这里是获取系统的用户名,不是路径,不应该带有路径的/ 所以去掉fixPath方法的处理。
This commit is contained in:
ghostg00 2024-01-09 19:48:12 +08:00 committed by GitHub
parent 6a2b585de0
commit 9b3aaee7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ public class UserInfo implements Serializable{
private final String USER_COUNTRY;
public UserInfo(){
USER_NAME = fixPath(SystemUtil.get("user.name", false));
USER_NAME = SystemUtil.get("user.name", false);
USER_HOME = fixPath(SystemUtil.get("user.home", false));
USER_DIR = fixPath(SystemUtil.get("user.dir", false));
JAVA_IO_TMPDIR = fixPath(SystemUtil.get("java.io.tmpdir", false));