diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index 0ec0db1..45e2d37 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -52,6 +52,11 @@ class RechargeController{ phpcommon\sendError(ERR_RETRY, '系统繁忙'); return; } + + if ($rsp === '') { + phpcommon\sendError(ERR_RETRY, '系统繁忙2'); + return; + } $response = json_decode($rsp, true); echo json_encode(array( @@ -95,6 +100,11 @@ class RechargeController{ phpcommon\sendError(ERR_RETRY, '系统繁忙'); return; } + + if ($rsp === '') { + phpcommon\sendError(ERR_RETRY, '系统繁忙2'); + return; + } $response = json_decode($rsp, true); $diamonds = $response['diamond'];