Commit f9966763 authored by shajiaiming's avatar shajiaiming

fix

parent 994fa851
...@@ -51,15 +51,15 @@ func GetCoin(c *gin.Context) { ...@@ -51,15 +51,15 @@ func GetCoin(c *gin.Context) {
} }
func GetCoins(c *gin.Context) { func GetCoins(c *gin.Context) {
token := c.Request.Header.Get("Token") //token := c.Request.Header.Get("Token")
authService := auth_service.Auth{Token: token} //authService := auth_service.Auth{Token: token}
auth, _ := authService.GetUserInfo() //auth, _ := authService.GetUserInfo()
group := auth.Group //group := auth.Group
//
if ("administrator" != group) { //if ("administrator" != group) {
handler.SendResponse(c, errno.ErrUserAuthIncorrect, nil) // handler.SendResponse(c, errno.ErrUserAuthIncorrect, nil)
return // return
} //}
valid := validation.Validation{} valid := validation.Validation{}
......
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