Fix: The edit interface is not billed (usage-based pricing).

This commit is contained in:
xqx121
2025-06-02 22:11:11 +08:00
committed by GitHub
parent 611d77e1a9
commit 37caafc722

View File

@@ -41,6 +41,9 @@ func getAndValidImageRequest(c *gin.Context, info *relaycommon.RelayInfo) (*dto.
imageRequest.Quality = "standard"
}
}
if imageRequest.N == 0 {
imageRequest.N = 1
}
default:
err := common.UnmarshalBodyReusable(c, imageRequest)
if err != nil {