|
@@ -78,6 +78,13 @@ func WeChatAuth(c *gin.Context) {
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if user.Id == 0 {
|
|
|
|
|
+ c.JSON(http.StatusOK, gin.H{
|
|
|
|
|
+ "success": false,
|
|
|
|
|
+ "message": "用户已注销",
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
if common.RegisterEnabled {
|
|
if common.RegisterEnabled {
|
|
|
user.Username = "wechat_" + strconv.Itoa(model.GetMaxUserId()+1)
|
|
user.Username = "wechat_" + strconv.Itoa(model.GetMaxUserId()+1)
|