No need to login with Stable-Diffusion page and Invite page

This commit is contained in:
RockYang
2024-03-23 15:45:37 +08:00
parent 81545d192b
commit 6dbf61d4e4
5 changed files with 504 additions and 475 deletions

View File

@@ -33,6 +33,8 @@ func (h *PowerLogHandler) List(c *gin.Context) {
}
session := h.DB.Session(&gorm.Session{})
userId := h.GetLoginUserId(c)
session = session.Where("user_id", userId)
if data.Model != "" {
session = session.Where("model", data.Model)
}