Skip to content

Commit ab4066f

Browse files
committed
音视频播放链接优化
1 parent f401ca5 commit ab4066f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

controllers/StaticController.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ func (this *StaticController) Uploads() {
4949
}
5050
}
5151

52-
if sign != "" && utils.IsSignUsed(sign) {
53-
this.Abort("404")
54-
}
52+
// if sign != "" && utils.IsSignUsed(sign) {
53+
// this.Abort("404")
54+
// }
5555
}
5656

5757
http.ServeFile(this.Ctx.ResponseWriter, this.Ctx.Request, path)
@@ -95,9 +95,9 @@ func (this *StaticController) ProjectsFile() {
9595
}
9696
}
9797

98-
if utils.IsSignUsed(sign) {
99-
this.Abort("404")
100-
}
98+
// if utils.IsSignUsed(sign) {
99+
// this.Abort("404")
100+
// }
101101

102102
if bucket, err := store.ModelStoreOss.GetBucket(); err == nil {
103103
object, _ = bucket.SignURL(object, http.MethodGet, utils.MediaDuration)

0 commit comments

Comments
 (0)