权限检查修改返回结构名称,修复前端无限循环getinfo接口bug

This commit is contained in:
zhangwenjian committed 2020-04-22 23:16:20 +08:00
1 parent 02f46de17c
commit bf494c2131
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{
"status": 401, "code": 401,
"msg": "对不起,您没有该接口访问权限,请联系管理员", "msg": "对不起,您没有该接口访问权限,请联系管理员",
}) })
c.Abort() c.Abort()