Commit Graph

637 Commits

Author SHA1 Message Date
卡若
34f7c7bbdc feat(miniprogram): 用 karuo-316 替换小程序目录
- 从 github/karuo-316 覆盖 miniprogram/
- 排除 project.private.config.json 与 *.backup

Made-with: Cursor
2026-03-17 18:25:24 +08:00
卡若
982622368a chore: 清理敏感与开发文档,仅同步代码
- 永久忽略并从仓库移除 开发文档/
- 移除并忽略 .env 与小程序私有配置
- 同步小程序/管理端/API与脚本改动

Made-with: Cursor
2026-03-17 17:51:09 +08:00
卡若
b625fd5aa1 chore: 同步管理端构建与余额模块调整
- 更新 soul-admin dist 构建产物
- 调整 soul-api balance 路由与模型文件

Made-with: Cursor
2026-03-17 16:12:28 +08:00
Alex-larget
e222d254be 123 2026-03-17 15:36:20 +08:00
Alex-larget
170198f93d 1 2026-03-17 15:35:44 +08:00
Alex-larget
57d05ed7f2 1 2026-03-17 15:34:06 +08:00
卡若
f9d5e85b4e chore: 停止上传开发文档并同步代码
- 从仓库索引移除 开发文档/(本地保留)
- 忽略 wechat/info.log 与 soul-api-linux
- 同步小程序/管理端/API改动

