This commit is contained in:
邹宗楠
2025-07-21 11:53:21 +08:00
parent 913c86da47
commit 82e055b194
2 changed files with 3 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ func (a *API) FileUpload(filePath, imgType, sourcechnl, isOcr string) (*UploadIm
}
// 设置 Content-Type 头
a.CheckToken()
req.Header.Set("Content-Type", writer.FormDataContentType())
req.Header.Set("Authorization", fmt.Sprintf("bearer %s", a.incomingToken))