feat: add account automation and isolated chat

- add account-level auto rating and daily polish tasks\n- add cached historical chat, media, emoji, and per-account realtime sync\n- add SQLite, MySQL, and PostgreSQL migrations and regression coverage\n- align account, sidebar, and chat interfaces with the new workflows
This commit is contained in:
Christ committed 2026-08-08 22:16:35 +08:00
1 parent d7abbfb2b6
commit 67d7214930
59 files changed
+5202 -211

No files matched your search

+11
View File
@@ -91,6 +91,17 @@ func TestExtractChatMessage_FiltersContentType14Notice(t *testing.T) {
}
}
func TestExtractChatMessageUsesReminderTitleAsNickname(t *testing.T) {
decrypted := map[string]any{"1": map[string]any{
"2": "chat-1@goofish",
"10": map[string]any{"reminderContent": "你好", "reminderTitle": "真实昵称", "senderUserId": "buyer-1", "sessionType": "1"},
}}
chat := extractChatMessage(decrypted, "account-1", "cookie")
if chat == nil || chat.SenderName != "真实昵称" {
t.Fatalf("chat=%+v", chat)
}
}
func TestExtractChatMessage_FiltersRefundTradeCard(t *testing.T) {
decrypted := mustRefundTradeCard(t)
if chat := extractChatMessage(decrypted, "cid", "cookie"); chat != nil {