皮肤部分拿apifox测过了

This commit is contained in:
2026-01-20 11:50:24 +08:00
parent 116612ffec
commit 432b875ba4
5 changed files with 35 additions and 23 deletions

View File

@@ -223,7 +223,7 @@ func (s *textureService) ToggleFavorite(ctx context.Context, userID, textureID i
if err != nil {
return false, err
}
if texture == nil {
if texture == nil || texture.Status != 1 || !texture.IsPublic {
return false, ErrTextureNotFound
}