"refactor(vscode): 移除项目中的VSCode特定GOROOT配置"

This commit is contained in:
1
2025-07-25 06:22:16 +00:00
parent 7a0d6d9556
commit 43dc9394c5
7 changed files with 68 additions and 67 deletions

View File

@@ -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{}