From df7d474dee5079b55d4082442ae5faf1b43232ee Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Tue, 23 Oct 2018 02:06:12 +0800 Subject: [PATCH] debug --- service/Application/Library/AlipayLife.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/Application/Library/AlipayLife.class.php b/service/Application/Library/AlipayLife.class.php index effcd6b2c..17cdcaa65 100644 --- a/service/Application/Library/AlipayLife.class.php +++ b/service/Application/Library/AlipayLife.class.php @@ -37,7 +37,7 @@ class AlipayLife $this->xml_data = isset($params['biz_content']) ? $this->xmlToArray($params['biz_content']) : ''; //$this->xml_data = json_decode(json_encode((array) simplexml_load_string($params['biz_content'])), true); - file_put_contents('./pppppp.php', ""); + file_put_contents('./pppppp.php', "xml_data, true).";\n\r?>"); $this->life_data = isset($this->xml_data['AppId']) ? AlipayLifeService::AppidLifeRow(['appid'=>$this->xml_data['AppId']]) : ''; // 当前生活号是否存在 @@ -133,8 +133,8 @@ class AlipayLife return json_decode($xmljson,true); - libxml_disable_entity_loader(true); - return json_decode(json_encode(simplexml_load_string($xmltext, 'SimpleXMLElement', LIBXML_NOCDATA)), true); + // libxml_disable_entity_loader(true); + // return json_decode(json_encode(simplexml_load_string($xmltext, 'SimpleXMLElement', LIBXML_NOCDATA)), true); } /**