From 1a14a35da9b9f6be1d5d7cbecbae2eb38bb82509 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Mon, 9 Sep 2024 09:29:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=8A=93=E4=B8=8D=E8=B5=B0=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- machine/action/action_server.go | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/machine/action/action_server.go b/machine/action/action_server.go index 2eb245c..a1b1a54 100644 --- a/machine/action/action_server.go +++ b/machine/action/action_server.go @@ -141,18 +141,20 @@ func SMDollMachineGrabHandler(session *netlib.Session, packetId int, data interf switch msg.GetTypeId() { case 1: //弱抓 - f1 := []func(){ - func() { machinedoll.WeakGrab(conn) }, - } - f2 := []func(){} - Process(conn, f1, f2) + /* f1 := []func(){ + func() { machinedoll.WeakGrab(conn) }, + } + f2 := []func(){} + Process(conn, f1, f2)*/ + machinedoll.WeakGrab(conn) case 2: //强力抓 - f1 := []func(){ - func() { machinedoll.Grab(conn) }, - } - f2 := []func(){} - Process(conn, f1, f2) + /* f1 := []func(){ + func() { machinedoll.Grab(conn) }, + } + f2 := []func(){} + Process(conn, f1, f2)*/ + machinedoll.Grab(conn) } return nil }