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