Skip to content

Commit 45f5bc2

Browse files
committed
替换client ip样例代码
1 parent a99188e commit 45f5bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/alipay/global/api/example/CashierPayDemoCode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static void executePayWithCard() {
123123

124124
// set env info
125125
Env env = Env.builder().terminalType(TerminalType.WEB)
126-
.clientIp(IpAddressTool.getIpAddress()).build();
126+
.clientIp("1.2.3.4").build();
127127
alipayPayRequest.setEnv(env);
128128

129129
// set auth capture payment mode
@@ -178,7 +178,7 @@ public static void executePayWithBlik() {
178178

179179
// set env info
180180
Env env = Env.builder().terminalType(TerminalType.WEB)
181-
.clientIp(IpAddressTool.getIpAddress()).build();
181+
.clientIp("1.2.3.4").build();
182182
alipayPayRequest.setEnv(env);
183183

184184
// replace with your notify url

0 commit comments

Comments
 (0)