From fda69793a53e30e34e668af21f9a4537edad8548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E6=9F=B3=E7=85=9C?= <101934327+fangliuyu@users.noreply.github.com> Date: Tue, 24 May 2022 10:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E8=BA=AB=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E4=BC=9A=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=20(#237)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/qqwife/qqmapwife.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/plugin/qqwife/qqmapwife.go b/plugin/qqwife/qqmapwife.go index 6b6e5faa..bb5e7b7d 100644 --- a/plugin/qqwife/qqmapwife.go +++ b/plugin/qqwife/qqmapwife.go @@ -345,22 +345,18 @@ func checkdog(ctx *zero.Ctx) bool { ctx.SendChain(message.Text("额,你的target好像不存在?")) return false } - uid := ctx.Event.UserID - if uid == fiancee { - ctx.SendChain(message.Text("今日获得成就:自恋狂")) - return false - } // 获取用户信息 + uid := ctx.Event.UserID uidtarget, uidstatus, ok1 := 民政局.查户口(gid, uid) _, fianceestatus, ok2 := 民政局.查户口(gid, fiancee) if !ok1 && !ok2 { // 必须是两个单身 return true } - if uidtarget.target == fiancee { // 如果本就是一块 - ctx.SendChain(message.Text("笨蛋~你们明明已经在一起了啊w")) - return false - } if ok1 { + if uidtarget.target == fiancee { // 如果本就是一块 + ctx.SendChain(message.Text("笨蛋~你们明明已经在一起了啊w")) + return false + } switch uidstatus { case 0: // 如果如为攻 ctx.SendChain(message.Text("笨蛋~你家里还有个吃白饭的w"))