From 23f8e27ee683d1e5b23c77fc9a06a76bcff5c954 Mon Sep 17 00:00:00 2001 From: lq Date: Mon, 30 Sep 2024 10:59:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8F=90=E7=8E=B0=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- member/modules/v1/controllers/EplpayCallbackController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/member/modules/v1/controllers/EplpayCallbackController.php b/member/modules/v1/controllers/EplpayCallbackController.php index 4ac168d..489e10d 100644 --- a/member/modules/v1/controllers/EplpayCallbackController.php +++ b/member/modules/v1/controllers/EplpayCallbackController.php @@ -327,6 +327,9 @@ class EplpayCallbackController extends \yii\web\Controller 'user_id' => 0, 'user_type' => 2 ])->one(); + if (!$platformAccount) { + throw new Exception('平台账户不存在'); + } $platformAccount->able_cash = bcsub($platformAccount->able_cash, $chargeCpr->charge_cash, 2); $platformAccount->charge_cash = bcadd($platformAccount->charge_cash, $chargeCpr->charge_cash, 2); $platformAccount->saveOrFail();