Skip to content

json: cannot unmarshal number into Go struct field BatchSendResult.result.code of type string  #78

@xiamixiao

Description

@xiamixiao

京东云文本短信产品,调用批量发送短信方法时遇到响应异常
Unmarshal json failed, resp: %s {"result":{"code":11561102,"data":null,"message":"批量发送短信接口,未找到模板ID对应的数据。","status":false},"requestId":"58ac9346cfda4ec0a118b4eb5b10df5e"}
响应结果result.code为int类型,但是struct定义类型为string类型,最终解析失败
请开发者核实

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