From 12df758d88eec137900656244f94b84c13a661f6 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Fri, 20 Aug 2021 12:22:56 +0800 Subject: [PATCH] x --- controllers/login.go | 4 ++-- models/bot.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/login.go b/controllers/login.go index 62782e4..f8b2476 100644 --- a/controllers/login.go +++ b/controllers/login.go @@ -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), "扫码失败") } diff --git a/models/bot.go b/models/bot.go index 8c6956f..5c66cfd 100644 --- a/models/bot.go +++ b/models/bot.go @@ -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":