美化绘画IU

This commit is contained in:
CaIon
2023-12-14 15:16:51 +08:00
parent 261dc43c4e
commit 0fdd4fc6e3
3 changed files with 55 additions and 50 deletions

View File

@@ -187,6 +187,12 @@ func GetUserMidjourney(c *gin.Context) {
if logs == nil {
logs = make([]*model.Midjourney, 0)
}
if !strings.Contains(common.ServerAddress, "localhost") {
for i, midjourney := range logs {
midjourney.ImageUrl = common.ServerAddress + "/mj/image/" + midjourney.MjId
logs[i] = midjourney
}
}
c.JSON(200, gin.H{
"success": true,
"message": "",