fix some bugs

This commit is contained in:
yansongda 2018-07-25 18:09:34 +08:00
parent 8e3565174a
commit be7de3fd23

View File

@ -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
);
}