From 65f003a90967bd0fb8b81c949b40d3fd820a876c Mon Sep 17 00:00:00 2001 From: yangduo Date: Wed, 25 Dec 2024 12:05:16 +0800 Subject: [PATCH] fix --- webapp/controller/RechargeController.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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'];