From a159838d96da6723549f20d53a2d918e22d06b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:01:24 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(login):=20=E4=BF=AE=E5=A4=8D=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1ID=E6=89=93=E5=8D=B0=E9=94=99=E8=AF=AF=E5=B9=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=BB=E5=8A=A1=E5=AE=8C=E6=88=90=E6=A0=87?= =?UTF-8?q?=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了任务ID在打印时的索引错误,将原来的i改为312+i, 同时取消注释添加了任务314的完成状态设置 ``` --- logic/controller/login_main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logic/controller/login_main.go b/logic/controller/login_main.go index 2d392263..2649b8aa 100644 --- a/logic/controller/login_main.go +++ b/logic/controller/login_main.go @@ -68,8 +68,9 @@ func (h Controller) Login(data *user.MAIN_LOGIN_IN, c gnet.Conn) (result *user.L // for i := 0; i < 5; i++ { - // fmt.Println("任务", i, currentPlayer.Info.GetTask(312+i)) + // fmt.Println("任务", 312+i, currentPlayer.Info.GetTask(312+i)) // } + // currentPlayer.Info.SetTask(314, model.Completed) // currentPlayer.Info.SetTask(315, model.Completed) currentPlayer.IsLogin = true return result, 0