pay debug

feat/task1-c-wallet
devil_gong 2019-01-07 15:22:02 +08:00
parent 766b3b32e8
commit 5ee6738fc7
1 changed files with 2 additions and 0 deletions

View File

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