This commit is contained in:
cdle 2021-08-20 12:22:56 +08:00
parent 40d3a1d6bc
commit 12df758d88
2 changed files with 3 additions and 3 deletions

View File

@ -171,14 +171,14 @@ func init() {
case "qq", "qqg":
// ck.Update(models.QQ, uid)
if gid != 0 {
go models.SendQQGroup(int64(uid), int64(gid), "扫码失败")
go models.SendQQGroup(int64(gid), int64(uid), "扫码失败")
} else {
go models.SendQQ(int64(uid), "扫码失败")
}
case "tg", "tgg":
// ck.Update(models.Telegram, uid)
if gid != 0 {
go models.SendTggMsg(int(uid), int(gid), "扫码失败")
go models.SendTggMsg(int(gid), int(uid), "扫码失败")
} else {
go models.SendTgMsg(int(uid), "扫码失败")
}

View File

@ -65,7 +65,7 @@ var sendMessagee = func(msg string, msgs ...interface{}) {
case "tg":
SendTgMsg(uid, msg)
case "tgg":
SendTggMsg(uid, gid, msg)
SendTggMsg(gid, uid, msg)
case "qq":
SendQQ(int64(uid), msg)
case "qqg":