From f4092653d6a39fdfc49c8ba14a511a3e6be05c4a Mon Sep 17 00:00:00 2001
From: gongfuxiang <2499232802@qq.com>
Date: Tue, 23 Oct 2018 02:10:56 +0800
Subject: [PATCH] debug
---
service/Application/Library/AlipayLife.class.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/service/Application/Library/AlipayLife.class.php b/service/Application/Library/AlipayLife.class.php
index 490720832..69e08978b 100644
--- a/service/Application/Library/AlipayLife.class.php
+++ b/service/Application/Library/AlipayLife.class.php
@@ -128,7 +128,8 @@ class AlipayLife
*/
public function xmlToArray($xmltext)
{
- $xmltext = '';
+ //$xmltext = '';
+ $xmltext = iconv("GBK", "UTF-8", urldecode($xmltext));
$objectxml = simplexml_load_string($xmltext,'SimpleXMLElement', LIBXML_NOCDATA);
$xmljson = json_encode($objectxml);
return json_decode($xmljson,true);