update
This commit is contained in:
@@ -203,6 +203,8 @@ 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",
|
||||||
|
"Host": "api.cmdp.cn",
|
||||||
|
"origin": "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,
|
||||||
@@ -241,12 +243,15 @@ func (s *TaxHealthService) QueryTaxEvalResult(orderNo string) (*TaxEvalQueryResp
|
|||||||
// 设置请求头
|
// 设置请求头
|
||||||
headers := map[string]string{
|
headers := map[string]string{
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
|
"Host": "api.cmdp.cn",
|
||||||
|
"origin": "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,
|
||||||
"x-gi-timestamp": timestamp,
|
"x-gi-timestamp": timestamp,
|
||||||
}
|
}
|
||||||
|
fmt.Println(headers)
|
||||||
|
fmt.Println(apiURL)
|
||||||
// 发送GET请求
|
// 发送GET请求
|
||||||
response, err := s.httpClient.Get(apiURL, headers)
|
response, err := s.httpClient.Get(apiURL, headers)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user