* 保存上次匹配状态到数据库
()
| 1021 | * 保存上次匹配状态到数据库 |
| 1022 | */ |
| 1023 | private saveLastMatchState(): void { |
| 1024 | try { |
| 1025 | if (this.lastMatchState) { |
| 1026 | databaseAPI.dbPut('last-match-state', this.lastMatchState) |
| 1027 | console.log('[Commands] 保存上次匹配状态到数据库') |
| 1028 | } |
| 1029 | } catch (error) { |
| 1030 | console.error('[Commands] 保存上次匹配状态失败:', error) |
| 1031 | } |
| 1032 | } |
| 1033 | |
| 1034 | /** |
| 1035 | * 获取上次匹配状态 |