mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
🐛 #1864 【微信支付】WxPayConfig类的hashCode和equals方法移除 verifier 字段
This commit is contained in:
parent
4af70b2c7c
commit
f301912154
@ -6,6 +6,7 @@ import com.github.binarywang.wxpay.v3.auth.*;
|
||||
import com.github.binarywang.wxpay.v3.util.PemUtils;
|
||||
import jodd.util.ResourcesUtil;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.SneakyThrows;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.RegExUtils;
|
||||
@ -28,6 +29,7 @@ import java.util.Collections;
|
||||
* @author Binary Wang (https://github.com/binarywang)
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(exclude = "verifier")
|
||||
public class WxPayConfig {
|
||||
private static final String DEFAULT_PAY_BASE_URL = "https://api.mch.weixin.qq.com";
|
||||
private static final String PROBLEM_MSG = "证书文件【%s】有问题,请核实!";
|
||||
|
@ -31,4 +31,10 @@ public class WxPayConfigTest {
|
||||
this.testInitSSLContext_classpath();
|
||||
this.testInitSSLContext_http();
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("ResultOfMethodCallIgnored")
|
||||
public void testHashCode() {
|
||||
payConfig.hashCode();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user