fix: xh 4.0

This commit is contained in:
ikechan8370 2024-06-27 14:53:05 +08:00
parent 500b743390
commit b1eff1700e
3 changed files with 7 additions and 0 deletions

View file

@ -88,6 +88,8 @@ export default class XinghuoClient {
APILink = '/v3.1/chat'
} else if (Config.xhmode === 'apiv3.5') {
APILink = '/v3.5/chat'
} else if (Config.xhmode === 'apiv4.0') {
APILink = '/v4.0/chat'
}
const date = new Date().toGMTString()
const algorithm = 'hmac-sha256'