fix(fight): 修正空变更导致的潜在逻辑问题
This commit is contained in:
@@ -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() //时间轮
|
||||
|
||||
@@ -49,7 +49,7 @@ var s = `
|
||||
|
||||
func Test_main(t *testing.T) {
|
||||
|
||||
initfile()
|
||||
// initfile()
|
||||
fmt.Println(SkillMap[10073])
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user