Skip to content

Refund实体类的status字段反序列化错误 #397

@haitanghua1122

Description

@haitanghua1122

错误描述

为何Refund实体类的status字段还没有改成refund_status,微信返回的是refund_status而sdk是status,sdk无法正确接收,导致我的业务出错,这个问题2023年就有人提过了还没修复:#243 (comment)

重现bug的步骤

测试微信退款回调时判断Refund.status字段出现错误,数据为空

预期行为

将@SerializedName("status")
private Status status;

改成@SerializedName("refund_status")
private Status refundStatus;

导致错误的代码片段

操作系统

windows10

Java 版本

Java 17

wechatpay-java 版本

0.2.17

其他信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions