Files
xyzw_web_helper/MD说明文件夹/批量自动化-超时延迟配置表v3.11.md
2025-10-17 20:56:50 +08:00

265 lines
9.9 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 批量自动化 - 超时延迟配置表 v3.11
## 📋 文档时间
2025-10-08
## 🎯 配置概览
本文档详细列出批量自动化中所有任务的超时时间、延迟间隔等配置参数。
---
## 📊 全局配置
| 配置项 | 默认值 | 说明 |
|--------|--------|------|
| **连接稳定等待** | 2000ms (2秒) | WebSocket连接建立后的稳定时间 |
| **任务间隔** | 500ms | 每个任务执行完毕后的等待时间 |
| **连接间隔** | 300ms | 多个token建立连接的延迟避免并发过高|
| **暂停检查间隔** | 500ms | 任务暂停时的检查频率 |
---
## 📋 一键补差任务 (dailyFix) - 共22大类任务
### 1⃣ 任务前后状态检查
| 操作 | 超时时间 | 延迟 | 说明 |
|------|---------|------|------|
| `role_getroleinfo` (执行前) | 10000ms | 200ms | 获取执行前的任务状态 |
| `role_getroleinfo` (执行后) | 10000ms | - | 获取执行后的任务状态对比 |
### 2⃣ 一键补差子任务明细
| 序号 | 任务名称 | WebSocket命令 | 超时时间 | 任务后延迟 | 备注 |
|------|----------|---------------|---------|-----------|------|
| 1 | 分享游戏 | `system_mysharecallback` | 1000ms | 200ms | type: 2 |
| 2 | 赠送好友金币 | `friend_batch` | 1000ms | 200ms | - |
| 3 | 免费招募 | `hero_recruit` | 1000ms | 200ms | recruitType: 3 |
| 4 | 付费招募 | `hero_recruit` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 5 | 免费点金 (1/3) | `system_buygold` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 6 | 免费点金 (2/3) | `system_buygold` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 7 | 免费点金 (3/3) | `system_buygold` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 8 | 开启木质宝箱×10 | `item_openbox` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 9 | 福利签到 | `system_signinreward` | 1000ms | 200ms | - |
| 10 | 领取每日礼包 | `discount_claimreward` | 1000ms | 200ms | - |
| 11 | 领取免费礼包 | `card_claimreward` | 1000ms | 200ms | - |
| 12 | 领取永久卡礼包 | `card_claimreward` | 1000ms | 200ms | cardId: 4003 |
| 13 | 领取邮件奖励 | `mail_claimallattachment` | 1000ms | 200ms | category: 0 |
| 14 | 免费钓鱼 (1/3) | `artifact_lottery` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 15 | 免费钓鱼 (2/3) | `artifact_lottery` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 16 | 免费钓鱼 (3/3) | `artifact_lottery` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 17 | 魏国灯神扫荡 | `genie_sweep` | 1000ms | 200ms | genieId: 1 |
| 18 | 蜀国灯神扫荡 | `genie_sweep` | 1000ms | 200ms | genieId: 2 |
| 19 | 吴国灯神扫荡 | `genie_sweep` | 1000ms | 200ms | genieId: 3 |
| 20 | 群雄灯神扫荡 | `genie_sweep` | 1000ms | 200ms | genieId: 4 |
| 21 | 领取扫荡卷 (1/3) | `genie_buysweep` | 1000ms | 200ms | - |
| 22 | 领取扫荡卷 (2/3) | `genie_buysweep` | 1000ms | 200ms | - |
| 23 | 领取扫荡卷 (3/3) | `genie_buysweep` | 1000ms | 200ms | - |
| 24 | 黑市一键采购 | `store_purchase` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 25 | 竞技场启动 | `arena_startarea` | 1000ms | - | - |
| 26 | 竞技场战斗 (1/3) | `arena_getareatarget` + `fight_startareaarena` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 27 | 竞技场战斗 (2/3) | `arena_getareatarget` + `fight_startareaarena` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 28 | 竞技场战斗 (3/3) | `arena_getareatarget` + `fight_startareaarena` | 1000ms | 200ms | 💰 消耗资源,可配置跳过 |
| 29 | 军团BOSS | `fight_startlegionboss` | 1000ms | 200ms | - |
| 30 | 每日BOSS (1/3) | `fight_startboss` | 1000ms | 200ms | 根据星期计算bossId |
| 31 | 每日BOSS (2/3) | `fight_startboss` | 1000ms | 200ms | - |
| 32 | 每日BOSS (3/3) | `fight_startboss` | 1000ms | 200ms | - |
| 33 | 停止盐罐机器人 | `bottlehelper_stop` | 1000ms | 500ms | bottleType: -1 |
| 34 | 启动盐罐机器人 | `bottlehelper_start` | 1000ms | 500ms | bottleType: -1 |
| 35 | 领取盐罐奖励 | `bottlehelper_claim` | 1000ms | 200ms | - |
| 36 | 等待任务状态更新 | - | - | 1000ms | 确保服务器更新任务状态 |
| 37 | 领取任务奖励1-10 | `task_claimdailypoint` | 1000ms | 200ms | taskId: 1-10共10次 |
| 38 | 领取日常任务奖励 | `task_claimdailyreward` | 1000ms | 200ms | - |
| 39 | 领取周常任务奖励 | `task_claimweekreward` | 1000ms | 200ms | - |
**一键补差总计:** 约70+个子操作,预计耗时约 **15-25秒**
---
## 📋 其他独立任务
### 3⃣ 俱乐部签到 (legionSignIn)
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `legion_signin` | 1000ms | 500ms (任务间隔) | 错误码 2300190 视为"已签到",跳过 |
### 4⃣ 一键答题 (autoStudy)
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `study_startgame` | 1000ms | 500ms (任务间隔) | 错误码 3100080 视为"次数用完",跳过 |
### 5⃣ 领取挂机奖励 (claimHangupReward)
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `system_claimhangupreward` | 1000ms | 500ms (任务间隔) | - |
### 6⃣ 加钟 (addClock)
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `system_mysharecallback` | 1000ms | 500ms (任务间隔) | type: 3, isSkipShareCard: true |
### 7⃣ 爬塔 (climbTower)
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `fight_starttower` (每次) | 2000ms | 500ms | 根据配置重复N次默认0次 |
**可配置次数:** 0-50次滑块配置
### 8⃣ 发车 (sendCar) - 完整流程
#### 第1步查询车辆
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `car_getrolecar` | 10000ms | - | 查询俱乐部车辆信息 |
#### 第2步批量刷新可选
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `car_refresh` (每辆车) | 5000ms | 300ms | 跳过有刷新票的车辆 |
| 刷新完成后重新查询 | - | 500ms | 等待后重新执行 `car_getrolecar` |
**可配置刷新轮数:** 0-10轮滑块配置
#### 第3步批量收获
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `car_claim` (每辆车) | 5000ms | 300ms | 仅收获 `state === 2` (已到达) 的车辆 |
| 收获完成后重新查询 | - | 1000ms | 等待1秒后重新执行 `car_getrolecar` |
#### 第4步批量发送
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `car_send` (每辆车) | 5000ms | 300ms | 仅发送 `state === 0` (待发车) 的车辆 |
| 每日发车上限 | - | - | 每个token每天最多发4辆 |
#### 第5步最终验证
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| 等待服务器同步 | - | 1000ms | 确保发车状态同步 |
| `car_getrolecar` (最终查询) | 10000ms | - | 验证最终发车数准确性 |
**发车任务总计:****10-30秒**(取决于车辆数量和刷新轮数)
---
## 🔧 辅助功能超时配置
### 阵容切换
| 操作 | 超时时间 | 延迟 | 备注 |
|------|---------|------|------|
| `presetteam_changeteam` | 1000ms | 300ms | 切换到指定阵容 |
### WebSocket连接重试机制
| 参数 | 配置 | 说明 |
|------|------|------|
| **最大重试次数** | 5次 | 连接失败后最多重试5次 |
| **重试延迟** | 递增 | 2s → 3s → 5s → 8s → 10s指数退避 |
---
## 📊 性能估算
### 单个Token完整任务预估时间
| 任务组合 | 预估时间 | 说明 |
|----------|---------|------|
| **仅一键补差** | 15-25秒 | 70+个子操作 |
| **快速套餐** | 10-15秒 | 签到+答题+领奖+加钟+发车+爬塔 |
| **完整套餐** | 25-40秒 | 所有任务 |
### 并发执行时间21个Token
| 并发数 | 预估总时间 | 说明 |
|--------|-----------|------|
| **1个** | 约8-14分钟 | 21 × 25秒 |
| **3个** | 约3-5分钟 | 7批 × 30秒 |
| **5个** | 约2-3分钟 | 5批 × 30秒 |
| **10个** | 约1-2分钟 | 3批 × 35秒 |
| **21个** | 约40-60秒 | 1批 × 45秒高并发服务器压力大 |
---
## ⚠️ 注意事项
### 超时时间调整建议
1. **网络较差时:**
- 建议增加所有超时时间×1.5-2倍
- 降低并发数≤5
2. **服务器响应慢时:**
- 增加 `car_getrolecar``role_getroleinfo` 等查询命令的超时15000ms+
- 增加任务间延迟1000ms
3. **高并发时:**
- 增加连接间隔500-1000ms
- 适当增加任务间延迟1000ms
### 延迟时间优化建议
1. **快速执行模式:**
- 任务后延迟200ms → 100ms
- 任务间隔500ms → 300ms
- ⚠️ 可能导致服务器限流
2. **稳定执行模式(推荐):**
- 保持当前配置
- 任务后延迟200ms
- 任务间隔500ms
3. **保守执行模式:**
- 任务后延迟500ms
- 任务间隔1000ms
- 适用于不稳定网络环境
---
## 🔄 版本历史
### v3.11.5 (2025-10-08)
- 📝 首次创建完整的超时延迟配置表
- 📊 详细列出所有任务的超时和延迟参数
- 💡 提供性能估算和优化建议
---
## 💡 未来优化方向
1. **动态超时调整:**
- 根据网络延迟自动调整超时时间
- 根据任务成功率动态调整重试策略
2. **智能延迟优化:**
- 根据服务器响应速度动态调整延迟
- 区分"必须延迟"和"可选延迟"
3. **配置可定制化:**
- 允许用户在UI中自定义超时时间
- 提供"快速/标准/保守"预设配置
4. **性能监控:**
- 记录每个任务的实际执行时间
- 生成性能报告,辅助优化
---
## 📝 相关文档
- [批量任务使用说明.md](./批量任务使用说明.md)
- [一键补差完整子任务清单.md](./一键补差完整子任务清单.md)
- [功能更新-自动重试失败任务v3.7.0.md](./功能更新-自动重试失败任务v3.7.0.md)