feat: add global proxy config

This commit is contained in:
krau
2025-12-02 10:11:58 +08:00
parent acd16a91a3
commit a6f194aedd
11 changed files with 141 additions and 103 deletions

View File

@@ -40,7 +40,7 @@ func GetStorageByUserIDAndName(ctx context.Context, chatID int64, name string) (
}
if !config.C().HasStorage(chatID, name) {
return nil, fmt.Errorf("没有找到用户 %d 的存储 %s", chatID, name)
return nil, fmt.Errorf("no storage %s for user %d", name, chatID)
}
return getStorageByName(ctx, name)