Browse Source

测试深圳税务接口4

master
wanghongjun 1 year ago
parent
commit
3e8bd393ca
  1. 8
      app/service/webService/ChinaTaxes.php

8
app/service/webService/ChinaTaxes.php

@ -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;
}
/**

Loading…
Cancel
Save