🐛 #1864 【微信支付】WxPayConfig类的hashCode和equals方法移除 verifier 字段

This commit is contained in:
JoeWoo 2020-11-11 23:48:38 +08:00 committed by GitHub
parent 4af70b2c7c
commit f301912154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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】有问题请核实";

View File

@ -31,4 +31,10 @@ public class WxPayConfigTest {
this.testInitSSLContext_classpath();
this.testInitSSLContext_http();
}
@Test
@SuppressWarnings("ResultOfMethodCallIgnored")
public void testHashCode() {
payConfig.hashCode();
}
}