Commit Graph

348 Commits

Author SHA1 Message Date
augushong
e558a97e91 fix(host): 防止主节点重复并修复 setMaster 权限
Clear all is_master flags before electing new master to prevent multiple master records. Fix setMaster annotation from @auth true to proper @NodeAnotation format so permission node is generated correctly.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-26 18:33:46 +08:00
augushong
a47bbb2c6a fix(timer): 自动记录执行日志并捕获结果
Add execute() wrapper in TimerControllerBase that wraps do() with logStart/logEnd, captures return value to result field. Change site URL routing from /do to /execute with task_name injection. Add result field to system_timer_log scheme.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-26 18:33:45 +08:00
augushong
e1bf94a55e feat(timer): 新增日志每日自动清理定时任务
- New LogClean timer controller (site type, frequency 86400s)
- run_type defaults to auto, only one node cleans per day
- Cleans system_timer_log records older than 30 days
2026-05-26 18:33:45 +08:00
augushong
90e584f5a1 feat(timer): 新增定时器配置、日志和主机的后台管理界面
T10: TimerConfig CURD - task management with run_type/status editing,
     manual trigger button, task_name read-only, no add/delete
T11: TimerLog CURD - read-only log viewer with filters and color badges
T12: Host list enhanced - is_master column, setMaster button
2026-05-26 18:33:43 +08:00
augushong
25fab093fa feat(timer): 新增 run_type 调度、host_id 投递和日志清理
T7: TimerBase shouldExecuteTask() - main/auto/all/manual/disabled modes
    with two-phase DB row lock for auto mode
T8: TimerControllerBase - host_id param, logStart/logEnd methods
    TimerServiceBase - inject host_id into site URLs
T9: TimerLogClean command - php think admin:timer:log:clean --days=30
2026-05-26 18:33:42 +08:00
augushong
abeac2c3cb feat(timer): 新增配置同步到数据库及主节点选举
T5: TimerServiceBase.syncConfigToDatabase() - syncs task config to DB
T6: HostServiceBase - auto master election, stale node detection,
    getMasterNode/setMasterNode methods
