Skip to content

Commit

Permalink
fix: 修正读取自定义配置
Browse files Browse the repository at this point in the history
  • Loading branch information
sj817 authored Sep 14, 2024
1 parent a732e5d commit 00ba404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export const config = new (class Cfg {
const key = 'change.group'
/** 取缓存 */
const res = this.change.get(key)
const keys = e?.self_id ? [`Bot.${e.self_id}.${group_id}`, `Bot.${e.self_id}`, group_id] : [group_id]
const keys = e?.self_id ? [`Bot:${e.self_id}:${group_id}`, `Bot:${e.self_id}`, group_id] : [group_id]
if (res) {
const cfg = { ...res.defCfg.default, ...res.Config.default }
for (const k of keys) {
Expand Down

0 comments on commit 00ba404

Please sign in to comment.