Commit f9966763 authored by shajiaiming's avatar shajiaiming

fix

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