Skip to content

API文档是否需要更新? #7

Description

@JJnotJimmyJohn

我用的是mac。

示例里的部署基地车的命令无法使用。

{
    "apiVersion": "1.0",
    "requestId": 'uuid',
    "command": "deploy",
    "params": {
        "targets": {
            "type": ["基地车"],
            "faction": "己方"
        }
    },
    "language": "zh"
}

query_actor也是,只要传了任何含有targets的params就会返回错误。 比如如下命令

{
    "apiVersion": "1.0",
    "requestId": 'uuid',
    "command": "query_actor",
    "params": {
        "targets": {
            "faction": "己方",
            "range": "all"
        }
    },
    "language": "zh"
}

会返回

{"status":-1,"requestId":"asdasd","response":null,"data":null,"error":{"code":"COMMAND_EXECUTION_ERROR","message":"命令执行失败","details":{"error":"Object reference not set to an instance of an object."}}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions