Commit Graph
7 Commits
Author SHA1 Message Date
testadmin d77c6beac7 feat: add logging module for backend + frontend error reporting
Backend:
- New Logger utility (app/utils/Logger.php) with category-based log files
  (connect/game/bet/error/frontend under runtime/log/)
- Log WebSocket connect/close events (WsConnect, WsClose)
- Log dealer auth success/failure (SpaceConnectService)
- Log all game events: startBet, endBet, changeBoot, opening for all 7 game types
- Log unhandled exceptions (ExceptionHandle)
- Separate SQL/error logs via apart_level, enable realtime_write for Swoole
- Add /log/report POST endpoint for frontend error ingestion

Frontend:
- New error-report.js with window.onerror + unhandledrejection auto-reporting
- Added to all 12 dealer HTML templates
- Bump VERSION_V to v10.1.0
2026-05-14 11:28:33 +08:00
testadmin 081f6f111f revert: 回滚 extend_list 配置,app() 在 config 阶段未初始化会导致异常 2026-05-11 15:16:13 +08:00
testadmin ce03e0bb15 fix: extend_list强制加载语言包,确保Swoole环境下也能加载翻译 2026-05-11 15:00:38 +08:00
testadmin 1c35fcfa76 fix: 移除 max_task_request(当前 Swoole 版本不支持) 2026-04-22 15:31:17 +08:00
testadmin 3508a9c6d7 fix: Swoole 加 max_request 防内存泄漏导致状态异常
- worker/task 每处理 10000 请求自动重生,释放内存
- 解决长时间运行后龙虎等游戏偶发状态异常的问题
2026-04-20 12:30:44 +08:00
li ca996c227c Refactor ChatConnect and related classes to use dynamic typing for properties and method parameters. Update event handling to use a consistent naming convention for emitted events. Adjust WebSocket message handling methods to accept event arrays instead of specific data structures. Update configuration for Swoole to increase ping intervals and timeouts. 2026-01-29 03:04:40 +08:00
li b8cd0c9418 add 2026-01-28 23:48:20 +08:00