Commit Graph

13 Commits

Author SHA1 Message Date
ABAPPLO
49017650ba feat: 接入企业微信通知(临期催办 + 群机器人汇总)
新增 lib/wecom-client.ts 与 lib/wecom-notifier-service.ts,支持
群机器人 webhook 与应用消息双通道;scheduler 加入临期 N 天催办
与每日管理员汇总;action 路由补 bind_wecom_external_id 与
send_test_wecom 两个管理端动作,配套测试。
2026-08-18 16:39:59 +08:00
ABAPPLO
582c26e57e feat: 在账号资源库中展示导入的标签字段
KOC 资源导入模板新增「标签」列,导入后写入 accounts.tags 并在
账号资源库面板以 badge 形式展示,导出时也带回标签列以保证往返一致。

- lib/resource-import.ts: 新增 tags 字段与 HEADER 别名(标签/账号标签/人设标签),
  新增 normalizeTags/mergeTags 工具,按顿号规整与合并
- 修复 xlsx 解析器对自闭合空 cell (<c r="G6"/>) 的错位 bug,否则
  行内出现空 cell 会让后续 cell 的列引用读到错误 body(如老茄子行标签丢失)
- db/schema.ts + lib/mvp-db.ts: accounts 表新增 tags VARCHAR(500)
- app/api/resources-import/route.ts: SELECT/INSERT/UPDATE/预览全部带上 tags
- app/api/resources-export/route.ts: 导出表加「标签」列
- app/admin-app.tsx + app/globals.css: 资源卡片新增「账号标签」区,
  导入预览行展示标签
- public/KOC资源导入模板.xlsx: 模板补「标签(选填)」列与填写说明
- mysql/0005_account_tags.sql: 线上 MySQL 迁移
- tests/resource-import.test.mjs: 补 tags 解析/合并用例
2026-08-18 16:39:38 +08:00
巫凤萍
51934b0638 feat: simplify KOC resource imports 2026-08-12 17:51:57 +08:00
巫凤萍
7ef150e08b feat: add distribution release and recovery controls 2026-08-12 11:12:23 +08:00
巫凤萍
ddad4b7659 feat: ship self-hosted KOC LOOP workflows 2026-08-11 23:07:26 +08:00
巫凤萍
5670a7939b Expand KOC LOOP MCP operations 2026-08-07 14:12:52 +08:00
巫凤萍
1a9a113229 Add MCP task creation endpoint 2026-08-07 11:59:45 +08:00
巫凤萍
bd9b0c3871 Fix password hashing for Workers runtime 2026-08-07 11:20:31 +08:00
巫凤萍
c926a6a874 Add user authentication and role management 2026-08-07 11:06:20 +08:00
巫凤萍
72f8862f8a Add KOC resource filters and export 2026-08-06 10:18:23 +08:00
巫凤萍
85110bbfce Add recovery Excel export and automatic account detection 2026-08-05 11:40:29 +08:00
巫凤萍
b081946752 Use unique contact identifiers for KOC claims 2026-08-03 13:48:01 +08:00
巫凤萍
d2cde2c9b2 Initial commit: KOC LOOP platform 2026-07-30 12:06:41 +08:00