1.重构实时消息WebSocket连接
2.MySQL备份
This commit is contained in:
@@ -15,8 +15,8 @@ export default {
|
||||
btn_draw: 'Schedule draw',
|
||||
calc_result_number: 'Calculated number',
|
||||
calc_estimated_loss: 'Estimated payout',
|
||||
push_connected: 'Push connected, realtime updates running',
|
||||
push_disconnected: 'Push disconnected, please check service status',
|
||||
push_connected: 'Realtime connection established',
|
||||
push_disconnected: 'Polling mode enabled (push removed)',
|
||||
candidate_title: 'Candidate payout estimates',
|
||||
number: 'Number',
|
||||
estimated_loss: 'Estimated payout',
|
||||
|
||||
3
web/src/lang/backend/en/test/gameCurrentStatus.ts
Normal file
3
web/src/lang/backend/en/test/gameCurrentStatus.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tip: 'WebSocket connection test for status stream: listen to period.tick / period.opened events.',
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
export default {
|
||||
connected: 'Push connected (subscribed)',
|
||||
disconnected: 'Disconnected or idle',
|
||||
user_uuid: 'User uuid',
|
||||
user_uuid_placeholder: '10-char public id as in mobile profile',
|
||||
btn_connect: 'Connect & subscribe',
|
||||
btn_disconnect: 'Disconnect',
|
||||
btn_clear: 'Clear log',
|
||||
channel_label: 'Channel',
|
||||
log_title: 'Event log',
|
||||
log_empty: 'No messages yet. Ensure the push worker is running and the server publishes to this channel.',
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
export default {
|
||||
tip: 'Subscribe to public-game-period (global period channel) for period.tick / period.locked / period.opened / period.payout / jackpot.hit. The server must publish to this channel.',
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
export default {
|
||||
tip: 'Subscribe to public-operation-notice for broadcast notices such as notice.popout. The server must publish to this channel.',
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
export default {
|
||||
tip: 'Subscribe to private-user-{uuid}: enter the player uuid; auth uses /plugin/webman/push/auth like the mobile client. For bet.accepted, wallet.changed, etc.',
|
||||
}
|
||||
16
web/src/lang/backend/en/test/ws.ts
Normal file
16
web/src/lang/backend/en/test/ws.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
ws_connected: 'WebSocket connected',
|
||||
ws_disconnected: 'WebSocket disconnected',
|
||||
config_api: 'Config API',
|
||||
ws_url: 'WebSocket URL',
|
||||
ws_url_placeholder: 'Input ws:// or wss:// URL',
|
||||
send_message: 'Send message',
|
||||
btn_load_config: 'Load config',
|
||||
btn_connect: 'Connect',
|
||||
btn_disconnect: 'Disconnect',
|
||||
btn_send: 'Send message',
|
||||
btn_clear: 'Clear log',
|
||||
log_title: 'WebSocket log',
|
||||
log_empty: 'No logs yet. Connect first and then send a message.',
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@ export default {
|
||||
btn_draw: '预约开奖',
|
||||
calc_result_number: '计算开奖号码',
|
||||
calc_estimated_loss: '计算预估赔付',
|
||||
push_connected: '推送服务已连接,页面数据实时更新中',
|
||||
push_disconnected: '推送服务连接中断,请检查服务是否启动',
|
||||
push_connected: '实时连接已建立',
|
||||
push_disconnected: '已切换为轮询模式(无推送)',
|
||||
candidate_title: '候选号码赔付预估',
|
||||
number: '号码',
|
||||
estimated_loss: '预估赔付',
|
||||
|
||||
3
web/src/lang/backend/zh-cn/test/gameCurrentStatus.ts
Normal file
3
web/src/lang/backend/zh-cn/test/gameCurrentStatus.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tip: 'WebSocket 连接测试(状态流):按文档监听 period.tick / period.opened 等事件。',
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
export default {
|
||||
connected: '推送服务已连接(已订阅频道)',
|
||||
disconnected: '未连接或已断开',
|
||||
user_uuid: '用户 uuid',
|
||||
user_uuid_placeholder: '与移动端档案一致的 10 位对外标识',
|
||||
btn_connect: '连接并订阅',
|
||||
btn_disconnect: '断开',
|
||||
btn_clear: '清空日志',
|
||||
channel_label: '当前频道',
|
||||
log_title: '事件日志',
|
||||
log_empty: '暂无推送,请确认 push 进程已启动且服务端会向对应频道发消息。',
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
export default {
|
||||
tip: '订阅文档中的「全局对局频道」public-game-period,用于验证 period.tick / period.locked / period.opened / period.payout / jackpot.hit 等公共事件(需服务端向该频道推送)。',
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
export default {
|
||||
tip: '订阅「公告广播频道」public-operation-notice:全站公告 notice.popout 与本游戏 jackpot.hit(连胜大奖广播)均会发往此频道;需服务端推送。',
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
export default {
|
||||
tip: '订阅「用户私有频道」private-user-{uuid}:请输入玩家 uuid,连接后将走 /plugin/webman/push/auth 鉴权(与移动端一致)。用于验证 bet.accepted、wallet.changed 等私有事件。',
|
||||
}
|
||||
16
web/src/lang/backend/zh-cn/test/ws.ts
Normal file
16
web/src/lang/backend/zh-cn/test/ws.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
ws_connected: 'WebSocket 已连接',
|
||||
ws_disconnected: 'WebSocket 未连接',
|
||||
config_api: '配置接口',
|
||||
ws_url: 'WebSocket 地址',
|
||||
ws_url_placeholder: '请输入 ws:// 或 wss:// 地址',
|
||||
send_message: '发送消息',
|
||||
btn_load_config: '加载测试配置',
|
||||
btn_connect: '连接',
|
||||
btn_disconnect: '断开',
|
||||
btn_send: '发送消息',
|
||||
btn_clear: '清空日志',
|
||||
log_title: 'WebSocket 日志',
|
||||
log_empty: '暂无日志,请先连接后发送消息。',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user