aa
This commit is contained in:
@@ -66,7 +66,7 @@ type ImMessageRecord struct {
|
||||
Seq int `json:"seq"`
|
||||
Weight int `json:"weight"`
|
||||
Height int `json:"height"`
|
||||
// Audio []byte `json:"audio"`
|
||||
AudioLength int `json:"audioLength"`
|
||||
Key string `orm:"-" json:"key"`
|
||||
UserInfo *GetUserResult `orm:"-" json:"userInfo"`
|
||||
}
|
||||
|
||||
@@ -407,6 +407,6 @@ func (c *EventController) UploadAudio() {
|
||||
}
|
||||
defer f.Close()
|
||||
io.Copy(f, file)
|
||||
return "https://www.jxcs.net/audio/" + fileName, "", err
|
||||
return "https://www.jxcs.net/audio/" + timeStr + "/" + fileName, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user