* fix typo

* fix typo
This commit is contained in:
苜蓿紫 2023-03-14 19:57:10 +08:00 committed by GitHub
parent c18f9b8b72
commit 58cf08fc39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -302,7 +302,7 @@ func init() {
func (sql *婚姻登记) 查看设置(gid int64) (dbinfo updateinfo, err error) { func (sql *婚姻登记) 查看设置(gid int64) (dbinfo updateinfo, err error) {
sql.Lock() sql.Lock()
defer sql.Unlock() defer sql.Unlock()
// 创建群表 // 创建群表
err = sql.db.Create("updateinfo", &updateinfo{}) err = sql.db.Create("updateinfo", &updateinfo{})
if err != nil { if err != nil {
return return
@ -350,7 +350,7 @@ func (sql *婚姻登记) 查户口(gid, uid int64) (info userinfo, err error) {
sql.Lock() sql.Lock()
defer sql.Unlock() defer sql.Unlock()
gidstr := "group" + strconv.FormatInt(gid, 10) gidstr := "group" + strconv.FormatInt(gid, 10)
// 创建群表 // 创建群表
err = sql.db.Create(gidstr, &userinfo{}) err = sql.db.Create(gidstr, &userinfo{})
if err != nil { if err != nil {
return return

View File

@ -74,15 +74,15 @@ func init() { // 插件主体
imgs = append(imgs, message.Image(m.String())) imgs = append(imgs, message.Image(m.String()))
continue continue
} }
logrus.Debugln("[sausenao]开始下载", n) logrus.Debugln("[saucenao]开始下载", n)
logrus.Debugln("[sausenao]urls:", illust.ImageUrls) logrus.Debugln("[saucenao]urls:", illust.ImageUrls)
err1 := illust.DownloadToCache(i) err1 := illust.DownloadToCache(i)
if err1 == nil { if err1 == nil {
m.SetFile(f) m.SetFile(f)
_, _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx)) _, _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx))
} }
if err1 != nil { if err1 != nil {
logrus.Debugln("[sausenao]下载err:", err1) logrus.Debugln("[saucenao]下载err:", err1)
} }
} }
imgs = append(imgs, message.Image("file:///"+f)) imgs = append(imgs, message.Image("file:///"+f))