mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 03:59:35 +08:00
GetResult<T>可以直接返回JsonManager.GetObject (#34)
This commit is contained in:
parent
5e3767036f
commit
ae4f8aa7aa
@ -87,14 +87,9 @@ namespace Milimoe.FunGame.Core.Api.Transmittal
|
|||||||
/// <param name="key"></param>
|
/// <param name="key"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public T? GetResult<T>(string key)
|
public T? GetResult<T>(string key)
|
||||||
{
|
|
||||||
object? obj = this[key];
|
|
||||||
if (obj != null)
|
|
||||||
{
|
{
|
||||||
return JsonManager.GetObject<T>(Worker.ResultData, key);
|
return JsonManager.GetObject<T>(Worker.ResultData, key);
|
||||||
}
|
}
|
||||||
return default;
|
|
||||||
}
|
|
||||||
|
|
||||||
private class Request : BaseModel
|
private class Request : BaseModel
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user