Browse Source

优化接口 流程及逻辑2

master
wanghongjun 1 year ago
parent
commit
0b94084008
  1. 4
      app/service/webService/ChinaTaxes.php

4
app/service/webService/ChinaTaxes.php

@ -119,7 +119,7 @@ class ChinaTaxes
'zjhm' => $this->puCodeUser['CertificateCode'],// 证件号码 *
'hyDm' => '6490',// 行业代码
'zsxmDm' => '30433',// 征收项目代码
'zspmDm' => '804331300',// 征收品目代码
'zspmDm' => '304331300',// 征收品目代码
'zszmDm' => '',// 征收子目代码
'jsyj' => '11.11',// 计税依据,保留两位小数
'sl1' => '',// 税率,可手工填写,不填则默认系统自动计算,保留两位小数
@ -713,7 +713,7 @@ xmlns:ns2="http://www.chinatax.gov.cn/dataspec/">';
if ($deData) {
$xmlData = $this->xmlDom($deData);
if (isset($xmlData['ns2:code']) && $xmlData['ns2:code'] !== 200) {
if (isset($xmlData['ns2:code']) && $xmlData['ns2:code'] != 200) {
throw new FuncException($xmlData['ns2:message']);
}

Loading…
Cancel
Save