🐛 fix xunfei request error

This commit is contained in:
Martial BE 2023-12-29 11:32:43 +08:00
parent 211a862d54
commit c5aa59e297
No known key found for this signature in database
GPG Key ID: D06C32DF0EDB9084

View File

@ -58,7 +58,7 @@ func (p *XunfeiProvider) getXunfeiAuthUrl(apiKey string, apiSecret string) (stri
query := p.Context.Request.URL.Query()
apiVersion := query.Get("api-version")
if apiVersion == "" {
apiVersion = p.Channel.Key
apiVersion = p.Channel.Other
}
if apiVersion == "" {
apiVersion = "v1.1"