下抓不走消息队列

This commit is contained in:
by 2024-09-09 09:29:51 +08:00
parent 07b985693e
commit 1a14a35da9
1 changed files with 12 additions and 10 deletions

View File

@ -141,18 +141,20 @@ func SMDollMachineGrabHandler(session *netlib.Session, packetId int, data interf
switch msg.GetTypeId() { switch msg.GetTypeId() {
case 1: case 1:
//弱抓 //弱抓
f1 := []func(){ /* f1 := []func(){
func() { machinedoll.WeakGrab(conn) }, func() { machinedoll.WeakGrab(conn) },
} }
f2 := []func(){} f2 := []func(){}
Process(conn, f1, f2) Process(conn, f1, f2)*/
machinedoll.WeakGrab(conn)
case 2: case 2:
//强力抓 //强力抓
f1 := []func(){ /* f1 := []func(){
func() { machinedoll.Grab(conn) }, func() { machinedoll.Grab(conn) },
} }
f2 := []func(){} f2 := []func(){}
Process(conn, f1, f2) Process(conn, f1, f2)*/
machinedoll.Grab(conn)
} }
return nil return nil
} }