master
elf 8 months ago
parent ec9cfd760a
commit e5781b8bf2

@ -1,6 +1,7 @@
<?php
getIpInfo('120.32.100.138');
function getIpInfo() {
function getIpInfo($ip) {
// 云市场分配的密钥Id
$secretId = 'AKID5tH3om0m0dPG4KMBLFLp03E4zrOF0a1qTCXh';
// 云市场分配的密钥Key
@ -28,7 +29,7 @@ function getIpInfo() {
);
// body参数POST方法下
$bodyParams = array (
'ip' => '',
'ip' => $ip,
);
// url参数拼接
$url = 'https://service-hnhpr5tw-1305308687.gz.apigw.tencentcs.com/release/ip/query';

Loading…
Cancel
Save