fix: 修复mj错误返还费用问题

This commit is contained in:
CaIon
2024-01-12 13:45:52 +08:00
parent 312417f393
commit 2a9c3ac6af
3 changed files with 26 additions and 7 deletions

View File

@@ -544,6 +544,7 @@ func relayMidjourneySubmit(c *gin.Context, relayMode int) *MidjourneyResponse {
Progress: "0%",
FailReason: "",
ChannelId: c.GetInt("channel_id"),
Quota: quota,
}
if midjResponse.Code != 1 && midjResponse.Code != 21 && midjResponse.Code != 22 {