feat(vscode): 添加调试参数配置

为launch.json添加-debug=1参数,便于调试模式启动

docs(README): 补充zellij终端复用工具使用说明

添加x-cmd安装和zellij会话管理相关命令示例

refactor(config): 注释掉GamePort配置项

暂时注释GamePort配置项以解决配置冲突问题

refactor(xmlres): 移除未使用的gf框架依赖
This commit is contained in:
2026-01-01 22:19:00 +08:00
parent dd28d48ca4
commit 3e55b0f481
13 changed files with 72 additions and 87 deletions

View File

@@ -8,10 +8,6 @@ import (
"os"
"github.com/ECUST-XX/xml"
"github.com/gogf/gf/v2/os/gctx"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gfsnotify"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gres"
"github.com/gogf/gf/v2/util/gconv"
)
@@ -140,42 +136,42 @@ func Initfile() {
}
func init() {
// func init() {
go func() {
// go func() {
if !gfile.Exists(path) {
fileHandle, _ := gfile.Create(path)
fileHandle.Close()
}
// if !gfile.Exists(path) {
// fileHandle, _ := gfile.Create(path)
// fileHandle.Close()
// }
//updatersares()
ctx := gctx.New()
_, err := gfsnotify.Add(path, func(event *gfsnotify.Event) {
if event.IsCreate() {
glog.Debug(ctx, "创建文件 : ", event.Path)
}
if event.IsWrite() {
glog.Debug(ctx, "写入文件 : ", event.Path)
//initfile() //先初始化一次
}
if event.IsRemove() {
glog.Debug(ctx, "删除文件 : ", event.Path)
}
if event.IsRename() {
glog.Debug(ctx, "重命名文件 : ", event.Path)
}
if event.IsChmod() {
glog.Debug(ctx, "修改权限 : ", event.Path)
}
glog.Debug(ctx, event)
})
// //updatersares()
// ctx := gctx.New()
// _, err := gfsnotify.Add(path, func(event *gfsnotify.Event) {
// if event.IsCreate() {
// glog.Debug(ctx, "创建文件 : ", event.Path)
// }
// if event.IsWrite() {
// glog.Debug(ctx, "写入文件 : ", event.Path)
// //initfile() //先初始化一次
// }
// if event.IsRemove() {
// glog.Debug(ctx, "删除文件 : ", event.Path)
// }
// if event.IsRename() {
// glog.Debug(ctx, "重命名文件 : ", event.Path)
// }
// if event.IsChmod() {
// glog.Debug(ctx, "修改权限 : ", event.Path)
// }
// glog.Debug(ctx, event)
// })
if err != nil {
glog.Fatal(ctx, err)
} else {
select {}
}
}()
// if err != nil {
// glog.Fatal(ctx, err)
// } else {
// select {}
// }
// }()
}
// }