From be7de3fd236ac267e423b92c0b4fb68896e87d02 Mon Sep 17 00:00:00 2001 From: yansongda Date: Wed, 25 Jul 2018 18:09:34 +0800 Subject: [PATCH] fix some bugs --- src/Gateways/Wechat.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gateways/Wechat.php b/src/Gateways/Wechat.php index 0614ec6..970820e 100644 --- a/src/Gateways/Wechat.php +++ b/src/Gateways/Wechat.php @@ -135,8 +135,9 @@ class Wechat implements GatewayApplicationInterface { $data = Support::fromXml($content ?? Request::createFromGlobals()->getContent()); if ($refund) { + $decrypt_data = Support::decryptRefundContents($data['req_info'], $this->config->get('key')); $data = array_merge( - Support::decryptRefundContents($data['req_info'], $this->config->get('key')), + Support::fromXml($decrypt_data), $data ); }