Update PaymentService.php

This commit is contained in:
Anyon 2020-12-23 17:55:21 +08:00
parent df3fb4c2dc
commit de46b9a862

View File

@ -121,7 +121,7 @@ abstract class PaymentService extends Service
if (empty($payment)) { if (empty($payment)) {
throw new \think\Exception("支付通道[#{$paycode}]已关闭"); throw new \think\Exception("支付通道[#{$paycode}]已关闭");
} }
static::$config = json_decode(static::$config['content'], true); static::$config = @json_decode($payment['content'], true);
if (empty(static::$config)) { if (empty(static::$config)) {
throw new \think\Exception("支付通道[#{$paycode}]配置无效"); throw new \think\Exception("支付通道[#{$paycode}]配置无效");
} }