Repository navigation
Conversation
- 新增 language 配置(zh-CN 默认 / en),非法值回退并告警 - get_sl_data 追加 phase_code / warhead_code,玩家项追加 role_code / team_code - 控制面与语音错误补齐稳定 code,所有 JSON 根对象追加 lang - 数据 / 控制 / 语音文本按语言本地化,zh-CN 既有输出保持不变 - 修正 error.code 推断:en 下先还原中文文本,确保中英文 code 一致 - 补充 Commands 提示、README、CHANGELOG 与回归测试
- 版本号升至 2.6.3(AssemblyVersion / FileVersion 2.6.3.0,InformationalVersion 2.6.3 Saluton),插件 Version 与启动日志同步 - CHANGELOG 将未发布条目定稿为 2.6.3 Saluton(2026-11-15),补充中英文更新说明
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
发布 2.6.3 Saluton:接口输出多语言(中文 / 英文)与稳定机器码。默认
zh-CN下所有既有输出逐字不变,旧版客户端无需改动。改动
language:zh-CN(默认)或en;非法值回退zh-CN并在启动日志告警zh-CN下 HTTP / WebSocket 输出与 2.6.2-patch 逐字一致:字段名、字段顺序、中文文本不变,新字段只追加在既有字段之后en下本插件生成的文本输出英文;玩家昵称、控制台回显、封禁 / 踢出 / 解封原因等外部内容原样透传get_sl_data根对象:phase_code(waiting/in_progress/ended)、warhead_code(inactive/armed/detonating/detonated)role_code(RoleTypeId成员名)、team_code(Team成员名)/statusspeaker 项与 WSspeaker帧:role_codecode(snake_case,如timeout/symlink_forbidden/unauthorized/forbidden/not_found/invalid_argument);既有data.code原值提升为顶层codelangen下错误码推断先还原为中文再复用同一套规则,保证中英文 code 一致;补code时只在末尾追加,不重新序列化既有字段language与 code 字段说明(中英文)2.6.3 Saluton),CHANGELOG 定稿测试
dotnet build SLDataAPI.csproj -c Release:0 错误zh-CN逐字回归、en输出、全仓中英文文案 code 一致性扫描、错误码追加不改既有字段等测试兼容说明
zh-CN下回合结束仍显示「等待开始」(phase_code=ended),核弹拉杆已拉起但未倒计时仍显示「未激活」(warhead_code=armed)language在插件启用时读取,修改后需重启服务器或重载插件