1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-07 12:43:32 +08:00
This commit is contained in:
wdvxdr 2020-09-30 19:14:51 +08:00
parent c4b2436f96
commit 560b68a212

View File

@ -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