|
|
|
@ -378,6 +378,10 @@ class ChinaTaxes |
|
|
|
*/ |
|
|
|
protected function bizXml($body, $type = 2): string |
|
|
|
{ |
|
|
|
$start = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
|
|
<SZQKLDZSPSB0001ZipBase64RequestBw |
|
|
|
xmlns:ns2="http://www.chinatax.gov.cn/dataspec/">'; |
|
|
|
$end = '</SZQKLDZSPSB0001ZipBase64RequestBw>'; |
|
|
|
$xml = ''; |
|
|
|
$xml2 = ''; |
|
|
|
foreach ($body as $key => $value) { |
|
|
|
@ -391,10 +395,10 @@ class ChinaTaxes |
|
|
|
} |
|
|
|
|
|
|
|
if ($type == 2) { |
|
|
|
return $xml2; |
|
|
|
return $start . $xml2 . $end; |
|
|
|
} |
|
|
|
|
|
|
|
return $xml; |
|
|
|
return $start . $xml . $end; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|