update
This commit is contained in:
@@ -203,8 +203,6 @@ func (s *TaxHealthService) EvaluateTaxHealth(request TaxEvalRequest) (*TaxEvalRe
|
|||||||
headers := map[string]string{
|
headers := map[string]string{
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
"origin": "https://api.cmdp.cn",
|
|
||||||
"referer": "https://api.cmdp.cn/",
|
|
||||||
"x-gi-user-id": s.userID,
|
"x-gi-user-id": s.userID,
|
||||||
"x-gi-user-sig": signature,
|
"x-gi-user-sig": signature,
|
||||||
"x-gi-nonce": nonce,
|
"x-gi-nonce": nonce,
|
||||||
@@ -251,7 +249,6 @@ func (s *TaxHealthService) QueryTaxEvalResult(orderNo string) (*TaxEvalQueryResp
|
|||||||
|
|
||||||
// 发送GET请求
|
// 发送GET请求
|
||||||
response, err := s.httpClient.Get(apiURL, headers)
|
response, err := s.httpClient.Get(apiURL, headers)
|
||||||
fmt.Println(string(response))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("发送请求失败: %v", err)
|
return nil, fmt.Errorf("发送请求失败: %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user