|
@ -19,7 +19,7 @@ var userService = service.ServiceGroupApp.SystemServiceGroup.UserService |
|
|
func ErrorToEmail() gin.HandlerFunc { |
|
|
func ErrorToEmail() gin.HandlerFunc { |
|
|
return func(c *gin.Context) { |
|
|
return func(c *gin.Context) { |
|
|
var username string |
|
|
var username string |
|
|
claims := utils2.GetClaims(c) |
|
|
|
|
|
|
|
|
claims, _ := utils2.GetClaims(c) |
|
|
if claims.Username != "" { |
|
|
if claims.Username != "" { |
|
|
username = claims.Username |
|
|
username = claims.Username |
|
|
} else { |
|
|
} else { |
|
|