2026-05-26 18:33:41 +08:00
augushong
d719a99d14 feat(timer): 新增多节点定时器协调的 Scheme 定义 2026-05-26 18:33:41 +08:00
augushong
db057aa90e feat(stack): 切换模式时自动删除多余的管理文件
All checks were successful
build-and-deploy / 直传代码并部署到 Host15 (push) Successful in 1m0s
- 重写 getModePlan: 跳过目标模式和 default 都不存在的文件 (不再抛异常)
- 重写 applyMode: 切换模式后自动清理孤立的管理文件, 删除前备份以支持 rollback
- 修复 HOSTPORT 为 3306 (容器内部端口, 非宿主机映射端口)
- 增加 backup_id 空值保护: 无备份时不执行删除
2026-04-29 23:35:56 +08:00
augushong
b44fcfd86c feat(stack): 新增 stack 模式管理功能
- 新增 `php think admin:stack:mode` 命令,支持 list/use/current/rollback 操作
- 新增 StackModeService 服务,负责模式切换、备份与回滚逻辑
- 在 source/stack/ 目录下添加 default、full、base-build 三种模式的配置文件
- 更新 UlthonAdminService 以注册新的命令行工具
2026-04-24 23:20:13 +08:00
augushong
8cc08bcb8c feat: 发布智能体版 2026-03-26 20:22:34 +08:00
augushong
1a88ff286e feat(uniapp): 集成 Pinia 状态管理并实现用户认证流程 2026-02-01 12:01:37 +08:00
augushong
5bee1b3733 feat(console): 添加 --force-force 参数以跳过所有交互确认 2026-01-31 23:00:51 +08:00
augushong
e8f58ef322 feat(command): 新增数据库调试命令行工具集 2026-01-26 23:10:10 +08:00
augushong
6eefa1cd2e refactor(admin): 重构系统状态模块以支持模块化结构 2026-01-23 00:02:51 +08:00
augushong
3a4194d3e9 feat: 新增系统状态页面功能 2026-01-22 23:28:13 +08:00
augushong
23826cd06e refactor(scheme): 优化数据库同步逻辑并增加备份表检查 2026-01-09 22:26:34 +08:00
augushong
edeae731f0 refactor: 删除废弃的scheme类文件 2026-01-09 21:40:20 +08:00
augushong
6b4a67aeb4 feat(scheme): 新增多个数据模型类文件 2026-01-09 21:38:25 +08:00
augushong
8de6b99bb3 feat(scheme): 新增数据库表结构同步方案 2026-01-09 21:08:51 +08:00
augushong
00af0fa628 feat: 去掉控制器中的运行节点注册机制 2025-08-24 14:01:36 +08:00
augushong
a9d1429000 feat: 增加内置节点注册任务;优化定时器代码结构; 2025-08-23 23:22:52 +08:00
augushong
b1a6b37ee0 feat: 增加主机节点表结构代码 2025-08-23 22:44:47 +08:00
augushong
46722e5a66 feat: 增加主机节点服务类 2025-08-23 22:30:33 +08:00
augushong
d3e85fa552 feat: 升级权限管理模式 2025-03-20 16:57:05 +08:00
augushong
3f48492089 增加数据库的文件字段数据迁移 2024-10-25 20:47:21 +08:00
augushong
d0add06ca0 新增LoadMigrationFiles事件,支持扩展提供的数据库迁移文件 2024-10-15 18:06:25 +08:00
augushong
e53445e41c 新增通用的虚拟数据模型;新增定时任务多进程;新增多进程阻塞模式的定时器; 2024-10-04 23:03:18 +08:00
augushong
575d432982 开始演示用例页面 2024-07-07 23:29:23 +08:00
augushong
7fcfb6249d 修复事件异常错误 2024-04-01 18:39:09 +08:00
augushong
667608d233 格式化代码;新增全局数据存储工具; 2024-02-22 22:30:39 +08:00
augushong
9a7b9016e6 修复命名空间错误;发布新版本 2024-01-03 16:27:41 +08:00
augushong
e6779f4921 增加测试机制;完善DebugMysql日志逻辑;更新debug_log表字段格式;发布新版本 2024-01-03 16:22:01 +08:00
augushong
5653f0d485 删除代码无用代码 2023-12-08 14:17:18 +08:00
augushong
9f2d0898ec 发布新版本;增加自动替换脚本 2023-12-08 14:09:13 +08:00
augushong
c941f12884 增加说明 2023-10-18 16:35:30 +08:00
augushong
6195ac6be5 将所有主要逻辑代码迁移到extend中,并在service中注册调用; 2023-10-18 16:32:28 +08:00
augushong
8f1a749b8d 调整源码对比方式;调整更新逻辑 2023-10-18 15:19:05 +08:00
augushong
184dae8185 增加扩展机制定位文件;将common模块实现扩展模式;发布新版本; 2023-09-25 17:07:38 +08:00
augushong
3dcf336bbc 修改著作信息;修改更新配置文件 2023-09-25 11:12:57 +08:00
augushong
b6d91ec500 修改配置 2023-09-25 10:38:55 +08:00
augushong
5955a03d2c 实现view的扩展架构;调整think-view依赖;发布新版本 2023-09-25 10:35:03 +08:00
augushong
9f43e11f81 调整更新逻辑;发布新版本 2023-09-23 18:15:10 +08:00
augushong
b27f6d9ec7 发布新版本 2023-09-23 18:08:13 +08:00
augushong
dd6f33ffc4 发布新版本 2023-09-23 18:06:17 +08:00
augushong
afd570b910 清理部分无用的代码;调整更新逻辑;发布新版本 2023-09-23 18:05:41 +08:00
augushong
44edefb37b 重新修改主业务逻辑的命名规则 2023-09-23 17:48:36 +08:00
augushong
bee15dfea6 调整admin下的类库代码,将主要逻辑调整到extend下 2023-09-23 17:30:45 +08:00
augushong
ea9b8b0e71 删除事件代码 2023-09-23 14:53:05 +08:00
augushong
68f92e9cf2 发布新版本 2023-09-23 14:50:54 +08:00
augushong
08c340a2bf 增加response的事件机制;为login增加事件;发布新版本 2023-09-23 14:50:24 +08:00