mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
修复重置花名册会报错问题 (#511)
This commit is contained in:
parent
7cdc92c142
commit
c8684f74a8
@ -5,6 +5,7 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -457,7 +458,7 @@ func (sql *婚姻登记) 清理花名册(gid ...string) error {
|
|||||||
default:
|
default:
|
||||||
err := sql.db.Drop(gid[0])
|
err := sql.db.Drop(gid[0])
|
||||||
if err == nil {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user