Compare commits

..

No commits in common. "c33fa0638260cc79ad9fd00f15aa2645f467794e" and "6c7575c4ec85f355cd661791b6457a879567d57c" have entirely different histories.

2 changed files with 0 additions and 5 deletions

View File

@ -77,7 +77,6 @@ func NewRouter() *gin.Engine {
privateGroup.POST("generate/captcha", account.GenerateCaptcha) //生成滑块验证码
privateGroup.POST("validate/captcha", account.ValidateCaptcha) //验证滑块验证码
privateGroup.POST("check/register", account.CheckRegister) //校验是否注册
privateGroup.GET("get/ip", account.GetIP)
acRoute := privateGroup.Group("/user")
acRoute.Use(middleware.CheckLogin(service.AccountFieeProvider))
{

View File

@ -577,10 +577,6 @@ func CheckRegister(c *gin.Context) {
service.Success(c, res)
return
}
func GetIP(c *gin.Context) {
ip := c.ClientIP()
service.Success(c, ip)
}
func UserLogout(c *gin.Context) {
req := account.DecryptJwtRequest{}
req.Token = c.GetHeader(e.Authorization)