This commit is contained in:
苏尹岚
2020-12-15 11:00:49 +08:00
parent a907462a0a
commit edff9daa62

View File

@@ -407,6 +407,9 @@ func (c *EventController) UploadAudio() {
}
defer f.Close()
io.Copy(f, file)
return "https://www.jxcs.net/audio/" + timeStr + "/" + fileName, "", err
return &model.ImMessageRecord{
Content: "https://www.jxcs.net/audio/" + timeStr + "/" + fileName,
}, "", err
})
}