refactor(logic): 优化登录流程和数据处理

- 在 controller 中添加默认成功结果初始化
- 修改 login 中的用户登录逻辑,移除硬编码的用户 ID 和结果代码
- 在 LoginSidInfo 中添加默认返回数据的方法,简化数据处理流程
This commit is contained in:
2025-08-13 23:37:16 +08:00
parent d89769731c
commit f440b88f8e
3 changed files with 18 additions and 5 deletions

View File

@@ -220,7 +220,7 @@ func Recv(c *entity.Conn, data handler.TomeeHeader) {
return
}
data.Result = 0 //默认成功
c.SendPack(data.Pack(ret[0].Interface()))
}