refactor: 将端口和在线ID类型从uint16改为uint32
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
This commit is contained in:
@@ -34,9 +34,9 @@ type QuitSReq struct {
|
||||
|
||||
func (this *ServerController) Quit(ctx context.Context, req *QuitSReq) (res *cool.BaseRes, err error) {
|
||||
res = &cool.BaseRes{}
|
||||
serv := service.NewServerService().GetServerID(uint16(req.ID))
|
||||
serv := service.NewServerService().GetServerID(req.ID)
|
||||
|
||||
aa, ok := cool.GetClient(serv.Port)
|
||||
aa, ok := cool.GetClient(serv.OnlineID*100000 + serv.Port)
|
||||
if ok && aa != nil { //如果已经存在且这个端口已经被存过
|
||||
aa.QuitSelf(req.Code)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user