Gogs 4 months ago
parent
commit
58f4c0cc37
2 changed files with 5 additions and 5 deletions
  1. 2 3
      bin/client_msg/msg.ts
  2. 3 2
      src/server/msg/msg.go

+ 2 - 3
bin/client_msg/msg.ts

@@ -16,7 +16,6 @@ export enum MsgID {
     ReqDealCard = 13,
     ReqPlayerAction = 14,
     ResPlayerOptAction = 15,
-    PlayerOpt = 16,
-    ReqRound = 17,
-    MsgError = 18,
+    ReqRound = 16,
+    ReqPlayerList = 17,
 }

+ 3 - 2
src/server/msg/msg.go

@@ -37,9 +37,10 @@ func init() {
 	Processor.Register(&ReqPlayerAction{})
 	Processor.Register(&ResPlayerOptAction{})
 	// Processor.Register(&PlayerOptType{})
-	Processor.Register(&PlayerOpt{})
+	// Processor.Register(&PlayerOpt{})
 	Processor.Register(&ReqRound{})
-	Processor.Register(&MsgError{})
+	// Processor.Register(&MsgError{})
+	Processor.Register(&ReqPlayerList{})
 	Processor.Range(func(id uint16, t reflect.Type) {
 		log.Debug("消息ID: %d, 消息类型: %s\n", id, t.Elem().Name())
 		msgList = append(msgList, MsgInfo{