Light Beacon 2 년 전
부모
커밋
59a1412a24
1개의 변경된 파일과 3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Resources/Scripts/GetLink.py

+ 3 - 1
Resources/Scripts/GetLink.py

@@ -1,7 +1,9 @@
 from .Debug import LogWarning, LogInfo
 def script(card,arg,res):
-    name = card['version-id']
+    name:str = card['version-id']
     data = res.data[f'{arg[1]}Link']
+    if '${' in name:
+        raise KeyError()
     if arg[1] == 'Mcbbs' and name not in data:
         LogInfo(f'尝试获取MCBBS链接 {name},但未找到,由于 MCBBS 关站,返回空值以抑制 Warning')
         return ''