Skip to content

修复接收类型问题#3959

Open
z564855949 wants to merge 1 commit intobinarywang:developfrom
z564855949:develop
Open

修复接收类型问题#3959
z564855949 wants to merge 1 commit intobinarywang:developfrom
z564855949:develop

Conversation

@z564855949
Copy link
Copy Markdown

接收类型有问题,product_id应该为String类型,不是Integer类型

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本次 PR 修复视频号(Channel)订单相关数据模型中 product_id 的接收类型不匹配问题,将其从 Integer 更正为 String,以适配接口返回的实际数据类型并避免反序列化失败。

Changes:

  • MainProductInfo.productId 类型由 Integer 调整为 String,修复 product_id 接收类型问题。

Comment on lines 33 to +34
@JsonProperty("product_id")
private Integer productId;
private String productId;
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里将 productIdInteger 改为 String 会改变 Lombok 生成的 getter/setter 签名,属于对外 API 的破坏性变更(下游若调用 getProductId()/setProductId(Integer) 将无法编译)。如果这是必要的类型修正,建议同时提供一个过渡方案(例如新增/保留一个标记为 @Deprecated 的整数访问方式,如 getProductIdAsInteger()/setProductId(Integer),内部与 String 字段互转),以降低升级成本。

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants