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

@@ -13,6 +13,7 @@ import (
"log"
"net"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/util/gconv"
)
@@ -55,6 +56,10 @@ func isPortAvailable(port uint32) bool {
func Start(serverID uint16) {
// 确定端口
r := blservice.NewLoginServiceService().GetServerID(serverID)
if r.IsVip == 1 {
g.DB().SetDebug(true)
}
port, err := determinePort(r.CanPort)
if err != nil {
log.Fatalf("Failed to determine port: %v", err)