Merge pull request #3458 from ghostg00/v5-dev

fix 修复获取当前用户名不应加后面的路径/符号
This commit is contained in:
Golden Looly 2024-01-09 21:54:00 +08:00 committed by GitHub
commit 5f0db8c8ff
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));