fix: 第三方登录注销 #500

This commit is contained in:
1808837298@qq.com committed 2024-09-25 17:15:59 +08:00
1 parent fd2379e807
commit 85dfe50399
2 files changed
+15

No files matched your search

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