fix(fight): 修正空变更导致的潜在逻辑问题

This commit is contained in:
1
2025-11-30 04:57:48 +00:00
parent c55a1fd5fb
commit 1938346e89
5 changed files with 124 additions and 65 deletions

View File

@@ -15,8 +15,14 @@ import (
// var Limiter = limit.New()
var ctx = context.TODO()
type Cmd struct {
Func reflect.Value //方法函数
Req reflect.Type //请求体
//Res reflect.Value //返回体
}
var (
CmdCache = &utils.SyncMap[uint32, reflect.Value]{} //命令缓存
CmdCache = &utils.SyncMap[uint32, Cmd]{} //命令缓存
Loger = glog.New()
Cron = cronex.New() //时间轮