From c8684f74a8c534a7e9cda848087691fefa607c25 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: Thu, 1 Dec 2022 14:04:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E7=BD=AE=E8=8A=B1?= =?UTF-8?q?=E5=90=8D=E5=86=8C=E4=BC=9A=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#511)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/qqwife/command.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/qqwife/command.go b/plugin/qqwife/command.go index 7896883f..dca75f11 100644 --- a/plugin/qqwife/command.go +++ b/plugin/qqwife/command.go @@ -5,6 +5,7 @@ import ( "math/rand" "sort" "strconv" + "strings" "sync" "time" @@ -457,7 +458,7 @@ func (sql *婚姻登记) 清理花名册(gid ...string) error { default: err := sql.db.Drop(gid[0]) if err == nil { - err = sql.db.Del("cdsheet", "where GroupID is "+gid[0]) + _ = sql.db.Del("cdsheet", "where GroupID is "+strings.ReplaceAll(gid[0], "group", "")) } return err }