fix🐛: 添加roleKey验证(#649)

This commit is contained in:
zhangwenjian committed 2022-05-27 22:47:57 +08:00
1 parent c41672c21a
commit 6ed2fcbf6c
2 files changed
+13 -1

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ func (e SysRole) Insert(c *gin.Context) {
err = s.Insert(&req, cb)
if err != nil {
e.Logger.Error(err)
e.Error(500, err, "创建失败")
e.Error(500, err, "创建失败,"+err.Error())
return
}
_, err = global.LoadPolicy(c)