修复UserInfo中用户名加/问题

This commit is contained in:
Looly 2024-01-09 21:55:36 +08:00
parent 94dc35a2e0
commit 4a545e3f1a

View File

@ -31,8 +31,11 @@ public class UserInfo implements Serializable{
private final String USER_LANGUAGE;
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));