标签:eth php error response deb info ati inf ons
use \Curl\Curl;
$curl = new Curl();
$curl->setHeader(‘Content-Type‘, ‘application/json‘);
$curl->post(‘http://yuexingy.top:5100/withdraw/withdraw.php‘, json_encode($data));
if ($curl->error) {
//echo ‘Error: ‘ . $curl->errorCode . ‘: ‘ . $curl->errorMessage . "\n";
Log::debug(‘error:‘ . $curl->errorCode . ‘ errorMessage:‘ . $curl->errorMessage . ‘\n‘);
} else {
Log::info(‘Data server received via POST:‘ . "\n");
//var_dump($curl->response);
$re->Status = 3;
$re->WithdrawPlatform = 2;
$re->save();
}
标签:eth php error response deb info ati inf ons
原文地址:http://www.cnblogs.com/yuanxiaoping_21cn_com/p/7351854.html