修改方法

This commit is contained in:
milimoe 2025-05-01 02:36:55 +08:00
parent eae54423fa
commit 1230b1afdb
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E

View File

@ -38,12 +38,12 @@ namespace Oshima.FunGame.WebAPI.Controllers
[AllowAnonymous]
[HttpGet("last")]
public string[] GetLast([FromQuery] bool full = false)
public List<string> GetLast([FromQuery] bool full = false)
{
PluginConfig LastRecordConfig = new("FunGameSimulation", "LastRecord");
LastRecordConfig.LoadConfig();
string get = full ? "full" : "last";
return LastRecordConfig.Get<string[]>(get) ?? [];
return LastRecordConfig.GetValue<List<string>>(get) ?? [];
}
[AllowAnonymous]