|
|
@ -84,11 +84,14 @@ |
|
|
// echo "\r\n"; |
|
|
// echo "\r\n"; |
|
|
// var_dump($api_url); |
|
|
// var_dump($api_url); |
|
|
$response = $Base->Request->send($api_url, $crypted_trade_data, $sign); |
|
|
$response = $Base->Request->send($api_url, $crypted_trade_data, $sign); |
|
|
$response = json_decode($response, true); |
|
|
echo $response; |
|
|
if($response['retcode'] == 'FAIL') |
|
|
if($response === false) |
|
|
{ |
|
|
{ |
|
|
// echo $Base->Request->err_msg; |
|
|
// echo $Base->Request->err_msg; |
|
|
echo $response; |
|
|
$errorMessage = array( |
|
|
|
|
|
"data"=>"send error..." |
|
|
|
|
|
); |
|
|
|
|
|
echo json_encode($errorMessage,true); |
|
|
die(); |
|
|
die(); |
|
|
} |
|
|
} |
|
|
// echo "\r\n"; |
|
|
// echo "\r\n"; |
|
|
|