fix
This commit is contained in:
parent
2b37e81fee
commit
7ffdd1db8e
@ -48,12 +48,12 @@ class RechargeController{
|
||||
'user_ip' => phpcommon\getIPv4(),
|
||||
'sign' => $sign
|
||||
);
|
||||
if (!phpcommon\HttpClient::get($url, $params, $response)) {
|
||||
if (!phpcommon\HttpClient::get($url, $params, $rsp)) {
|
||||
phpcommon\sendError(ERR_RETRY, '系统繁忙');
|
||||
return;
|
||||
}
|
||||
|
||||
$response = json_decode($response);
|
||||
$response = json_decode($rsp, true);
|
||||
echo json_encode(array(
|
||||
'errcode' => $response['errcode'],
|
||||
'errmsg'=> $response['errmsg'],
|
||||
@ -91,12 +91,12 @@ class RechargeController{
|
||||
'user_ip' => phpcommon\getIPv4(),
|
||||
'sign' => $sign
|
||||
);
|
||||
if (!phpcommon\HttpClient::get($url, $params, $response)) {
|
||||
if (!phpcommon\HttpClient::get($url, $params, $rsp)) {
|
||||
phpcommon\sendError(ERR_RETRY, '系统繁忙');
|
||||
return;
|
||||
}
|
||||
|
||||
$response = json_decode($response);
|
||||
$response = json_decode($rsp, true);
|
||||
$diamonds = $response['diamond'];
|
||||
$diamond_num = 0;
|
||||
if ($diamonds > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user