@@ -492,7 +492,7 @@ func WechatLogin(c *gin.Context) {
fmt.Println("token:", item.Errmsg)
fmt.Println("token:", item.Errcode)
if item.Errcode != 0 {
- response.Fail(err.Error(), c)
+ response.Fail(item.Errmsg, c)
return
}