fix: 补 .gitattributes(CRLF for .bat) + README 端口 19540 + 提交 console 锁文件

This commit is contained in:
AskaEth committed 2026-09-09 20:57:58 +08:00
1 parent c121111f51
commit b80c64a115
39 files changed
+4217 -345

No files matched your search

+3 -1
View File
@@ -84,6 +84,9 @@ func encode(event string, data any) ([]byte, error) {
}
// helloPayload 是 C→S 的 hello 载荷。
//
// role 只是「申请」:服务端以会话身份为准,未登录连接申请 admin 会被拒绝,
// 因此这里没有 userId —— 定向房间的 userId 只能来自会话。
// instanceId / page 是协议字段之外的可选扩展:注册表要记「谁在线、在哪一页」,
// 老客户端不带这两个字段也能正常工作。
type helloPayload struct {
@@ -91,7 +94,6 @@ type helloPayload struct {
LastVersion *int64 `json:"lastVersion,omitempty"`
DisplayKey string `json:"displayKey,omitempty"`
InstanceID string `json:"instanceId,omitempty"`
UserID int64 `json:"userId,omitempty"`
Page string `json:"page,omitempty"`
}