|
@@ -73,9 +73,6 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
@Autowired
|
|
|
private MerchNotiService merchNotiService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private MerchCusService merchCusService;
|
|
|
-
|
|
|
/**
|
|
|
* 海关报关接口
|
|
|
*/
|
|
@@ -407,11 +404,13 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
+
|
|
|
+ String queryURL = "https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclarequery";
|
|
|
WxCbPayDoc wxCbPayDoc = new WxCbPayDoc();
|
|
|
wxCbPayDoc.setAppid("wx24013b34e349db3c");
|
|
|
wxCbPayDoc.setMchId("1501125641");
|
|
|
- wxCbPayDoc.setOutTradeNo("669918012250");
|
|
|
- wxCbPayDoc.setTransactionId("4200000120201805021020091366");
|
|
|
+ wxCbPayDoc.setOutTradeNo("670219011050");
|
|
|
+ wxCbPayDoc.setTransactionId("4200000137201805171532382342");
|
|
|
wxCbPayDoc.setCustoms("SHENZHEN");
|
|
|
wxCbPayDoc.setMchCustomsNo("4403160Z3Y");//中网科技(深圳)有限公司
|
|
|
|
|
@@ -423,6 +422,11 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
sorted.put("transaction_id", wxCbPayDoc.getTransactionId());
|
|
|
sorted.put("customs", wxCbPayDoc.getCustoms());
|
|
|
sorted.put("mch_customs_no", wxCbPayDoc.getMchCustomsNo());
|
|
|
+ //sorted.put("action_type", "MODIFY ");
|
|
|
+ sorted.put("cert_type", "IDCARD");
|
|
|
+ sorted.put("cert_id", "440301198012261939");
|
|
|
+ sorted.put("name", "司晓峰");
|
|
|
+
|
|
|
|
|
|
//2.生成签名
|
|
|
StringBuilder sb = new StringBuilder();
|