diff --git a/app/hdl/hdl_login.go b/app/hdl/hdl_login.go index f823304..b80dc5f 100644 --- a/app/hdl/hdl_login.go +++ b/app/hdl/hdl_login.go @@ -1,6 +1,7 @@ package hdl import ( + implement3 "applet/app/db/implement" "applet/app/e" "applet/app/lib/validate" "applet/app/md" @@ -16,6 +17,16 @@ import ( "time" ) +func LoginBase(c *gin.Context) { + NewSysCfgDb := implement3.NewSysCfgDb(svc.MasterDb(c), c.GetString("mid")) + logo := NewSysCfgDb.SysCfgGetWithDb("agent_logo") + res := map[string]string{ + "logo": logo, + } + e.OutSuc(c, res, nil) + return +} + // Login 登陆 // @Summary 登陆 // @Tags ADMIN diff --git a/app/router/router.go b/app/router/router.go index 43e5729..7d8a3f1 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -54,6 +54,7 @@ func route(r *gin.RouterGroup) { r.POST("/qiniuyun/callback", hdl.FileImgCallback) //七牛云回调 r.Use(mw.DB) // 以下接口需要用到数据库 { + r.GET("/base", hdl.LoginBase) r.POST("/login", hdl.Login) r.POST("/login/phone", hdl.LoginPhone) r.POST("/register", hdl.Register)