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":