From de46b9a862b5a66d6567f110e1713e7ab53c2b0a Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 23 Dec 2020 17:55:21 +0800 Subject: [PATCH] Update PaymentService.php --- app/data/service/PaymentService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/data/service/PaymentService.php b/app/data/service/PaymentService.php index 84d541a76..09a425add 100644 --- a/app/data/service/PaymentService.php +++ b/app/data/service/PaymentService.php @@ -121,7 +121,7 @@ abstract class PaymentService extends Service if (empty($payment)) { throw new \think\Exception("支付通道[#{$paycode}]已关闭"); } - static::$config = json_decode(static::$config['content'], true); + static::$config = @json_decode($payment['content'], true); if (empty(static::$config)) { throw new \think\Exception("支付通道[#{$paycode}]配置无效"); }