mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-07 12:43:32 +08:00
fix tts
This commit is contained in:
parent
c4b2436f96
commit
560b68a212
@ -10,7 +10,7 @@ import (
|
||||
|
||||
func (c *QQClient) GetTts(text string) ([]byte, error) {
|
||||
url := "https://textts.qq.com/cgi-bin/tts"
|
||||
data := "{\"appid\": \"201908021016\",\"text\": \"" + text + "\"}"
|
||||
data := fmt.Sprintf("{\"appid\": \"201908021016\",\"sendUin\": %v,\"text\": \"%v\"}", c.Uin, text)
|
||||
rsp, err := utils.HttpPostBytesWithCookie(url, []byte(data), c.getCookies())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user