Files
image-processing/README.md
T

50 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 正版情趣王
面向图片交付场景的本地批量处理桌面软件,基于 Electron、Vue 3 和 Sharp 开发。图片只在电脑本地处理,不上传到服务器。
## 核心能力
- 支持 JPG、JPEG、JPE、JFIF、PNG、WebP、GIF、TIF、TIFF、AVIF、SVG,支持选择文件夹和拖拽导入;动图和多页图片取首帧。
- 非 JPEG 输入会先转换为高质量 JPEG,透明区域使用白色背景,再执行现有混淆处理。
- 内置 AI 混淆算法,自动完成图片数据特征混淆与交付兼容处理。
- 追加数据默认 `1 MB`,可在软件中设置为 `0–100 MB`,设置会保存在本机。
- 支持生成 `原文件名.file` 和 `原文件名.file.jpg` 两种交付格式。
- 支持激活码激活、设备绑定、在线授权校验、72 小时离线宽限和软件版本升级检查。
- 生产接口基地址:`https://apimall.v2.jxxyk.com/api`。
## 本地开发
```bash
pnpm install
pnpm dev
```
## 验证与打包
```bash
pnpm test
pnpm run typecheck
pnpm run build
pnpm run dist:win
```
Windows 安装包输出到 `release/`,安装程序名称为 `正版情趣王-Setup-<版本号>.exe`。
## 后台配套
后台项目:`/Users/bing/work/code/jxxyk/jxxyk-v2-mall`
上线前先执行数据库脚本:
```text
sql/update/20260826_desktop_image_tool_license.sql
```
客户端接口:
- `POST /api/desktop/activate`:激活并绑定设备。
- `POST /api/desktop/login`:软件启动/授权校验并记录登录。
- `POST /api/desktop/version/check`:检查 `正版情趣王` 最新版本。
后台管理入口为 `/admin/desktop-license/list`,支持批量生成激活码、启停授权、查看绑定设备及登录记录。软件版本沿用 `/admin/version/list` 管理。