diff --git a/docker/it-tools-relay/server.py b/docker/it-tools-relay/server.py index 577654b..17b608c 100644 --- a/docker/it-tools-relay/server.py +++ b/docker/it-tools-relay/server.py @@ -44,7 +44,7 @@ AUTH_PASS = os.environ.get("AUTH_PASS", "") PROJECT_NAME = os.environ.get("PROJECT_NAME", "IT-Tools") TRIAL_FILE = os.environ.get("TRIAL_FILE", "/app/data/trials.json") TRIAL_MS = int(os.environ.get("TRIAL_MS_MIN", "30")) * 60 * 1000 -PROTECTED_TOOLS = {"translator", "image-ocr", "pdf-ocr", "ai-retouch", "label-designer", "doc-convert", "image-tools"} +PROTECTED_TOOLS = {"translator", "image-ocr", "pdf-ocr", "ai-retouch", "label-designer", "doc-convert", "image-tools", "pdf-tools"} MACHINE_RE = re.compile(r"^\d{10,16}$") # verify() messages that unconditionally block activation diff --git a/src/pages/About.vue b/src/pages/About.vue index cf42a84..aeb31e2 100644 --- a/src/pages/About.vue +++ b/src/pages/About.vue @@ -28,7 +28,7 @@ const groups: { title: string; items: Item[] }[] = [ title: '深度改造', items: [ { name: 'JSON 美化和格式化', icon: 'J', desc: '双栏专业工作台:左侧行号编辑,右侧树视图/语法高亮切换,含 Dict/Get参数/XML/CSV 等 7 种转换', tag: '改造' }, - { name: 'PDF工具', icon: 'P', desc: '合并/拆分/旋转/重排/压缩/加密/解密/水印/提取文本/页码/转图片,11 功能全程浏览器本地处理', tag: '全新' }, + { name: 'PDF工具', icon: 'P', desc: '合并/拆分/旋转/重排/压缩/加密/解密/水印/提取文本/页码/转图片,11 功能全程浏览器本地处理,需授权使用', tag: '授权' }, { name: '图片工具', icon: '图', desc: '压缩/转换/尺寸/裁剪/旋转/滤镜/打码/EXIF/二维码生成识别/水印/拼接,12 功能本地处理,需授权使用', tag: '授权' }, ], }, diff --git a/src/pages/Pricing.page.vue b/src/pages/Pricing.page.vue index 5c9bc46..83b2c06 100644 --- a/src/pages/Pricing.page.vue +++ b/src/pages/Pricing.page.vue @@ -36,6 +36,12 @@ const FEATURES: Feature[] = [ icon: '🎨', points: ['去水印/修复:涂抹区域智能填充', '抠图去背景、4x 超分辨率、人脸修复', '本地 AI 模型推理,单张 10 秒级出图'], }, + { + path: '/pdf-tools', + name: 'PDF工具', + icon: '📑', + points: ['合并/拆分/旋转/重排/压缩等 11 种常用处理', '加密/解密/加水印/提取文本/加页码/转图片', '全程浏览器本地处理,文件不上传服务器'], + }, { path: '/image-tools', name: '图片工具', diff --git a/src/tools/license/license.ts b/src/tools/license/license.ts index ec585b8..6220bf0 100644 --- a/src/tools/license/license.ts +++ b/src/tools/license/license.ts @@ -13,6 +13,7 @@ export const PROTECTED_TOOLS: Record = { '/label-designer': '面单设计', '/doc-convert': '文档格式转换', '/image-tools': '图片工具', + '/pdf-tools': 'PDF工具', }; export const TRIAL_MS = 30 * 60 * 1000; // 每个功能免费 30 分钟