1
This commit is contained in:
@@ -212,9 +212,9 @@ def build_resource_signed_url(
|
||||
|
||||
http://www.test6.com/generation/video/a.mp4?from=history&exp=1780000000&sign=xxxx
|
||||
"""
|
||||
if not resource_url:
|
||||
if not resource_url or not resource_url.startswith("/generate/"):
|
||||
return resource_url
|
||||
|
||||
|
||||
seconds = _get_sign_expire_seconds(expire_seconds)
|
||||
current_ts = _to_int(now_ts, int(time.time())) if now_ts is not None else int(time.time())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user