mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-06 15:20:22 +00:00
修复重置花名册会报错问题 (#511)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user