From 91a837477ab99358474e256044793596e1b6c73a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Jun 2022 04:32:42 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E6=94=B9=E8=BF=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/qqwife/qqmapwife.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/qqwife/qqmapwife.go b/plugin/qqwife/qqmapwife.go index 8650b72f..db1ea3df 100644 --- a/plugin/qqwife/qqmapwife.go +++ b/plugin/qqwife/qqmapwife.go @@ -78,7 +78,6 @@ func (sql *婚姻登记) checkupdate(gid int64) (updatetime string, number int, return } - func (sql *婚姻登记) 重置(gid string) error { sql.dbmu.Lock() defer sql.dbmu.Unlock() @@ -295,7 +294,7 @@ func init() { 民政局.db.DBPath = engine.DataFolder() + "结婚登记表.db" // 如果数据库不存在则下载 // _, _ = engine.GetLazyData("结婚登记表.db", false) - + err := 民政局.db.Open(time.Hour * 24) if err != nil { ctx.SendChain(message.Text("数据库发生问题力,请联系bot管理员\n[error]", err))