package utils import "github.com/gofiber/fiber/v2" // MainAppExec 仅主进程执行 忽略子进程 func MainAppExec(fn func()) { if !fiber.IsChild() { fn() } }