a
This commit is contained in:
@@ -309,10 +309,10 @@ func (c *EventController) UploadAudio() {
|
|||||||
defer f.Close()
|
defer f.Close()
|
||||||
io.Copy(f, file)
|
io.Copy(f, file)
|
||||||
globals.SugarLogger.Debug("打印一下f========", f, file)
|
globals.SugarLogger.Debug("打印一下f========", f, file)
|
||||||
c.SaveToFile("rsmAudio", filePath+fileName)
|
//c.SaveToFile("rsmAudio", filePath+fileName)
|
||||||
return &model.ImMessageRecord{
|
return &model.ImMessageRecord{
|
||||||
Content: "https://www.jxcs.net/jxdata/cthrgw/dist/audio/" + timeStr + "/" + fileName,
|
//Content: "https://www.jxcs.net/jxdata/cthrgw/dist/audio/" + timeStr + "/" + fileName,
|
||||||
//Content: "https://www.jxcs.net/audio/" + timeStr + "/" + fileName,
|
Content: "https://www.jxcs.net/audio/" + timeStr + "/" + fileName,
|
||||||
}, "", err
|
}, "", err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user