master
wubin 5 years ago
parent 8dfceb8620
commit cd1c337a0a

@ -141,6 +141,12 @@ func roleIdLimitIsLegal(c *gin.Context, interName string, n int) (bool, ResultSt
if !Reply.Success {
resultStruct.HttpType = httpType
resultStruct.Message = Reply.Message
//清cookie
c.SetCookie("person_id", "", -1, "/", "", false, true)
c.SetCookie("identity_id", "", -1, "/", "", false, true)
c.SetCookie("token", "", -1, "/", "", false, true)
return false, resultStruct
}
return true, resultStruct

Loading…
Cancel
Save