mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-05-07 19:29:35 +08:00
修改方法
This commit is contained in:
parent
eae54423fa
commit
1230b1afdb
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user