| | |
| | | util.ResponseFormat(c, code.RequestParamError, "参数有误") |
| | | return |
| | | } |
| | | if strings.HasPrefix(cid, File_Video_Id_Pre) || strings.HasPrefix(cid, File_Video_Id_Pre) || strings.HasPrefix(cid, File_Video_Id_Pre) { |
| | | if strings.HasPrefix(cid, File_Video_Id_Pre) || strings.HasPrefix(cid, File_Img_Id_Pre) || strings.HasPrefix(cid, File_Audio_Id_Pre) { |
| | | var fileApi dbapi.FileAnalysisApi |
| | | b, d := fileApi.Show(cid) |
| | | if b { |
| | |
| | | "cameraId": cid, |
| | | "snapshotUrl": file.SnapshotUrl, |
| | | }) |
| | | return |
| | | } else { |
| | | util.ResponseFormat(c, code.ComError, "更新失败") |
| | | return |