修改检测工具,添加缩略图

main
程祎 2023-11-08 14:05:49 +08:00
parent 66d386fa9a
commit 3ec86e9844
3 changed files with 7 additions and 2 deletions

View File

@ -31,6 +31,7 @@ def parse_psd(path):
has_base = False
has_finish = False
has_thumbnail = False
lines = {}
patch_stages = {}
bad_stages = {}
@ -112,7 +113,8 @@ def parse_psd(path):
auto_stages[nArr[1]].append(nArr[2])
elif nArr[0] == 'thumbnail' or nArr[0] == 'role' or nArr[0] == 'rptmp':
pass
if nArr[0] == 'thumbnail':
has_thumbnail = True
elif is_activity_main_psd and nArr[0] == 'entry':
if len(nArr) != 3:
log.append("活动子点位,命名错误:{}".format(item.name))
@ -140,6 +142,9 @@ def parse_psd(path):
if not is_activity_main_psd and not has_finish:
log.append("未检测到finish图层\n")
if is_activity_main_psd and not has_thumbnail:
log.append("未检测到 缩略图 图层\n")
for stage in patch_stages:
tmp = {}
for item in patch_stages[stage]:

View File

@ -1629,7 +1629,7 @@
"9": "8763b1aaa2f9e912fafc62d8ece7936e2b6715a6",
"90": "2501bfb8d3b01598d3bb57a7dc54c518ca62e228",
"900": "2539dfe26204667c84db16b49ba9cae98289e633",
"90000": "1e82dd216e505aeb518af281aa9b02756e164416",
"90000": "e8f49930b0c9b7b2aef6875e58801018afa06df6",
"90001": "e8f49930b0c9b7b2aef6875e58801018afa06df6",
"901": "d17f1c1954d16b9adfae896ffb79235601c14226",
"902": "7db0cd70ad3bfda76b59bdfa3bfd89e0c5e84294",