From 560b68a212269b040e757cb8643a6c8e7732223e Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Wed, 30 Sep 2020 19:14:51 +0800 Subject: [PATCH] fix tts --- client/tts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tts.go b/client/tts.go index dc466520..9d3a217b 100644 --- a/client/tts.go +++ b/client/tts.go @@ -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