mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-06 15:20:22 +00:00
🎨 改进代码样式 (#521)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9550b817c5
commit
9a2081de0a
@@ -282,7 +282,7 @@ func init() {
|
||||
err = 民政局.清理花名册("group" + strconv.FormatInt(ctx.Event.GroupID, 10))
|
||||
default:
|
||||
cmd := ctx.State["regex_matched"].([]string)[1]
|
||||
gid, _ := strconv.ParseInt(cmd, 10, 64) //判断是否为群号
|
||||
gid, _ := strconv.ParseInt(cmd, 10, 64) // 判断是否为群号
|
||||
if gid == 0 {
|
||||
ctx.SendChain(message.Text("请输入正确的群号"))
|
||||
return
|
||||
@@ -431,7 +431,6 @@ func (sql *婚姻登记) 清理花名册(gid ...string) error {
|
||||
for _, listName := range grouplist {
|
||||
if listName == "favorability" {
|
||||
continue
|
||||
|
||||
}
|
||||
err = sql.db.Drop(listName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user