change: remove AGW body verification

This commit is contained in:
lilong.129
2023-05-11 16:41:15 +08:00
parent 56e065c10b
commit b6373fd1a1
3 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
# Release History
## v4.3.4 (2023-05-10)
## v4.3.4 (2023-05-11)
**go version**

View File

@@ -1 +1 @@
v4.3.4-beta-202305101622
v4.3.4-beta-202305111640

View File

@@ -178,8 +178,11 @@ func (s *veDEMOCRService) getOCRResult(imageBuf *bytes.Buffer) (
return
}
token := builtin.Sign("auth-v2", env.VEDEM_OCR_AK, env.VEDEM_OCR_SK, bodyBuf.Bytes())
signToken := "UNSIGNED-PAYLOAD"
token := builtin.Sign("auth-v2", env.VEDEM_OCR_AK, env.VEDEM_OCR_SK, []byte(signToken))
req.Header.Add("Agw-Auth", token)
req.Header.Add("Agw-Auth-Content", signToken)
req.Header.Add("Content-Type", bodyWriter.FormDataContentType())
var resp *http.Response