release v4.0.3

This commit is contained in:
RockYang
2024-04-15 08:26:07 +08:00
parent a7237fe62f
commit fbfa2a71a9
5 changed files with 23 additions and 62 deletions

View File

@@ -125,7 +125,7 @@ func (h *MidJourneyHandler) Image(c *gin.Context) {
params += fmt.Sprintf(" --c %d", data.Chaos)
}
if len(data.ImgArr) > 0 && data.Iw > 0 {
params += fmt.Sprintf(" --iw %f", data.Iw)
params += fmt.Sprintf(" --iw %.2f", data.Iw)
}
if data.Raw {
params += " --style raw"