Update WeChat/Contracts/BasicPay.php

This commit is contained in:
Anyon 2018-10-23 18:59:13 +08:00
parent 60e032cdf6
commit 7c9867ad7a

View File

@ -169,9 +169,7 @@ class BasicPay
$params = $this->params->merge($data);
$needSignType && ($params['sign_type'] = strtoupper($signType));
$params['sign'] = $this->getPaySign($params, $signType);
print_r($params);
$result = Tools::xml2arr(Tools::post($url, Tools::arr2xml($params), $option));
print_r($result);
if ($result['return_code'] !== 'SUCCESS') {
throw new InvalidResponseException($result['return_msg'], '0');
}