Commit b73fef70 authored by 黄智's avatar 黄智

调整未登陆状态码

parent d2b118c1
......@@ -18,7 +18,7 @@ func SetContext(c *gin.Context) {
svc := service.UserSvc{}
m, err := svc.GetCurUser(bgToken)
if err != nil {
c.String(500, "用户未登录!")
c.String(401, "用户未登录!")
c.Abort()
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment