16 Commits

Author SHA1 Message Date
Sebastion d8c95b0992 fix: sanitize filenames in upload endpoints to prevent path traversal (CWE-22) 2026-05-30 08:05:12 +01:00
钟停为止 23ee8d014f feat: 深度优化自媒体发布系统及修复关键BUG 2026-03-05 10:12:40 +08:00
Alleria 35c015ea06 Merge pull request #156 from gzxy0102/fix-docker
fix: Docker环境修复
2025-11-21 09:49:00 +08:00
听风 9d1bfc6525 fix: 修复Docker中打包的前端请求地址为本地 2025-11-20 14:58:49 +08:00
Alleria 2f957b79ff Merge branch 'main' into main 2025-11-17 17:39:19 +08:00
Deroino e60ce3f64a feat(account-management): optimize account loading with async validation
- Add new /getAccounts API for fast account retrieval without validation
- Update frontend to use fast API for initial load, showing accounts immediately
- Add '验证中' status with loading animation to indicate validation progress
- Implement background validation process that doesn't block UI
- Add Loading icon from Element Plus for visual feedback during validation
- Update status display logic to handle '验证中', '正常', and invalid states
- Improve user experience with immediate feedback and async validation
2025-11-13 11:31:46 +08:00
Deroino 4688c41b9b feat(account-management): add upload and download cookie file buttons
- Add '上传Cookie文件' and '下载Cookie文件' buttons to account management page
- Implement frontend functionality for cookie file upload and download
- Add backend API endpoints for handling cookie file operations:
  - /uploadCookie: Handle cookie file upload with validation
  - /downloadCookie: Handle secure cookie file download
- Implement security measures to prevent path traversal attacks
- Add proper error handling and user feedback
- Maintain existing functionality while adding new features
2025-11-13 10:37:19 +08:00
Deroino 81b71d023d feat(wechat-channel): add draft upload functionality for video channel
- Add isDraft parameter to TencentVideo class to control publishing behavior
- Modify click_publish method to click "保存草稿" instead of "发表" when isDraft is true
- Update post_video_tencent function to accept and pass is_draft parameter
- Add is_draft parameter to /postVideo API endpoint to receive frontend data
- Add "视频号上传草稿" checkbox in frontend that appears only for video channel platform
- Update defaultTabInit to include isDraft property with default value false
- Include isDraft in publishData sent to backend API
- Implement proper URL checking for draft vs publish success confirmation

The new functionality allows users to save WeChat Channel videos as drafts
instead of immediately publishing them when the checkbox is selected.
2025-11-13 09:12:39 +08:00
Deroino 1a02b8fa50 feat(frontend): add UUID column to material management table
- Add UUID field extraction in backend /getFiles endpoint
- Extract UUID from file_path (first part before underscore)
- Add UUID column to material management table in frontend
- Set appropriate width for UUID column display
- Maintain data consistency between backend and frontend
2025-11-13 06:02:15 +08:00
Deroino 91d7942a6f fix(backend): delete actual file when removing from database
- Add file deletion logic to delete_file endpoint
- Remove actual file from videoFile directory when deleting record
- Add error handling for file deletion operations
- Add logging for file deletion status
- Ensure data consistency between database and file system
2025-11-13 05:58:01 +08:00
Deroino 756dcd9126 chore: Improve error logging for /uploadSave endpoint 2025-11-13 03:47:38 +08:00
听风 de2389c9b1 feat: 增加Docker容器环境 2025-11-06 14:50:19 +08:00
Leo Song 0235e89b9e 重新支持抖音封面设置 2025-11-03 15:17:50 +08:00
Leo Song 327ed18ba2 bug fixes 2025-10-15 16:50:58 +08:00
Leo Song 250fff19a9 [feature] support product link in douyin 2025-10-15 16:25:12 +08:00
Edan's Win11 567c6f4bc9 fix: 将 flask 脚本挪到根目录 2025-06-04 13:58:22 +08:00