Skip to content

Commit 6210520

Browse files
committed
🐛 #3258【微信支付】解决部分金额字段整数溢出问题
1 parent 42e92ae commit 6210520

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsGetResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public static class CutToMessage implements Serializable {
171171
* 示例值:100
172172
*/
173173
@SerializedName(value = "single_price_max")
174-
private Integer singlePriceMax;
174+
private Long singlePriceMax;
175175

176176
/**
177177
* 减至后的优惠单价
@@ -180,7 +180,7 @@ public static class CutToMessage implements Serializable {
180180
* 示例值:100
181181
*/
182182
@SerializedName(value = "cut_to_price")
183-
private Integer cutToPrice;
183+
private Long cutToPrice;
184184
}
185185

186186
@Data

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsUseResult.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static class SingleitemDiscountOff implements Serializable {
179179
* 示例值:100
180180
*/
181181
@SerializedName(value = "single_price_max")
182-
private Integer singlePriceMax;
182+
private Long singlePriceMax;
183183
}
184184

185185
@Data
@@ -194,7 +194,7 @@ public static class DiscountTo implements Serializable {
194194
* 示例值:100
195195
*/
196196
@SerializedName(value = "cut_to_price")
197-
private Integer cutToPrice;
197+
private Long cutToPrice;
198198

199199
/**
200200
* 最高价格
@@ -203,7 +203,7 @@ public static class DiscountTo implements Serializable {
203203
* 示例值:20
204204
*/
205205
@SerializedName(value = "max_price")
206-
private Integer maxPrice;
206+
private Long maxPrice;
207207
}
208208

209209
@Data
@@ -218,7 +218,7 @@ public static class NormalCouponInformation implements Serializable {
218218
* 示例值:100
219219
*/
220220
@SerializedName(value = "coupon_amount")
221-
private Integer couponAmount;
221+
private Long couponAmount;
222222

223223
/**
224224
* 门槛
@@ -227,7 +227,7 @@ public static class NormalCouponInformation implements Serializable {
227227
* 示例值:100
228228
*/
229229
@SerializedName(value = "transaction_minimum")
230-
private Integer transactionMinimum;
230+
private Long transactionMinimum;
231231
}
232232

233233
@Data

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksQueryResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class FavorStocksQueryResult implements Serializable {
2525
* 示例值:10
2626
*/
2727
@SerializedName("total_count")
28-
private Integer totalCount;
28+
private Long totalCount;
2929

3030
/**
3131
* 批次详情

0 commit comments

Comments
 (0)