|
|
@@ -67,8 +67,8 @@ class CardDecodeUtils(DecodeCardConst):
|
|
|
|
|
|
@staticmethod
|
|
|
def _normalize_cover_url(url: str) -> str:
|
|
|
- """不以 https: 开头的封面 URL 拼接 CDN 前缀"""
|
|
|
- if not url.startswith("http:"):
|
|
|
+ """不以 http:// 或 https:// 开头的相对路径拼接 CDN 前缀"""
|
|
|
+ if not (url.startswith("https://") or url.startswith("http://")):
|
|
|
return f"{CardDecodeUtils.COVER_CDN_PREFIX}{url}"
|
|
|
return url
|
|
|
|