换绑银行卡接口

This commit is contained in:
2024-01-19 16:59:54 +08:00
parent d4867ed570
commit 5b63bf7f93
5 changed files with 89 additions and 14 deletions

View File

@@ -164,16 +164,15 @@ public class AdapayMemberController extends BaseController {
/**
* 换绑银行卡
* http://localhost:8080/adapay/member/changeBankCard
* changeBankCard
*/
@PostMapping("/changeBankCard")
public AjaxResult changeBankCard(@RequestBody UpdateAccountConfigDTO dto) {
public AjaxResult changeBankCard(@RequestBody ChangeBankCardDTO dto) {
AjaxResult result;
try {
adapayService.updateSettleAccountConfig(dto);
adapayService.changeBankCard(dto);
result = AjaxResult.success();
} catch (BaseAdaPayException e) {
logger.error("查询汇付账户余额error", e);
logger.error("换绑银行卡error", e);
result = AjaxResult.error();
}
return result;

View File

@@ -26,6 +26,7 @@ import com.jsowell.adapay.factory.AdapayConfigFactory;
import com.jsowell.adapay.operation.PaymentReverseOperation;
import com.jsowell.adapay.response.*;
import com.jsowell.adapay.service.AdapayService;
import com.jsowell.adapay.vo.AdapayCorpMemberVO;
import com.jsowell.adapay.vo.DrawCashDetailVO;
import com.jsowell.common.constant.CacheConstants;
import com.jsowell.common.constant.Constants;
@@ -2346,14 +2347,17 @@ public class SpringBootTestController {
}
/**
* 查询汇付会员信息
*/
@Test
public void testQueryAdapayMemberInfo() {
String adapayMemberId = "AM25703321";
String settleAccountId = "0489089447022976";
String adapayMemberId = "ACM82792551";
String settleAccountId = null;
try {
// adapayMemberService.queryAdapayMemberInfo(adapayMemberId);
adapayService.queryAdapaySettleAccount(adapayMemberId, settleAccountId, "");
AdapayCorpMemberVO adapayCorpMemberVO = adapayService.queryCorpAdapayMemberInfo(adapayMemberId, wechatAppId1);
// AdapaySettleAccountVO vo = adapayService.queryAdapaySettleAccount(adapayMemberId, settleAccountId, wechatAppId1);
System.out.println(JSON.toJSONString(adapayCorpMemberVO));
} catch (BaseAdaPayException e) {
throw new RuntimeException(e);
}