fix: mj 错误处理

This commit is contained in:
Xyfacai
2024-01-14 16:17:45 +08:00
parent f2dd8d7bc3
commit 36c7cf6cc5
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -78,6 +78,7 @@ func RelayMidjourneyImage(c *gin.Context) {
c.JSON(http.StatusInternalServerError, gin.H{
"error": "http_get_image_failed",
})
return
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {