Skip to content

Commit 7b6f3bb

Browse files
committed
#973 修复服务商发送微信红包时的签名问题
1 parent 7eeceef commit 7b6f3bb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPaySendRedpackRequest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
package com.github.binarywang.wxpay.bean.request;
22

33
import com.thoughtworks.xstream.annotations.XStreamAlias;
4-
import lombok.AllArgsConstructor;
5-
import lombok.Builder;
6-
import lombok.Data;
7-
import lombok.EqualsAndHashCode;
8-
import lombok.NoArgsConstructor;
4+
import lombok.*;
95

106
/**
117
* 发送红包请求参数对象.
@@ -20,9 +16,11 @@
2016
@AllArgsConstructor
2117
@XStreamAlias("xml")
2218
public class WxPaySendRedpackRequest extends BaseWxPayRequest {
19+
private static final long serialVersionUID = -2035425086824987567L;
20+
2321
@Override
2422
protected String[] getIgnoredParamsForSign() {
25-
return new String[]{"sign_type"};
23+
return new String[]{"sign_type", "sub_appid"};
2624
}
2725

2826
/**

0 commit comments

Comments
 (0)