Made-with: Cursor
2026-03-17 15:26:28 +08:00
Alex-larget
c6904e4a32 启动失败: The VERSION variable is not set. Defaulting to a blank string. The CPUS variable is not set. Defaulting to a blank string. Error while attempting to convert service.SoulRedis.deploy.resources.limits.cpus to appropriate type: "" is not a valid float ! 2026-03-17 15:20:40 +08:00
Alex-larget
036de75f7e Merge branch 'yongxu-dev' into devlop
# Conflicts:
#	.cursor/agent/软件测试/evolution/索引.md   resolved by yongxu-dev version
#	.cursor/skills/testing/SKILL.md   resolved by yongxu-dev version
#	.gitignore   resolved by yongxu-dev version
#	miniprogram/app.js   resolved by yongxu-dev version
#	miniprogram/app.json   resolved by yongxu-dev version
#	miniprogram/pages/chapters/chapters.js   resolved by yongxu-dev version
#	miniprogram/pages/index/index.js   resolved by yongxu-dev version
#	miniprogram/pages/index/index.wxml   resolved by yongxu-dev version
#	miniprogram/pages/match/match.js   resolved by yongxu-dev version
#	miniprogram/pages/my/my.js   resolved by yongxu-dev version
#	miniprogram/pages/my/my.wxml   resolved by yongxu-dev version
#	miniprogram/pages/my/my.wxss   resolved by yongxu-dev version
#	miniprogram/pages/read/read.js   resolved by yongxu-dev version
#	miniprogram/pages/read/read.wxml   resolved by yongxu-dev version
#	miniprogram/pages/read/read.wxss   resolved by yongxu-dev version
#	miniprogram/pages/wallet/wallet.js   resolved by yongxu-dev version
#	miniprogram/pages/wallet/wallet.wxml   resolved by yongxu-dev version
#	miniprogram/pages/wallet/wallet.wxss   resolved by yongxu-dev version
#	miniprogram/utils/ruleEngine.js   resolved by yongxu-dev version
#	miniprogram/utils/trackClick.js   resolved by yongxu-dev version
#	soul-admin/dist/index.html   resolved by yongxu-dev version
#	soul-admin/src/components/RichEditor.tsx   resolved by yongxu-dev version
#	soul-admin/src/layouts/AdminLayout.tsx   resolved by yongxu-dev version
#	soul-admin/src/pages/api-docs/ApiDocsPage.tsx   resolved by yongxu-dev version
#	soul-admin/src/pages/content/ContentPage.tsx   resolved by yongxu-dev version
#	soul-admin/src/pages/settings/SettingsPage.tsx   resolved by yongxu-dev version
#	soul-admin/tsconfig.tsbuildinfo   resolved by yongxu-dev version
#	soul-api/.env.production   resolved by yongxu-dev version
#	soul-api/internal/database/database.go   resolved by yongxu-dev version
#	soul-api/internal/handler/balance.go   resolved by yongxu-dev version
#	soul-api/internal/handler/book.go   resolved by yongxu-dev version
#	soul-api/internal/handler/ckb_open.go   resolved by yongxu-dev version
#	soul-api/internal/handler/db.go   resolved by yongxu-dev version
#	soul-api/internal/handler/db_book.go   resolved by yongxu-dev version
#	soul-api/internal/handler/db_person.go   resolved by yongxu-dev version
#	soul-api/internal/handler/search.go   resolved by yongxu-dev version
#	soul-api/internal/handler/upload.go   resolved by yongxu-dev version
#	soul-api/internal/router/router.go   resolved by yongxu-dev version
#	soul-api/wechat/info.log   resolved by yongxu-dev version
#	开发文档/10、项目管理/运营与变更.md   resolved by yongxu-dev version
#	开发文档/1、需求/需求汇总.md   resolved by yongxu-dev version
2026-03-17 14:23:26 +08:00
Alex-larget
b57b132226 优化、定版本 2026-03-17 14:17:20 +08:00
Alex-larget
c24caf63c5 性能优化 2026-03-17 14:02:09 +08:00
Alex-larget
2f35520670 feat: 定合并的稳定版本 2026-03-17 13:17:49 +08:00
Alex-larget
fcc05b6420 feat: 对齐规则引擎 2026-03-17 12:21:33 +08:00
Alex-larget
601044ec60 实施美团式的支付流程,并增强相关功能
- 将支付流程统一至礼品支付页面,禁止从阅读页面进行支付,以优化用户体验。
- 更新了礼物支付详情页面,为发起人和朋友展示了不同的用户界面元素,包括为发起人提供的分享按钮和为朋友提供的支付按钮。
- 增强了后端逻辑,以确保在支付处理过程中正确将收益归因于发起人。
- 增加了每日章节更新,并改进了章节页面的加载状态,以提升用户交互体验。
- 更新了文档,以反映新的支付流程和相关变更。
2026-03-17 12:15:08 +08:00
Alex-larget
0d12ab1d07 Update project documentation and enhance user interaction features
- Added a new entry for user interaction habit analysis based on agent transcripts, summarizing key insights into communication styles and preferences.
- Updated project indices to reflect the latest developments, including the addition of a wallet balance feature and enhancements to the mini program's user interface for better user experience.
- Improved the handling of loading states in the chapters page, ensuring a smoother user experience during data retrieval.
- Implemented a gift payment sharing feature, allowing users to share payment requests with friends for collaborative purchases.
2026-03-17 11:44:36 +08:00
Alex-larget
b971420090 Enhance documentation for new-soul project requirements and integration analysis
- Added detailed notes on the new-soul project, including the relationship between派对AI and various components such as content_upload.py, Mycontent, and the mini program.
- Documented the need for consistency checks between chapters and database structures, as well as the alignment of management requirements with current projects.
- Updated project indices to reflect the latest discussions and decisions from the March 16, 2026 meeting regarding new-soul's integration and operational impacts.
2026-03-16 18:35:21 +08:00
Alex-larget
c13cb30fdf 更新2026年3月16日的项目索引,包括对ParseAutoLinkContent和TipTap Mention功能的增强。添加了跨各种项目索引进行日常开发进度同步的详细信息,确保对最新变更进行全面记录。 2026-03-16 18:23:09 +08:00
Alex-larget
71b0087fad 清理 2026-03-16 18:11:05 +08:00
Alex-larget
2406535369 测试用例 2026-03-16 17:57:00 +08:00
Alex-larget
f37e2ad966 Implement person name retrieval by token and enhance mention handling
- Added a new function to retrieve a person's name from the database using their token, addressing issues with damaged mentions that display tokens instead of names.
- Updated the content parsing logic to ensure that mentions include both data-id and data-label attributes, improving the display of names in the user interface.
- Enhanced the handling of inner text to correctly replace tokens with real names when applicable, ensuring a more seamless user experience.
2026-03-16 17:54:14 +08:00
Alex-larget
9210b931c4 Enhance profile editing and sharing functionality
- Added a new feature for sharing profile cards, including special handling for forwarding to friends and displaying a canvas cover with user information.
- Updated the mini program's profile-edit page to generate a shareable card with a structured layout, including user avatar, nickname, and additional information.
- Improved the documentation to reflect the new sharing capabilities and updated the last modified date for relevant entries.
2026-03-16 17:18:49 +08:00
Alex-larget
219ae3b843 删除过时的批处理脚本和部署Python文件
- 删除了macOS虚拟机的安装和迁移批处理脚本,因为它们已不再需要。
- 删除了macOS虚拟机的导出脚本,以简化项目流程。
- 删除了soul-admin项目的部署Python脚本,以简化代码库。
- 更新了小程序,以反映环境配置的变化并提升用户体验。
2026-03-16 16:10:30 +08:00
Alex-larget
e75092eaad Refactor mini program environment configuration and remove deprecated debug features
- Simplified the environment configuration in app.js by removing the debug environment options and related functions.
- Set a default API base URL for production while allowing commented options for local and testing environments.
- Cleaned up settings.js by removing the debug environment label and switching functionality, streamlining the user interface.
- Updated documentation to reflect the removal of debug features and added a summary of synchronization requirements in the planning document.
2026-03-16 13:30:05 +08:00
Alex-larget
0e7b81eaa8 更新测试文档并增强设备管理逻辑
- 新增了一项功能,用于自动生成文章中的提及内容,从而优化了系统中创建计划流程的测试用例文档。
- 更新了测试关联文档,以纳入基于不同场景的测试用例的归档和复用规则。
- 实现了在未指定设备时选择默认设备的逻辑,确保设备管理流程更加顺畅。
- 在计划创建的上下文中明确了设备组的需求,从而提高了系统的整体可靠性。
2026-03-16 11:24:42 +08:00
Alex-larget
d4ba905ee5 通过自动提及和标签创建功能,增强文章编辑功能
- 在文章编辑过程中,实现了自动创建不存在的@提及和#标签的功能,确保它们被添加到相应的数据库中。
- 更新了内容处理逻辑,以利用新创建的提及和标签,从而改善用户体验和内容管理。
- 增强了人物和链接标签创建的后端处理能力,使文章编辑过程中能够实现无缝集成。
2026-03-16 11:09:26 +08:00
Alex-larget
b3ce6b5445 Update project indices and enhance meeting coordination rules
- Added entries for routine development progress synchronization on March 16, 2026, across various project indices including testing, product, management, backend, team, mini program, and assistant.
- Updated the last modified date to reflect the latest changes.
- Enhanced the meeting coordination rules to ensure proper activation and execution of multi-role meetings, including new triggers for adding requirements.
2026-03-16 10:15:47 +08:00
Alex-larget
5517f7c004 Update meeting activation rules and enhance multi-role meeting trigger
- Modified the activation phrase for the boss avatar to include additional expressions for initiating meetings.
- Changed the `alwaysApply` setting in the soul meeting trigger to true, ensuring it is always active during specified meeting contexts.
- Updated the protocol for the boss avatar to require reading the meeting skill document before hosting multi-role meetings.
2026-03-16 10:08:28 +08:00
卡若
85ce2422d1 chore: 新增 .gitignore 排除开发文档,同步代码与构建产物
Made-with: Cursor
2026-03-16 09:21:39 +08:00
卡若
fa9903d235 feat: 人物编辑弹窗改为CKB计划选择下拉框
- 新增 GET /api/admin/ckb/plans 获取存客宝获客计划列表
- 新增 GET /api/admin/ckb/plan-detail 获取计划详情
- PersonAddEditModal: 密钥字段改为可搜索的计划选择器
  选择计划后自动覆盖 greeting/tips/设备/时间等参数
