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();
}
posted on 2017-08-12 22:22  袁晓平  阅读(219)  评论(0编辑  收藏  举报