"refactor(vscode): 移除项目中的VSCode特定GOROOT配置"
This commit is contained in:
@@ -46,9 +46,9 @@ func (h *Controller) QuitSelf(a int) error {
|
||||
for {
|
||||
|
||||
//entity.ConutPlayer()
|
||||
fmt.Println("当前在线人数", entity.ConutPlayer())
|
||||
fmt.Println("当前在线人数", cool.ConutPlayer())
|
||||
|
||||
if entity.ConutPlayer() <= 0 {
|
||||
if cool.ConutPlayer() <= 0 {
|
||||
//执行退出逻辑
|
||||
os.Exit(1)
|
||||
}
|
||||
@@ -165,13 +165,13 @@ func getcmd(t reflect.Type) uint32 {
|
||||
// 遍历结构体方法并执行RECV_cmd
|
||||
func Recv(c gnet.Conn, data handler.TomeeHeader) {
|
||||
|
||||
tt, ok := cool.CmdCache.Load(data.CMD)
|
||||
cmdlister, ok := cool.CmdCache.Load(data.CMD)
|
||||
if !ok {
|
||||
|
||||
glog.Error(context.Background(), data.CMD, "cmd未注册")
|
||||
return //TODO 待实现cmd未注册
|
||||
}
|
||||
cmdlister := tt.(reflect.Value)
|
||||
|
||||
// fmt.Println(cmdlister)
|
||||
|
||||
params := []reflect.Value{}
|
||||
|
||||
Reference in New Issue
Block a user