娃娃机
This commit is contained in:
parent
3b2c207627
commit
33e82b0095
|
|
@ -160,11 +160,6 @@ func SMDollMachineGrabHandler(session *netlib.Session, packetId int, data interf
|
||||||
f2 := []func(){}
|
f2 := []func(){}
|
||||||
Process(conn, f1, f2)
|
Process(conn, f1, f2)
|
||||||
}
|
}
|
||||||
err := conn.SetDeadline(time.Now().Add(15 * time.Second))
|
|
||||||
if err != nil {
|
|
||||||
fmt.Println("Error setting deadline:", err)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -205,7 +200,6 @@ func DollMachineGrabResult(session *netlib.Session, conn *machinedoll.Conn, snid
|
||||||
TypeId: 2,
|
TypeId: 2,
|
||||||
})
|
})
|
||||||
fmt.Println("没有抓到礼品!!!!!!!!snid = ", snid)
|
fmt.Println("没有抓到礼品!!!!!!!!snid = ", snid)
|
||||||
conn.SetDeadline(time.Time{})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if bytes.Contains(part, instruction1) && num != 1 {
|
if bytes.Contains(part, instruction1) && num != 1 {
|
||||||
|
|
@ -223,7 +217,6 @@ func DollMachineGrabResult(session *netlib.Session, conn *machinedoll.Conn, snid
|
||||||
TypeId: 2,
|
TypeId: 2,
|
||||||
})
|
})
|
||||||
fmt.Println("抓到礼品了!!!!!!!!snid = ", snid)
|
fmt.Println("抓到礼品了!!!!!!!!snid = ", snid)
|
||||||
conn.SetDeadline(time.Time{})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//上分成功
|
//上分成功
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue