From a7dda43ffef6493f19d8d9e82fae28346181b580 Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Mon, 21 Aug 2023 15:17:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=BB=93=E7=AE=97=E8=B4=A6=E6=88=B7=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/jsowell/adapay/service/AdapayService.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java b/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java index af9a67764..54990226f 100644 --- a/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java +++ b/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java @@ -60,9 +60,6 @@ public class AdapayService { @Autowired private RedisCache redisCache; - @Value("${adapay.jsowell.appId}") - private String ADAPAY_APP_ID; - @Value("${adapay.callback}") private String ADAPAY_CALLBACK_URL; @@ -469,7 +466,7 @@ public class AdapayService { settleCountParams.put("settle_account_id", settleAccountId); settleCountParams.put("member_id", adapayMemberId); settleCountParams.put("app_id", config.getAdapayAppId()); - Map settleCount = SettleAccount.delete(settleCountParams); + Map settleCount = SettleAccount.delete(settleCountParams, wechatAppId); log.info("创建删除结算账户请求param:{}, result:{}", JSON.toJSONString(settleCountParams), JSON.toJSONString(settleCount)); } From ed2f57214ae8d4f273d686ea510d947c87190c5c Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Mon, 21 Aug 2023 15:37:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E9=93=B6=E8=A1=8C=E5=8D=A1=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/java/SpringBootTestController.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/jsowell-admin/src/test/java/SpringBootTestController.java b/jsowell-admin/src/test/java/SpringBootTestController.java index 9916912bb..a49a79474 100644 --- a/jsowell-admin/src/test/java/SpringBootTestController.java +++ b/jsowell-admin/src/test/java/SpringBootTestController.java @@ -16,6 +16,7 @@ import com.jsowell.JsowellApplication; import com.jsowell.adapay.common.DivMember; import com.jsowell.adapay.config.AbstractAdapayConfig; import com.jsowell.adapay.dto.QueryAcctFlowDTO; +import com.jsowell.adapay.dto.SettleAccountDTO; import com.jsowell.adapay.factory.AdapayConfigFactory; import com.jsowell.adapay.service.AdapayService; import com.jsowell.adapay.vo.DrawCashDetailVO; @@ -198,6 +199,24 @@ public class SpringBootTestController { @Autowired private OrderPileOccupyService orderPileOccupyService; + /** + * 手动变更银行卡信息 + */ + @Test + public void createSettleAccountRequestTest() throws BaseAdaPayException { + SettleAccountDTO dto = new SettleAccountDTO(); + dto.setCardId("662214020754200010"); + dto.setCardName("景泰昌运汽车运输有限公司"); + dto.setTelNo("13893002888"); + dto.setBankCode("05818200"); + dto.setBankAcctType("1"); + dto.setProvCode("0062"); + dto.setAreaCode("6202"); + String adapayMemberId = "ACM69424215"; + String wechatAppId = "wxbb3e0d474569481d"; + adapayService.createSettleAccountRequest(dto, adapayMemberId, wechatAppId); + } + @Test public void createDeleteSettleAccountRequestTest() throws BaseAdaPayException { String adapayMemberId = "ACM69424215";