Merge remote-tracking branch 'songquanpeng/main'

# Conflicts:
#	controller/relay-text.go
This commit is contained in:
quzard
2023-06-21 17:51:16 +08:00
3 changed files with 59 additions and 6 deletions

View File

@@ -100,7 +100,7 @@ func TokenAuth() func(c *gin.Context) {
c.Abort()
return
}
if !model.IsUserEnabled(token.UserId) {
if !model.CacheIsUserEnabled(token.UserId) {
c.JSON(http.StatusOK, gin.H{
"error": gin.H{
"message": "用户已被封禁",