This commit is contained in:
lychang
2026-05-21 04:05:58 +08:00
parent cdd79b6d89
commit 4f6a6e44a1

View File

@@ -203,6 +203,8 @@ func (s *TaxHealthService) EvaluateTaxHealth(request TaxEvalRequest) (*TaxEvalRe
headers := map[string]string{
"Content-Type": "application/json",
"Accept": "application/json",
"Host": "api.cmdp.cn",
"origin": "https://api.cmdp.cn",
"x-gi-user-id": s.userID,
"x-gi-user-sig": signature,
"x-gi-nonce": nonce,
@@ -241,12 +243,15 @@ func (s *TaxHealthService) QueryTaxEvalResult(orderNo string) (*TaxEvalQueryResp
// 设置请求头
headers := map[string]string{
"Accept": "application/json",
"Host": "api.cmdp.cn",
"origin": "https://api.cmdp.cn",
"x-gi-user-id": s.userID,
"x-gi-user-sig": signature,
"x-gi-nonce": nonce,
"x-gi-timestamp": timestamp,
}
fmt.Println(headers)
fmt.Println(apiURL)
// 发送GET请求
response, err := s.httpClient.Get(apiURL, headers)
if err != nil {