Commit b914175a by Li Feifei

debug

parent 19d2614a
Pipeline #15696 passed with stages
in 36 seconds
......@@ -36,7 +36,7 @@ func (f *fileService) Upload(file *file.ObtainFile) {
case <-f.Ok:
// 上传成功
count, err := dao.XyuRoomFile.Where(dao.XyuRoomFile.Columns.RoomId, room.Id).
Where(dao.XyuRoomFile.Columns.Name, file.FileName()).Count()
Where(dao.XyuRoomFile.Columns.Name, file.R.Name).Count()
if err != nil {
g.Log().Async().Errorf("Mysql Err: %s\n", err)
return
......
......@@ -220,10 +220,6 @@ func (f *ObtainFile) Worker(err error) {
g.Log().Async().Infof("[4] file: %s upload success!", f.parser.filename())
}
func (f *ObtainFile) FileName() string {
return f.parser.filename()
}
// 上传失败通知
func (f *ObtainFile) Fail() {
if err := f.n.notice("/web/room_files_error", g.Map{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment