🎨 优化tts

This commit is contained in:
源文雨
2022-12-11 14:10:35 +08:00
parent 575d158d5a
commit 1266b2378a
5 changed files with 261 additions and 239 deletions

View File

@@ -286,12 +286,12 @@ func init() {
}
// 无缓存获取群员列表
temp := ctx.GetThisGroupMemberListNoCache().Array()
var usergroup []int64
for _, info := range temp {
usergroup = append(usergroup, info.Get("user_id").Int())
usergroup := make([]int64, len(temp))
for i, info := range temp {
usergroup[i] = info.Get("user_id").Int()
}
// 获取钱包信息
st, err := wallet.GetGroupWalletOf(usergroup, true)
st, err := wallet.GetGroupWalletOf(true, usergroup...)
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
return