$data = array('paymentMethod' => 'NICEPAY', 'goodsName' => 'PROJECT FEE');
$string = http_build_query($data);
$ch = curl_init("203.99.61.173:3000/api/users/nicepay");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
var_dump($response);
curl_close($ch);
我刚尝试从本地服务器发出这个确切的调用,它运行正常。