Modify unauthorized code

This commit is contained in:
wenjianzhang authored and GitHub committed 2020-05-04 22:11:40 +08:00
1 parent 0b7458b602
commit 8d0f2fe5df
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ func AuthCheckRole() gin.HandlerFunc {
c.Next() c.Next()
} else { } else {
c.JSON(http.StatusOK, gin.H{ c.JSON(http.StatusOK, gin.H{
"code": 401, "code": 403,
"msg": "对不起,您没有该接口访问权限,请联系管理员", "msg": "对不起,您没有该接口访问权限,请联系管理员",
}) })
c.Abort() c.Abort()