- 删除"修复 CKB 密钥"按钮

Made-with: Cursor
2026-03-15 23:12:43 +08:00
卡若
aca006e1b2 feat: 完成20260315用户管理3全部5个功能
1. 链接人和事:补充CKB_OPEN_API_KEY/ACCOUNT配置,新增fix-ckb批量创建获客计划API
2. 规则配置:打通DB规则与ruleEngine,新增/api/miniprogram/user-rules接口,
   ruleEngine改为从API动态加载规则并按enabled状态执行
3. 获客计划:修复获客数统计中personId/token不匹配导致永远为0的bug,
   管理端新增"修复CKB密钥"按钮
4. 支付问题:修复钱包充值和代付分享中openId缺失导致400错误,
   添加getOpenId()兜底逻辑
5. 朋友圈分享:shareToMoments改为复制文章前200字+省略号+手指箭头emoji

Made-with: Cursor
2026-03-15 23:00:42 +08:00
卡若
2ebcd0fd70 fix: 规则保存增强错误提示 + 成功提示
- handleSaveRule 添加成功 toast 提示
- catch 块区分 401/404/网络错误给出具体提示
- 404 时提示「接口不存在,请确认后端已部署最新版本」

Made-with: Cursor
2026-03-15 19:46:51 +08:00
卡若
64db4927ea fix: 注册 user-rules 和 shensheshou 路由,修复规则配置保存失败
- 将 /api/db/user-rules 的 GET/POST/PUT/DELETE 路由注册到 db 组
- 将 /api/admin/shensheshou/* 的 4 个路由注册到 admin 组
- 包含上次对话的头像 URL 修复(normalizeImageUrl 全栈)

Made-with: Cursor
2026-03-15 19:31:07 +08:00
卡若
708547d0dd feat: 数据概览简化 + 用户管理增加余额/提现列
- 数据概览:去掉代付统计独立卡片,总收入中以小标签显示代付金额
- 数据概览:移除余额统计区块(余额改在用户管理中展示)
- 数据概览:恢复转化率卡片(唯一付费用户/总用户)
- 用户管理:用户列表新增「余额/提现」列,显示钱包余额和已提现金额
- 后端:DBUsersList 增加 user_balances 查询,返回 walletBalance 字段
- 后端:User model 添加 WalletBalance 非数据库字段
- 包含之前的小程序埋点和管理后台点击统计面板

Made-with: Cursor
2026-03-15 15:57:09 +08:00
卡若
991e17698c feat: 内容管理第5批优化 - Bug修复 + 分享功能 + 代付功能
1. Bug修复:
   - 修复Markdown星号/下划线在小程序端原样显示问题(markdownToHtml增加__和_支持,contentParser增加Markdown格式剥离)
   - 修复@提及无反应(MentionSuggestion使用ref保持persons最新值,解决闭包捕获空数组问题)
   - 修复#链接标签点击"未找到小程序配置"(增加appId直接跳转降级路径)

2. 分享功能优化:
   - "分享到朋友圈"改为"分享给好友"(open-type从shareTimeline改为share)
   - 90%收益提示移到分享按钮下方
   - 阅读20%后向上滑动弹出分享浮层提示(4秒自动消失)

3. 代付功能:
   - 后端:新增UserBalance/BalanceTransaction/GiftUnlock三个模型
   - 后端:新增8个余额相关API(查询/充值/充值确认/代付/领取/退款/交易记录/礼物信息)
   - 小程序:阅读页新增"代付分享"按钮,支持用余额为好友解锁章节
   - 分享链接携带gift参数,好友打开自动领取解锁

Made-with: Cursor
2026-03-15 09:20:27 +08:00
Alex-larget
7ece8f52ff 文章编辑器问题 2026-03-14 23:27:22 +08:00
Alex-larget
d82ef6d8e4 Enhance mini program environment configuration and chapter loading logic
- Introduced a debugging environment configuration in app.js, allowing for dynamic API endpoint selection based on the environment.
- Implemented lazy loading for chapter parts in chapters.js, improving performance by only fetching necessary data.
- Updated UI elements in chapters.wxml to reflect changes in chapter loading and added loading indicators.
- Enhanced error handling and data management for chapter retrieval, ensuring a smoother user experience.
- Added functionality for switching API environments in settings.js, visible only in development mode.
2026-03-14 18:04:05 +08:00
Alex-larget
1edceda4db Update evolution indices and enhance user experience in mini program
- Added new entries for content ranking algorithm adjustments and cross-platform reuse in the evolution indices for backend, team, and mini program development.
- Improved user interface elements in the mini program, including the addition of a hidden settings entry and refined guidance for profile modifications.
- Enhanced reading statistics display with formatted numbers for better clarity and user engagement.
- Updated reading tracker logic to prevent duplicate duration accumulation and ensure accurate reporting of reading progress.
2026-03-14 17:13:06 +08:00
Alex-larget
c936371165 Update mini program development documentation and enhance user interface elements
- Added a new entry for the latest mini program development rules and APIs in the evolution index.
- Updated the skill documentation to include guidelines on privacy authorization and capability detection.
- Modified the read and settings pages to improve user experience with new input styles and layout adjustments.
- Implemented user-select functionality for text elements in the read page to enhance interactivity.
- Refined CSS styles for better responsiveness and visual consistency across various components.
2026-03-14 16:23:01 +08:00
Alex-larget
8778a42429 2026年3月14日14:37:06 2026-03-14 14:37:17 +08:00
Alex-larget
db4b4b8b87 Add linked mini program functionality and enhance link tag handling
- Introduced `navigateToMiniProgramAppIdList` in app.json for mini program navigation.
- Updated link tag handling in the read page to support mini program keys and app IDs.
- Enhanced content parsing to include app ID and mini program key in link tags.
- Added linked mini programs management in the admin panel with API endpoints for CRUD operations.
- Improved UI for selecting linked mini programs in the content creation page.
2026-03-12 16:51:12 +08:00
Alex-larget
41ebc70a50 Refactor BookRecommended function to streamline chapter recommendations. Simplify error handling and ensure consistent output format. Remove unused code related to fallback logic for chapter retrieval, enhancing performance and maintainability. 2026-03-12 11:42:13 +08:00
Alex-larget
d3b67681d7 Refactor user profile handling and navigation logic in the mini program. Introduce functions to ensure user profile completeness after login, update avatar selection process, and enhance navigation between chapters based on backend data. Update API endpoints for user data synchronization and improve user experience with new UI elements for profile editing. 2026-03-12 11:36:50 +08:00
Alex-larget
da6d2c0852 Update API endpoints for order retrieval in admin panel; change from /api/orders to /api/admin/orders in multiple files for consistency. Remove unused CSS and JS files from the distribution folder to streamline the build. Enhance order synchronization logic in the backend to handle order states more effectively. 2026-03-11 16:29:20 +08:00
Alex-larget
3d8873fe24 1 2026-03-11 14:49:45 +08:00
Alex-larget
68c0bb1588 Merge branch 'yongxu' into devlop 2026-03-11 12:33:08 +08:00
Alex-larget
90edabfca2 清理 2026-03-11 11:00:41 +08:00
Alex-larget
f2af615087 1 2026-03-10 20:53:52 +08:00
Alex-larget
08dd0703ec 1 2026-03-10 20:21:47 +08:00
Alex-larget
a8c7dc9306 Merge branch 'yongxu' into devlop
# Conflicts:
#	.cursor/meeting/README.md   resolved by yongxu version
#	.gitignore   resolved by yongxu version
#	miniprogram/pages/index/index.js   resolved by yongxu version
#	miniprogram/pages/read/read.js   resolved by yongxu version
#	miniprogram/pages/read/read.wxml   resolved by yongxu version
#	soul-admin/dist/index.html   resolved by yongxu version
#	soul-admin/src/App.tsx   resolved by yongxu version
#	soul-admin/src/components/RichEditor.css   resolved by yongxu version
#	soul-admin/src/components/RichEditor.tsx   resolved by yongxu version
#	soul-admin/src/components/modules/user/UserDetailModal.tsx   resolved by yongxu version
#	soul-admin/src/layouts/AdminLayout.tsx   resolved by yongxu version
#	soul-admin/src/pages/chapters/ChaptersPage.tsx   resolved by yongxu version
#	soul-admin/src/pages/content/ContentPage.tsx   resolved by yongxu version
#	soul-admin/src/pages/dashboard/DashboardPage.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/FindPartnerPage.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/tabs/CKBConfigPanel.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/tabs/CKBStatsTab.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/tabs/FindPartnerTab.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/tabs/MatchPoolTab.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/tabs/MatchRecordsTab.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/tabs/MentorBookingTab.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/tabs/MentorTab.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/tabs/ResourceDockingTab.tsx   resolved by yongxu version
#	soul-admin/src/pages/find-partner/tabs/TeamRecruitTab.tsx   resolved by yongxu version
#	soul-admin/src/pages/mentors/MentorsPage.tsx   resolved by yongxu version
#	soul-admin/src/pages/referral-settings/ReferralSettingsPage.tsx   resolved by yongxu version
#	soul-admin/src/pages/settings/SettingsPage.tsx   resolved by yongxu version
#	soul-admin/src/pages/users/UsersPage.tsx   resolved by yongxu version
#	soul-admin/tsconfig.tsbuildinfo   resolved by yongxu version
#	soul-api/internal/database/database.go   resolved by yongxu version
#	soul-api/internal/handler/admin_dashboard.go   resolved by yongxu version
#	soul-api/internal/handler/book.go   resolved by yongxu version
#	soul-api/internal/handler/ckb.go   resolved by yongxu version
#	soul-api/internal/handler/db_book.go   resolved by yongxu version
#	soul-api/internal/handler/db_person.go   resolved by yongxu version
#	soul-api/internal/handler/match_records.go   resolved by yongxu version
#	soul-api/internal/handler/user.go   resolved by yongxu version
#	soul-api/internal/model/chapter.go   resolved by yongxu version
#	soul-api/internal/model/person.go   resolved by yongxu version
#	soul-api/internal/router/router.go   resolved by yongxu version
#	开发文档/10、项目管理/运营与变更.md   resolved by yongxu version
#	开发文档/1、需求/需求汇总.md   resolved by yongxu version
#	开发文档/README.md   resolved by yongxu version
2026-03-10 20:20:59 +08:00
Alex-larget
dc3597c906 更新小程序,优化单页模式下的用户引导逻辑,确保用户在朋友圈等环境中能够顺利登录和访问完整内容。调整章节内容获取逻辑,确保未授权用户无法访问完整内容。新增手机号同步功能,提升用户资料管理体验。 2026-03-10 20:20:03 +08:00