Commit Graph

23 Commits

Author SHA1 Message Date
Trae AI d0bb788e67 fix: remove leftover DefaultInstallDir in install-mode response 2026-06-18 22:20:40 +08:00
Trae AI f77cb0cb05 refactor: remove default_install_dir, Update uses built-in default path 2026-06-18 22:09:18 +08:00
Trae AI a0c817571a fix: remove leftover AutoRun, replace checkbox with switch in file list 2026-06-18 19:53:16 +08:00
Trae AI 8d5d8b1461 refactor: remove auto_run, add default install dir value 2026-06-18 19:43:19 +08:00
Trae AI 6db476549e fix: remove leftover CreateStartMenu reference in info.go 2026-06-18 19:32:42 +08:00
Trae AI eba163d43a refactor: remove create_start_menu, auto create start menu for entry files 2026-06-18 19:17:46 +08:00
Trae AI 2751b24e18 feat: file list shows full package files, desktop shortcut per-file setting 2026-06-18 18:59:50 +08:00
Trae AI 77a2dd468f feat: 版本管理支持多入口文件、安装选项(桌面快捷方式/开始菜单/自动运行/默认安装目录) 2026-06-18 18:15:51 +08:00
Trae AI 23fdcb4a7e fix: check-update无版本号时download_url优先指向全量包 2026-06-18 16:15:29 +08:00
Trae AI 69cac1237c fix: 修复应用设置保存时字段覆盖问题; check-update无版本号时返回full_package_url 2026-06-18 13:06:33 +08:00
admin 62ea1da578 fix: 修复补丁包返回逻辑,download_url 应返回补丁包地址
- 当最新版本是补丁类型时,download_url 返回补丁包地址(FilePath)
- full_package_url 返回完整包地址作为备选
- 简化判断逻辑,不再根据客户端版本判断

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 03:50:41 +08:00
admin 8b887f432b fix: 简化检测更新 API 返回数据,移除 files 字段
- 移除 ZIP 包内文件列表的返回,客户端只需要补丁包/完整包信息
- 返回数据更简洁:download_url, file_size, file_hash, patch_url 等

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 03:47:21 +08:00
admin 0d60037e4e fix: 修复检测更新 API 正确处理补丁包
- 当最新版本是补丁类型且客户端版本是基础版本时,返回补丁包地址
- 当最新版本是补丁类型但客户端不是基础版本时,返回完整包地址
- 添加 full_package_url/full_package_size/full_package_hash 字段作为备选
- 移除冗余的补丁查询逻辑

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 03:21:16 +08:00
admin 97dbd76414 fix: 修复检测更新 API 使用正确的字段名
- 将 status 字段改为 publish_status
- 将 active 值改为 published
- 确保能正确查询已发布的版本

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 02:54:02 +08:00
admin 551f4f1576 feat: auto-generate full package when uploading patch
- Add FullPackagePath, FullPackageSize, FullPackageHash to Version model
- When uploading patch, merge with base full package to create new full package
- Check update API returns full package info for download
- Add package_util.go with merge functions

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 11:43:58 +08:00
admin 275698a32b fix: return param error when version not found in database
Change 404 to 400 with "版本号参数错误" message

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 13:21:54 +08:00
admin 7af4da30d3 feat: return latest version when no version param provided
If client doesn't provide version parameter, return latest version info
instead of returning error

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 13:11:13 +08:00
admin 16c68a855b fix: version display and comparison issues
- Remove duplicate 'v' prefix in version display
- Add version string cleanup (trim spaces, remove v/V prefix)
- Use custom download URL when set
- Fix has_update logic for same version comparison

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 16:53:46 +08:00
admin ed4a561704 feat: add application API documentation and C++ SDK
- Add complete API documentation for application integration (docs/API_DOCUMENT.md)
- Fix check-update API to use version ID comparison instead of string comparison
- Add validation: client version must exist in server version list
- Add support for patch/incremental updates with base_version check
- Add C++ SDK with HTTP client, JSON parser, and crypto support
- Add simple_test.cpp for standalone testing on Windows

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 11:58:44 +08:00
admin 65fa7146e8 refactor: 拆分更新类型(全量/补丁)和更新方式(自动/手动),移除force_update字段 2026-05-08 23:34:14 +08:00
admin de0de10b8d refactor: 移除min_version/base_version_id,后端自动确定基础版本 2026-05-08 23:17:53 +08:00
admin 1f7dfd17a7 feat: 分离密码重置和修改密码功能
- 密码重置:用户忘记密码时通过邮箱/短信验证(需开启开关)
- 修改密码:已登录用户通过旧密码修改(固定功能,无需配置)
- 添加 EnablePasswordReset 开关控制密码重置功能
- PasswordResetMethod 只支持 email/sms 两种验证方式
- 添加短信配置管理功能
- 移除独立的应用邮箱设置页面
2026-05-03 01:18:27 +08:00
Admin afe67d704e Initial commit: 网络验证平台 2026-04-27 17:22:56 +08:00