没有保存……

This commit is contained in:
milimoe 2024-11-15 01:44:44 +08:00
parent 2f86ba0115
commit 185bb8ae37
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E

View File

@ -489,6 +489,7 @@ namespace Oshima.Core.Controllers
PluginConfig pc = new("saved", userid.ToString()); PluginConfig pc = new("saved", userid.ToString());
pc.LoadConfig(); pc.LoadConfig();
pc.Add("user", user); pc.Add("user", user);
pc.SaveConfig();
return NetworkUtility.JsonSerialize($"创建存档成功!你的用户名是【{username}】。"); return NetworkUtility.JsonSerialize($"创建存档成功!你的用户名是【{username}】。");
} }
@ -590,6 +591,7 @@ namespace Oshima.Core.Controllers
} }
break; break;
} }
pc.SaveConfig();
return NetworkUtility.JsonSerialize(msg + "】!"); return NetworkUtility.JsonSerialize(msg + "】!");
} }
else else