obtain user login device information

This commit is contained in:
landaiqing
2024-09-02 02:24:46 +08:00
parent 6e47e72514
commit a925bbc871
19 changed files with 327 additions and 46 deletions

View File

@@ -18,6 +18,7 @@ func main() {
core.InitIDGenerator() // 初始化ID生成器
core.InitWechat() // 初始化微信
core.InitCasbin() // 初始化Casbin
core.InitIP2Region() // 初始化IP2Region
// 命令行参数绑定
option := cmd.Parse()
if cmd.IsStopWeb(&option) {
@@ -26,7 +27,7 @@ func main() {
}
r := router.InitRouter() // 初始化路由
addr := global.CONFIG.System.Addr()
global.LOG.Info("Server run on ", addr)
err := r.Run(addr)
if err != nil {
global.LOG.Fatalf(err.Error())