创建代金券批次接口新增字段,包括背景色、卡包跳转目标、小程序 appid 与 path等#3626
创建代金券批次接口新增字段,包括背景色、卡包跳转目标、小程序 appid 与 path等#3626binarywang merged 1 commit intobinarywang:developfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces support for a new jump target option in card packages, updates background color options, and syncs new fields in the FavorStocksCreateRequest payload.
- Added a
JumpTargetEnumto represent card-package jump targets. - Extended
BackgroundColorEnumwith four new color constants. - Introduced
jumpTarget,miniProgramAppid, andminiProgramPathfields inPatternInfo.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| weixin-java-pay/.../enums/JumpTargetEnum.java | New enum for card-package jump targets |
| weixin-java-pay/.../enums/BackgroundColorEnum.java | Added COLOR081, COLOR082, COLOR101, COLOR102 constants |
| weixin-java-pay/src/.../FavorStocksCreateRequest.java | Added jumpTarget, miniProgramAppid, miniProgramPath fields to PatternInfo |
Comments suppressed due to low confidence (2)
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/enums/JumpTargetEnum.java:32
- The Javadoc for the
valuefield says "批次类型" (batch type), which doesn’t match its purpose. It should explain that this field holds the jump target code value, e.g., "跳转目标编码".
*/
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksCreateRequest.java:400
- [nitpick] Consider adding or updating unit tests to verify serialization/deserialization of the new
jumpTarget,miniProgramAppid, andminiProgramPathfields inPatternInfo.
@SerializedName("jump_target")
|
麻烦准确描述下更新内容,而不是简单的“同步新字段”。 |
|
https://pay.weixin.qq.com/doc/v3/merchant/4012534633 可选取值: COLOR010: 色值 #63b359 COLOR020: 色值 #2c9f67 COLOR030: 色值 #509fc9 COLOR040: 色值 #5885cf COLOR050: 色值 #9062c0 COLOR060: 色值 #d09a45 COLOR070: 色值 #e4b138 COLOR080: 色值 #ee903c COLOR081: 色值 #f08500 COLOR082: 色值 #a9d92d COLOR090: 色值 #dd6549 COLOR100: 色值 #cc463d COLOR101: 色值 #cf3e36 COLOR102: 色值 #5E6671 |
|
还需要提供什么内容说明? |
我的意思是提交代码时该写的内容。 |


创建代金券批次接口新增字段,包括背景色、卡包跳转目标、小程序 appid 与 path等