pay debug

This commit is contained in:
devil_gong 2019-01-08 12:30:56 +08:00
parent 571a0aca0e
commit 63d21759f2

View File

@ -133,6 +133,7 @@ class WeixinMini
// xml // xml
$xml = $this->ArrayToXml($ret['data']); $xml = $this->ArrayToXml($ret['data']);
print_r($xml);die;
$result = $this->XmlToArray($this->HttpRequest('https://api.mch.weixin.qq.com/pay/unifiedorder', $xml)); $result = $this->XmlToArray($this->HttpRequest('https://api.mch.weixin.qq.com/pay/unifiedorder', $xml));
if(!empty($result['return_code']) && $result['return_code'] == 'SUCCESS' && !empty($result['prepay_id'])) if(!empty($result['return_code']) && $result['return_code'] == 'SUCCESS' && !empty($result['prepay_id']))
{ {