From bed31ac69ebc324d2a6b85c031cd7db9fe72b812 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Tue, 29 Oct 2024 14:52:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=B7=B1=E5=9C=B3=E7=A8=8E?= =?UTF-8?q?=E5=8A=A1=E6=8E=A5=E5=8F=A319?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/webService/ChinaTaxes.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/service/webService/ChinaTaxes.php b/app/service/webService/ChinaTaxes.php index ce28c68..eb3d3c8 100644 --- a/app/service/webService/ChinaTaxes.php +++ b/app/service/webService/ChinaTaxes.php @@ -128,14 +128,10 @@ class ChinaTaxes $param = $this->getParamData('SSGZ_GZPT_SZQKL_WTDZDRJK', $body); - dump($body); - - dump($param); - $result = $this->json_curl(json_encode($param)); - dump($result); - die; + $data = $this->xmlDom($result); + dump($data);die; } /** @@ -424,7 +420,6 @@ xmlns:ns2="http://www.chinatax.gov.cn/dataspec/">'; } if ($type == 2) { - dump($start . $xml2 . $end); return $start1 . $this->enCompressXml($start . $xml2 . $end) . $end; } @@ -510,9 +505,8 @@ xmlns:ns2="http://www.chinatax.gov.cn/dataspec/">'; exit(); } - protected function xmlDom($json_str) + protected function xmlDom($xmlData) { - $xmlData = $this->json_curl($json_str); $dom = new \DOMDocument(); $dom->loadXML($xmlData['result']); return $this->xmlToArray($dom->documentElement);