Commit 165ceb3
feat: 决战快修开关 + 舰船泡澡修理 API + 模拟器设备查询 API (#376)
* ci: 每30分钟自动同步上游仓库
* feat: 添加 POST /api/repair/ship 端点 — 按舰船名泡澡修理
添加 /api/repair/ship 路由,接受 ship_name 参数,调用已有的
repair_ship_by_name() 函数将指定舰船送入浴室修理。
返回修理时间(秒),浴场已满时返回错误。
此端点供 AutoWSGR-GUI 前端的泡澡修理系统使用。
* feat: 决战添加 use_quick_repair 开关
- DecisiveRequest schema 新增 use_quick_repair: bool = True
- DecisiveConfig 新增 use_quick_repair 字段
- _start_decisive 传递 use_quick_repair 到 DecisiveConfig
- handlers.py: use_quick_repair=False 时使用 RepairStrategy.NEVER
- logic.py: should_repair() 尊重 use_quick_repair 配置
* feat: 添加 GET /api/system/emulator/devices 端点
通过 adb devices 查询已连接的模拟器设备列表,
用于前端检查模拟器运行状态。
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: huan-yp <85162020+huan-yp@users.noreply.github.com>1 parent 16c85f3 commit 165ceb3
7 files changed
Lines changed: 33 additions & 2 deletions
File tree
- autowsgr
- infra
- ops/decisive
- server
- routes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
477 | 479 | | |
478 | 480 | | |
479 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
| |||
0 commit comments