# -*- coding: utf-8 -*- """ 生成团队专家专属专业徽章与法定资质证书矢量图 """ import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) TARGET_DIR = os.path.join(BASE_DIR, 'public', 'assets', 'addons', 'official', 'images', 'showcases') os.makedirs(TARGET_DIR, exist_ok=True) # 1. 首席系统架构师徽章 team_architect_svg = ''' 架构 ''' # 2. 全栈研发总监徽章 team_fullstack_svg = ''' 全栈 ''' # 3. AI 智能体专家徽章 team_ai_svg = ''' 算法 ''' # 4. 安全合规与质控专家徽章 team_security_svg = ''' 安全 ''' # 5. 国家高新技术企业权威证书徽标 cert_hi_tech_svg = ''' 国家高新技术企业 HIGH-TECH ENTERPRISE ''' # 6. ISO9001 质量认证权威徽标 cert_iso9001_svg = ''' ISO ISO 9001 认证 QUALITY MANAGEMENT ''' badges = { 'team_architect.svg': team_architect_svg, 'team_fullstack.svg': team_fullstack_svg, 'team_ai.svg': team_ai_svg, 'team_security.svg': team_security_svg, 'cert_hi_tech.svg': cert_hi_tech_svg, 'cert_iso9001.svg': cert_iso9001_svg } for name, content in badges.items(): p = os.path.join(TARGET_DIR, name) with open(p, 'w', encoding='utf-8') as f: f.write(content.strip()) print(f"Generated badge: {name}") print("All badges generated successfully!")