Skip to content

Commit

Permalink
修复重置花名册会报错问题 (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangliuyu committed Dec 1, 2022
1 parent 7cdc92c commit c8684f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/qqwife/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"math/rand"
"sort"
"strconv"
"strings"
"sync"
"time"

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit c8684f7

Please sign in to comment.