Commit 16f49cfe by Calcium-Ion Committed by GitHub

Merge pull request #1141 from xqx121/patch-1

Fix: The edit interface is not billed (usage-based pricing).
parents 46f95fdd f234b3f1
...@@ -41,6 +41,9 @@ func getAndValidImageRequest(c *gin.Context, info *relaycommon.RelayInfo) (*dto. ...@@ -41,6 +41,9 @@ func getAndValidImageRequest(c *gin.Context, info *relaycommon.RelayInfo) (*dto.
imageRequest.Quality = "standard" imageRequest.Quality = "standard"
} }
} }
if imageRequest.N == 0 {
imageRequest.N = 1
}
default: default:
err := common.UnmarshalBodyReusable(c, imageRequest) err := common.UnmarshalBodyReusable(c, imageRequest)
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment