feat: 添加可配置升级次数和优化日志时间戳

1. 在pm2.json中添加进程管理配置
2. 在YAML配置中增加upgrade_count字段控制升级次数
3. 修改升级逻辑支持N次升级后切换版本
4. 为API调用日志添加ISO时间戳
5. 更新项目文档说明可配置升级次数
This commit is contained in:
2026-01-22 14:06:22 +08:00
parent 99279006a2
commit 834ac02da5
6 changed files with 21 additions and 9 deletions

View File

@@ -178,6 +178,10 @@ components:
type: integer
fileName:
type: string
upgrade_count:
type: integer
description: Number of times to upgrade this file before switching
default: 2
required:
- roomtype_id
- fileName