This commit is contained in:
2026-07-22 12:01:46 +08:00
parent 1cb957d20d
commit def054c147
@@ -212,9 +212,9 @@ def build_resource_signed_url(
http://www.test6.com/generation/video/a.mp4?from=history&exp=1780000000&sign=xxxx 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 return resource_url
seconds = _get_sign_expire_seconds(expire_seconds) 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()) current_ts = _to_int(now_ts, int(time.time())) if now_ts is not None else int(time.time())