|
|
|
@ -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); |
|
|
|
|