Commit Graph
24 Commits
Author SHA1 Message Date
fengshao1227 e44d645547 fix: 洗码量按客户完整规则重写
百家乐+龙虎:
- 单边洗码(type_xima=2):输口计洗码,开和不计
- 双边洗码(type_xima=1):所有投注都计洗码,开和不计(庄闲退回部分除外)
- 龙虎和局不杀龙虎,全额退回
2026-05-29 05:37:40 +08:00
fengshao1227 c3621121ca fix: 龙虎洗码量改为所有输口之和,和局通杀龙虎计入洗码 2026-05-28 18:04:53 +08:00
fengshao1227 477ca7f6c9 fix: 百家乐洗码量改为所有输口投注额之和
原逻辑只算庄/闲的投注额,对子、和、幸运6、大小的输口不计入。
改为:所有输的位置的投注额都计入洗码量(庄、闲、和、庄对、闲对、幸运6、大小)。
2026-05-28 18:03:35 +08:00
testadmin 8edc071997 fix: 倒计时卡住根因修复 — Redis TTL缓冲+前端watchdog兜底
根因:CountdownService用while(sleep(1))阻塞循环推送倒计时,
Redis key TTL=wait_time,3台同时运行时worker争用导致循环慢于
Redis过期时间,key先过期→循环中断→倒计时冻结在当前秒数。

修复:
1. Redis TTL加10秒缓冲(waitTime+10),防止key提前过期
2. 前端加watchdog兜底:服务端2秒没推送就本地继续倒计时
2026-05-19 14:25:48 +08:00
testadmin aa74a6edc1 fix: 荷官端卡住根因修复 — endBet防抖+状态同步+WaybillRemind越界
1. end_bet_error翻译从'停止成功'改为'已停止下注'(误导荷官以为操作成功)
2. endBet()加2秒防抖,防止连按Enter导致重复请求
3. Numpad 0加状态守卫,只在bet_status=1时才调endBet
4. endBet失败时前端自动同步服务端bet_status,不再弹错误框
5. 后端end_bet_error响应附带当前bet_status供前端同步
6. WaybillRemindService路子珠pattern检测加try-catch,消除每日59次offset -1错误
2026-05-19 00:28:02 +08:00
testadmin 3bac9960b8 refine: normalize bet log names and init_table_fail level 2026-05-14 11:50:59 +08:00
testadmin a180fe8385 feat: complete logging audit - fill all gaps
- Filter noisy audio play() errors from frontend log
- Add logging to ALL 8 ToBet services (was only Baccarat)
- Add InitTableService logging (Sumday/Boot/NumberTab creation & failure)
- Add logview.sh for quick log viewing
- Add log_cleanup.sh for 30-day rotation
2026-05-14 11:49:36 +08:00
testadmin b518578266 feat: complete logging coverage - all services + frontend route fix
Backend additions:
- UserConnectService, ScanConnectService: connection logging
- ToBetCommonService, ToBetBaccaratService: bet rejection/success logging
- ResetBoot, ResetNumberTab, ResetBaccarat, ResetDt: reset event logging
- handle/Index: log_report controller method (fixes route for dealer端)
- index/Log: log_report controller for player端 (no auth required)

Frontend:
- error-report.js: fix report URL to /index/log_report (matches handle controller)

Total: 21 backend files with 60 Logger calls across 5 categories
2026-05-14 11:35:34 +08:00
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 ef66019c29 feat: 修改上局结果支持幸运6/龙7/熊8
- tab_b.html: 下拉菜单加6/7/8选项(5段格式 opening-pair-luck_six-dragon_seven-panda_eight)
- handle_b.js: retreated()解析并传dragon_seven/panda_eight
- NumberTab: resetBaccarat更新luck_six/dragon_seven/panda_eight字段
- ResetBaccaratService: 比较条件加上三个字段
2026-05-13 19:09:43 +08:00
testadmin 71d28ef630 chore: .gitignore 加入 vendor/runtime/.DS_Store,清理 git 索引 2026-05-11 14:13:05 +08:00
testadmin 1c666a22be fix: 路单查询补查 luck_six/dragon_seven/panda_eight 字段
根因:getByBootIdDone 只查 result,pair,新字段没传到 Waybill,前端拿不到数据
2026-05-02 00:02:58 +08:00
testadmin 39a1d0dea8 feat: 路子珠显示幸运6/龙7/熊8特殊图标
- DB: cg_number_tab 加 dragon_seven, panda_eight 列
- 后端: OpeningBaccaratService 接收并存储 dragon_seven/panda_eight
- Waybill: showRoad 数据含 luck_six/dragon_seven/panda_eight
- 前端 SoloPath: 绿色圆「6」=幸运6, 金色圆「7」=龙7, 蓝色圆「8」=熊8
- handle_b.js: 键盘7/8设置对应隐藏字段,opening()传参
2026-05-01 23:36:33 +08:00
testadmin dd3776e759 fix: resetNumberTab 支持 bet_status=3 + 路单变量名修正
- ResetNumberTabService: 条件增加 bet_status==3,修复 || 应为 && 的逻辑错误
- WaybillRemindService: last_banker_lenth → last_player_lenth(result==2 是闲家)
- 所有荷官操作端 handle_*.js: resetNumberTab 同步支持 betStatus==3
2026-04-20 10:51:49 +08:00
li 46dd7f6a1f fix: 百家乐开牌崩溃 - WaybillRemindService闲赢分支变量名错误
result==2(闲赢) show_y<6时设置了$last_banker_lenth
但后续使用$last_player_lenth → Undefined variable → Swoole异常
2026-03-29 18:13:25 +08:00
黎小北 728ce45856 修复扫牌器获取的 boot_id是旧数据的问题,导致下注等异常 2026-03-25 07:03:00 +08:00
黎小北 0d420e3a78 修复作废操作操作错误的局 2026-03-25 06:30:12 +08:00
黎小北 a9108d7581 牛牛作废增加调试日志 2026-03-25 06:15:09 +08:00
li db34f5dba9 revert: 回滚SpaceConnectService bet_status改动,避免影响牛牛操作端位置显示 2026-03-15 20:39:53 +08:00
li f97ad09a8b fix: onlineLogin响应补充bet_status字段 - 修复牛牛操作端刷新后牌面丢失 2026-03-15 19:43:28 +08:00
li 90d348d77a feat: 五公杀赔从5倍改为4倍,四条杀赔保持5倍 2026-02-11 19:53:08 +08:00
li 67a44a3dba feat: 牛牛新增四条(炸弹)牌型 result=12
- CardPositionNn::JudgeCowCow() 新增四条识别(4张相同点数)
- OpeningNnService::doBet() 新增 result==12 赔率分支(闲1/2/3共12处)
2026-02-11 17:32:17 +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