fix: 优化配置和API处理逻辑

This commit is contained in:
renzhiyuan 2026-01-15 15:08:24 +08:00
parent 1e75c68984
commit fcf6bcbe75
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ func (l *Login) doRequestWithBody(ctx context.Context, method string, url string
req.Header.Set("Content-Type", contentType)
}
if authorization != "" {
req.Header.Set("Authorization", authorization)
req.Header.Set("Authorization", "Bearer "+authorization)
}
resp, err := (&http.Client{}).Do(req)