This commit is contained in:
richboo111
2022-08-15 16:45:36 +08:00
parent 48e4753a2a
commit 2e28867bc7

View File

@@ -307,6 +307,7 @@ func (c *EventController) UploadAudio() {
}
defer f.Close()
io.Copy(f, file)
globals.SugarLogger.Debug("打印一下f========", f, file)
c.SaveToFile("rsmAudio", "/jxdata/cthrgw/dist/audio/"+timeStr+"/"+fileName)
return &model.ImMessageRecord{
Content: "https://www.jxcs.net/audio/" + timeStr + "/" + fileName,