Skip to content

Commit

Permalink
🐛 #1864 【微信支付】WxPayConfig类的hashCode和equals方法移除 verifier 字段
Browse files Browse the repository at this point in the history
  • Loading branch information
xJoeWoo authored Nov 11, 2020
1 parent 4af70b2 commit f301912
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
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;
Expand All @@ -28,6 +29,7 @@
* @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】有问题,请核实!";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ public void testInitSSLContext() throws Exception {
this.testInitSSLContext_classpath();
this.testInitSSLContext_http();
}

@Test
@SuppressWarnings("ResultOfMethodCallIgnored")
public void testHashCode() {
payConfig.hashCode();
}
}

0 comments on commit f301912

Please sign in to comment.