From d4cb3fafe542f2221e5d0f85cd9359f31097d506 Mon Sep 17 00:00:00 2001 From: yansongda Date: Sun, 1 Sep 2019 22:11:50 +0800 Subject: [PATCH] update --- src/Gateways/Alipay.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gateways/Alipay.php b/src/Gateways/Alipay.php index 219d898..2f2a724 100644 --- a/src/Gateways/Alipay.php +++ b/src/Gateways/Alipay.php @@ -414,6 +414,8 @@ class Alipay implements GatewayApplicationInterface */ protected function makeExtend(string $method, array $params): Collection { + $params = count($params) >= 1 ? $params[0] : $params; + $function = $this->extends[$method]; $customize = $function($this->payload, $params);