feat: 完善聊天识别与规则页面响应式布局

- 按闲鱼协议字段识别官方系统消息、交易卡片和闲小蜜,清理空会话壳并补齐历史消息校正\n- 同步 README、项目展示页和 GitHub Wiki,补充在线聊天、账号自动评价与每日擦亮说明\n- 优化自动化规则页面的中等宽度布局,补充前端类型、响应式测试和嵌入资源
This commit is contained in:
Christ committed 2026-08-08 23:48:42 +08:00
1 parent 4d1f58c5ec
commit fe3f715cdc
27 files changed
+336 -32

No files matched your search

+9
View File
@@ -287,6 +287,15 @@ func TestIsNonUserChatNotice(t *testing.T) {
}
}
func TestIsNonUserChatNoticeFiltersOfficialSenderAndPlaceholder(t *testing.T) {
if !isNonUserChatNotice(map[string]any{}, map[string]any{"senderUserId": "1400", "reminderContent": "邀您填写售后问卷"}, "邀您填写售后问卷") {
t.Error("闲小蜜消息应判为官方系统消息")
}
if !isNonUserChatNotice(map[string]any{}, map[string]any{"senderUserId": "peer-1"}, "发来一条新消息") {
t.Error("官方通知占位文本不应进入聊天回复")
}
}
// TestToStringAndTrimFloatInt 数字/字符串安全转换。
func TestToStringAndTrimFloatInt(t *testing.T) {
if got := toString(float64(26)); got != "26" {