修复用户发布下架后审核还有的bug

This commit is contained in:
yml2213
2026-06-07 22:07:54 +08:00
parent a8b3d3813b
commit ebf9b95f5a
5 changed files with 457 additions and 57 deletions
+3 -2
View File
@@ -254,11 +254,12 @@ func (h *Handler) Offline(c *gin.Context) {
if !ok {
return
}
if err := h.service.Offline(ownerID, id); err != nil {
item, err := h.service.Offline(ownerID, id)
if err != nil {
writeListingError(c, err)
return
}
response.OK(c, gin.H{"offline": true})
response.OK(c, item)
}
func (h *Handler) ListPublic(c *gin.Context) {