feat: 新增战斗效果和修复登录逻辑
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-03-08 11:22:00 +08:00
committed by cnb
parent 3dd2d40c50
commit 73d7f7f062
13 changed files with 262 additions and 179 deletions

View File

@@ -52,7 +52,7 @@ func (h Controller) Login(data *user.MAIN_LOGIN_IN, c gnet.Conn) (result *user.L
currentPlayer.Hash = hashcode
currentPlayer.Service = service.NewUserService(data.Head.UserID)
currentPlayer.Info = currentPlayer.Service.Info.SetLogin()
currentPlayer.Info = currentPlayer.Service.Info.GetLogin()
if currentPlayer.Info == nil {
defer c.Close()
return