master
huanghai 5 years ago
parent af6afea195
commit 4ff24c482a

@ -46,13 +46,9 @@ func SsoHandler() gin.HandlerFunc {
value := cookie.Value
if len(value) == 0 {
cookie.Value = CommonUtil.GetUUID()
}else{
fmt.Println("cookie.value="+cookie.Value)
}
http.SetCookie(c.Writer, cookie)
c.SetCookie("browser_id", CommonUtil.GetUUID(), 0, "/", "", false, true)
}
//获取访问的完整地址(包括参数)
requestUri := c.Request.RequestURI
host := c.Request.Host

@ -39,7 +39,6 @@ func GinRouter(r *gin.Engine) {
BaseStudentController.Routers(rr)
//t_sys_loginperson 登录
SysLoginpersonController.Routers(rr)
//人员角色
BaseRolePersonController.Routers(rr)
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1539,7 +1539,7 @@ definitions:
example: "true"
type: boolean
type: object
host: 127.0.0.1:8002
host: 10.10.14.187:8002
info:
contact:
email: support@swagger.io

@ -31,7 +31,7 @@ import (
// @contact.email support@swagger.io
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host 127.0.0.1:8002
// @host 10.10.14.187:8002
func main() {
// 发布模式
//gin.SetMode(gin.ReleaseMode)
@ -65,8 +65,6 @@ func main() {
//前台页面目录
r.Static("/dsBaseWeb", "./Html")
//参数有效性验证拦截器
r.Use(Handler.ParameterHandler())
//主路由

Loading…
Cancel
Save