Skip to content

Commit 344788c

Browse files
Codexbinarywang
andauthored
修复小程序虚拟支付绑定广告金账户接口 URL 错误
Agent-Logs-Url: https://github.com/binarywang/WxJava/sessions/9379adb2-cb89-460d-a55e-220dda1e67f0 Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
1 parent e5ca36d commit 344788c

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ public interface XPay {
923923
String QUERY_TRANSFER_ACCOUNT_URL = "https://api.weixin.qq.com/xpay/query_transfer_account?pay_sig=%s";
924924
String QUERY_ADVER_FUNDS_URL = "https://api.weixin.qq.com/xpay/query_adver_funds?pay_sig=%s";
925925
String CREATE_FUNDS_BILL_URL = "https://api.weixin.qq.com/xpay/create_funds_bill?pay_sig=%s";
926-
String BIND_TRANSFER_ACCOUNT_URL = "https://api.weixin.qq.com/xpay/bind_transfer_accout?pay_sig=%s";
926+
String BIND_TRANSFER_ACCOUNT_URL = "https://api.weixin.qq.com/xpay/bind_transfer_account?pay_sig=%s";
927927
String QUERY_FUNDS_BILL_URL = "https://api.weixin.qq.com/xpay/query_funds_bill?pay_sig=%s";
928928
String QUERY_RECOVER_BILL_URL = "https://api.weixin.qq.com/xpay/query_recover_bill?pay_sig=%s";
929929
String GET_COMPLAINT_LIST_URL = "https://api.weixin.qq.com/xpay/get_complaint_list?pay_sig=%s";
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package cn.binarywang.wx.miniapp.constant;
2+
3+
import org.testng.annotations.Test;
4+
5+
import static org.testng.Assert.assertEquals;
6+
import static org.testng.Assert.assertTrue;
7+
8+
public class WxMaApiUrlConstantsXPayTest {
9+
10+
@Test
11+
public void testBindTransferAccountUrl() {
12+
String url = WxMaApiUrlConstants.XPay.BIND_TRANSFER_ACCOUNT_URL;
13+
assertEquals(url, "https://api.weixin.qq.com/xpay/bind_transfer_account?pay_sig=%s");
14+
assertTrue(!url.contains("bind_transfer_accout"));
15+
}
16+
}

0 commit comments

Comments
 (0)