This commit is contained in:
cdle
2023-06-16 00:40:56 +08:00
parent 7dfd7132e5
commit b900abaea3
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -218,6 +218,7 @@ func (sender *Strings) HideCQEmoji(text string) map[string]interface{} {
}
}
// 构建CQ码
func (sender *Strings) BuildCQCode(cqType string, params map[string]interface{}) string {
var sb strings.Builder
sb.WriteString("[CQ:" + cqType)
+2
View File
@@ -40,6 +40,8 @@ func (s *PersistentKeyValueStore) Set(key string, value interface{}, dur int) er
ExpiredAt: expiredAt,
}
go func() {
s.RLock()
defer s.RUnlock()
defer func() {
recover()
}()