修改测试PSD

main
程祎 2023-11-06 13:45:59 +08:00
parent c8f158a5aa
commit 002522573b
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,12 @@ def parse_psd(path):
max_height = item.height
break
if is_activity_main_psd:
if max_width < 1080:
log.append("玩法活动背景过小宽度不能小于1080")
if max_height < 2700:
log.append("玩法活动背景过小高度不能小于2700")
for item in psd.descendants():
if not item.is_group():
nArr = item.name.split('_')