[Bug fix] API for Link Play

- Fix a bug that API for Link Play cannot work
- Add an example breached map #148
This commit is contained in:
Lost-MSth
2024-02-20 23:04:58 +08:00
parent 9d096f480b
commit 50369d1f23
5 changed files with 88 additions and 7 deletions

View File

@@ -120,7 +120,7 @@ class TCPRouter:
r = getattr(self, self.endpoint)()
except Exception as e:
logging.error(e)
return 999
return {'code': 999}
if isinstance(r, int):
return {'code': r}
return {