Skip to content

gameservermanager相关代码严重报错! #1026

Open
@wutishun

Description

@wutishun

描述Bug

var server = WX.GetGameServerManager();
server.login();
server.StartMatch(new StartMatchOption
{
matchId = matchID,
success = (result) =>
{
Debug.Log("StartMatch succ");
},
fail = result =>
{
Debug.Log("StartMatch fail:" + result.errMsg);
}
});

以上代码会报错:JsonException: Max allowed object depth reached while trying to export from type System.Guid
at LitJson.JsonMapper.WriteValue
如果不设置success和fail参数则不会报错,不止是StartMatch方法,其它方法也同样会报错
代码分支:
https://gitee.com/wechat-minigame/minigame-tuanjie-transform-sdk.git#feat-gameservermanager

运行环境

unity 2022

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions