Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
Add 'project/aitoearn-web/' from commit '89b8c9f47253f8c31a4f98132484f579e667c906'
Nevin1191d9eb97af
diff --cc project/aitoearn-web/.dockerignoreindex 00000000,00000000..8f27b149new file mode 100644--- /dev/null+++ b/project/aitoearn-web/.dockerignore@@@ -1,0 -1,0 +1,21 @@@++node_modules++.next++.git++.gitignore++.env*.local++.nyc_output++coverage++npm-debug.log*++yarn-debug.log*++yarn-error.log*++pnpm-debug.log*++.pnpm-debug.log*++README.md++Dockerfile++.dockerignore++dist++build++.DS_Store++.vscode++.idea++*.logdiff --cc project/aitoearn-web/.envindex 00000000,00000000..663c2354new file mode 100644--- /dev/null+++ b/project/aitoearn-web/.env@@@ -1,0 -1,0 +1,8 @@@++# OSS URL++NEXT_PUBLIC_OSS_URL="https://aitoearn.s3.ap-southeast-1.amazonaws.com/"++++# OSS URL 代理++NEXT_PUBLIC_OSS_URL_PROXY="/ossProxy/"++++# yika OSS++NEXT_PUBLIC_YIKA_OSS_HOST=https://yika-bj.oss-cn-beijing.aliyuncs.comdiff --cc project/aitoearn-web/.env.productionindex 00000000,00000000..e074caa0new file mode 100644--- /dev/null+++ b/project/aitoearn-web/.env.production@@@ -1,0 -1,0 +1,4 @@@++NEXT_PUBLIC_EVN=prod++++NEXT_PUBLIC_API_URL=/api++NEXT_PUBLIC_HOST_URL=https://aitoearn.aidiff --cc project/aitoearn-web/.eslintignoreindex 00000000,00000000..1ca4c483new file mode 100644--- /dev/null+++ b/project/aitoearn-web/.eslintignore@@@ -1,0 -1,0 +1,1 @@@++/src/components/ImageEditorModal/tui-image-editor/diff --cc project/aitoearn-web/.github/workflows/deploy.ymlindex 00000000,9dfee8fb..9dfee8fbmode 000000,100644..100644--- a/project/aitoearn-web/.github/workflows/deploy.yml+++ b/project/aitoearn-web/.github/workflows/deploy.ymldiff --cc project/aitoearn-web/.gitignoreindex 00000000,00000000..864a877bnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/.gitignore@@@ -1,0 -1,0 +1,44 @@@++# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.++++# dependencies++/node_modules++/public/++/.pnp++.pnp.js++.yarn/install-state.gz++++# testing++/coverage++++# next.js++/.next/++/out/++++# production++/build++++# misc++.DS_Store++*.pem++++# debug++npm-debug.log*++yarn-debug.log*++yarn-error.log*++++# local env files++.env*.local++++# vercel++.vercel++++# typescript++*.tsbuildinfo++next-env.d.ts++++certificates++++.idea/++*.idea/++.env.development++package-lock.jsondiff --cc project/aitoearn-web/.idea/UniappTool.xmlindex 00000000,f7328e82..f7328e82mode 000000,100644..100644--- a/project/aitoearn-web/.idea/UniappTool.xml+++ b/project/aitoearn-web/.idea/UniappTool.xmldiff --cc project/aitoearn-web/.idea/aitoearn-web.imlindex 00000000,24643cc3..24643cc3mode 000000,100644..100644--- a/project/aitoearn-web/.idea/aitoearn-web.iml+++ b/project/aitoearn-web/.idea/aitoearn-web.imldiff --cc project/aitoearn-web/.idea/codeStyles/Project.xmlindex 00000000,9d4b216a..9d4b216amode 000000,100644..100644--- a/project/aitoearn-web/.idea/codeStyles/Project.xml+++ b/project/aitoearn-web/.idea/codeStyles/Project.xmldiff --cc project/aitoearn-web/.idea/codeStyles/codeStyleConfig.xmlindex 00000000,79ee123c..79ee123cmode 000000,100644..100644--- a/project/aitoearn-web/.idea/codeStyles/codeStyleConfig.xml+++ b/project/aitoearn-web/.idea/codeStyles/codeStyleConfig.xmldiff --cc project/aitoearn-web/.idea/inspectionProfiles/Project_Default.xmlindex 00000000,bb34faa0..bb34faa0mode 000000,100644..100644--- a/project/aitoearn-web/.idea/inspectionProfiles/Project_Default.xml+++ b/project/aitoearn-web/.idea/inspectionProfiles/Project_Default.xmldiff --cc project/aitoearn-web/.idea/material_theme_project_new.xmlindex 00000000,93d65c94..93d65c94mode 000000,100644..100644--- a/project/aitoearn-web/.idea/material_theme_project_new.xml+++ b/project/aitoearn-web/.idea/material_theme_project_new.xmldiff --cc project/aitoearn-web/.idea/modules.xmlindex 00000000,14553dff..14553dffmode 000000,100644..100644--- a/project/aitoearn-web/.idea/modules.xml+++ b/project/aitoearn-web/.idea/modules.xmldiff --cc project/aitoearn-web/.idea/vcs.xmlindex 00000000,35eb1ddf..35eb1ddfmode 000000,100644..100644--- a/project/aitoearn-web/.idea/vcs.xml+++ b/project/aitoearn-web/.idea/vcs.xmldiff --cc project/aitoearn-web/.idea/workspace.xmlindex 00000000,1a221b6a..1a221b6amode 000000,100644..100644--- a/project/aitoearn-web/.idea/workspace.xml+++ b/project/aitoearn-web/.idea/workspace.xmldiff --cc project/aitoearn-web/.prettierrc.jsindex 00000000,00000000..1fa96bb9new file mode 100644--- /dev/null+++ b/project/aitoearn-web/.prettierrc.js@@@ -1,0 -1,0 +1,10 @@@++module.exports = {++ printWidth: 80,++ tabWidth: 2,++ useTabs: false,++ semi: true,++ singleQuote: false,++ trailingComma: "all",++ bracketSpacing: true,++ arrowParens: "always",++};diff --cc project/aitoearn-web/@types/i18next.d.tsindex 00000000,00000000..4ae27cf1new file mode 100644--- /dev/null+++ b/project/aitoearn-web/@types/i18next.d.ts@@@ -1,0 -1,0 +1,15 @@@++import "i18next";++import Resources from "./resources";++++declare module "i18next" {++ interface CustomTypeOptions {++ defaultNS: "translation";++ resources: Resources;++ }++++ namespace JSX {++ interface IntrinsicElements {++ "chatlio-widget": any;++ }++ }++}diff --cc project/aitoearn-web/@types/resources.d.tsindex 00000000,c2d18b53..c2d18b53mode 000000,100644..100644--- a/project/aitoearn-web/@types/resources.d.ts+++ b/project/aitoearn-web/@types/resources.d.tsdiff --cc project/aitoearn-web/Dockerfileindex 00000000,00000000..e5517b08new file mode 100644--- /dev/null+++ b/project/aitoearn-web/Dockerfile@@@ -1,0 -1,0 +1,47 @@@++FROM node:lts-alpine AS base++ENV NEXT_TELEMETRY_DISABLED=1++ENV NODE_ENV=production++++RUN apk add --no-cache libc6-compat++++RUN corepack enable pnpm && corepack prepare pnpm@latest --activate++++WORKDIR /app++++FROM base AS deps++++COPY package.json pnpm-lock.yaml ./++++RUN pnpm install --frozen-lockfile --prod=false++++FROM base AS builder++WORKDIR /app++++COPY --from=deps /app/node_modules ./node_modules++COPY . .++++RUN pnpm build++++FROM base AS production++WORKDIR /app++++ENV NODE_ENV=production++ENV NEXT_TELEMETRY_DISABLED=1++++RUN addgroup --system --gid 1001 nodejs++RUN adduser --system --uid 1001 nextjs++++COPY --from=builder /app/public ./public++++RUN mkdir .next++RUN chown nextjs:nodejs .next++++COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./++COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static++++USER nextjs++++ENV PORT=3000++ENV HOSTNAME="0.0.0.0"++++CMD ["node", "server.js"]diff --cc project/aitoearn-web/README.mdindex 00000000,00000000..adeafcecnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/README.md@@@ -1,0 -1,0 +1,12 @@@++# 哎呦賺web端++++++## 地址++https://test.aitoearn.ai++++## 测试服文档++https://test.aitoearn.ai/api/docs++++## 测试地址++https://apitest.aitoearn.ai/api/++diff --cc project/aitoearn-web/deploy/docker-compose.yamlindex 00000000,00000000..5db57d27new file mode 100644--- /dev/null+++ b/project/aitoearn-web/deploy/docker-compose.yaml@@@ -1,0 -1,0 +1,11 @@@++version: "3.8"++++services:++ aitoearn-web:++ image: next-base-image++ container_name: aitoearn-web++ ports:++ - "3000:3000"++ volumes:++ - ./standalone:/app++ command: node server.jsdiff --cc project/aitoearn-web/docs/api.jsonindex 00000000,00000000..4e6618f7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/docs/api.json@@@ -1,0 -1,0 +1,13008 @@@++{++ "openapi": "3.0.0",++ "paths": {++ "/": {++ "get": {++ "operationId": "AppController_getHello",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "tags": [++ "App"++ ]++ }++ },++ "/api/test/test": {++ "get": {++ "operationId": "TestController_addDefaultContent",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "tags": [++ "测试"++ ]++ }++ },++ "/api/test/setVip/{type}/{userId}": {++ "get": {++ "operationId": "TestController_setUserVipInfo",++ "parameters": [++ {++ "name": "type",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "userId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "tags": [++ "测试"++ ]++ }++ },++ "/api/user/info/mail/{mail}": {++ "get": {++ "description": "用户信息",++ "operationId": "UserController_infoByMail",++ "parameters": [++ {++ "name": "mail",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "用户信息",++ "tags": [++ "用户"++ ]++ }++ },++ "/api/user/mine": {++ "get": {++ "description": "获取自己的用户信息",++ "operationId": "UserController_getUserInfoById",++ "parameters": [],++ "responses": {++ "200": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserResDto"++ }++ }++ }++ },++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取自己的用户信息",++ "tags": [++ "用户"++ ]++ }++ },++ "/api/user/info/update": {++ "put": {++ "description": "更新用户信息",++ "operationId": "UserController_updateInfo",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateUserInfoDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "更新用户信息",++ "tags": [++ "用户"++ ]++ }++ },++ "/api/user/vip/set/experience": {++ "put": {++ "description": "设置用户体验VIP信息",++ "operationId": "UserController_setVipExperience",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "设置用户体验VIP信息",++ "tags": [++ "用户"++ ]++ }++ },++ "/api/user/points/records": {++ "get": {++ "operationId": "UserController_getMyPointsRecords",++ "parameters": [++ {++ "name": "page",++ "required": true,++ "in": "query",++ "description": "页码",++ "schema": {++ "default": 1,++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "query",++ "description": "每页数量",++ "schema": {++ "default": 10,++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/PointsRecordsVo"++ }++ }++ }++ }++ },++ "summary": "获取我的积分记录",++ "tags": [++ "用户"++ ]++ }++ },++ "/api/login/mail": {++ "post": {++ "description": "邮箱登陆/注册",++ "operationId": "LoginController_loginByMail",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/MailLoginDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "邮箱登陆/注册",++ "tags": [++ "用户登录-login"++ ]++ }++ },++ "/api/login/mail/regist/url": {++ "get": {++ "description": "用户点击链接后,进行注册,返回注册结果的html文本",++ "operationId": "LoginController_registByMail",++ "parameters": [++ {++ "name": "mail",++ "required": true,++ "in": "query",++ "schema": {++ "title": "邮箱",++ "type": "string"++ }++ },++ {++ "name": "code",++ "required": true,++ "in": "query",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "邮箱注册确认",++ "tags": [++ "用户登录-login"++ ]++ }++ },++ "/api/login/mail/regist/back": {++ "post": {++ "description": "轮询获取",++ "operationId": "LoginController_getRegistByMailBack",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GetRegistByMailBackDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取邮箱注册返回",++ "tags": [++ "用户登录-login"++ ]++ }++ },++ "/api/login/repassword/mail": {++ "post": {++ "description": "邮箱重置密码",++ "operationId": "LoginController_repasswordByMail",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/MailRepasswordDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "邮箱重置密码",++ "tags": [++ "用户登录-login"++ ]++ }++ },++ "/api/login/repassword/mail/back/url": {++ "get": {++ "description": "用户点击链接后,进行重设",++ "operationId": "LoginController_repasswordUrlByMail",++ "parameters": [++ {++ "name": "mail",++ "required": true,++ "in": "query",++ "schema": {++ "title": "邮箱",++ "type": "string"++ }++ },++ {++ "name": "code",++ "required": true,++ "in": "query",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "邮箱重设密码",++ "tags": [++ "用户登录-login"++ ]++ }++ },++ "/api/login/repassword/mail/back": {++ "post": {++ "description": "轮询获取",++ "operationId": "LoginController_getRepasswordByMailBack",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GetRegistByMailBackDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "邮箱重设密码",++ "tags": [++ "用户登录-login"++ ]++ }++ },++ "/api/login/google": {++ "post": {++ "description": "google登录",++ "operationId": "LoginController_loginByGoogle",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GoogleLoginDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "google登录",++ "tags": [++ "用户登录-login"++ ]++ }++ },++ "/api/login/cancel/code": {++ "get": {++ "description": "获取注销验证码",++ "operationId": "LoginController_getCancelMailCode",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "获取注销验证码",++ "tags": [++ "用户登录-login"++ ]++ }++ },++ "/api/login/cancel": {++ "delete": {++ "description": "注销",++ "operationId": "LoginController_cancelByMail",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserCancelDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "注销",++ "tags": [++ "用户登录-login"++ ]++ }++ },++ "/api/user/pop/code": {++ "get": {++ "operationId": "UserPopController_generateUsePopularizeCode",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "生成并获取自己的推广码",++ "tags": [++ "用户推广"++ ]++ }++ },++ "/api/feedback": {++ "post": {++ "description": "提交反馈",++ "operationId": "FeedbackController_createFeedback",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateFeedBackDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "提交反馈",++ "tags": [++ "反馈"++ ]++ }++ },++ "/api/appConfigs/{appId}": {++ "get": {++ "description": "获取配置",++ "operationId": "AppConfigsController_getAppConfigList",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "type": "object"++ }++ }++ }++ }++ }++ },++ "summary": "获取配置",++ "tags": [++ "应用配置"++ ]++ }++ },++ "/api/file/uploadUrl": {++ "get": {++ "description": "获取分片上传的签名URL",++ "operationId": "FileController_getUploadPartUrl",++ "parameters": [],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取分片上传的签名URL",++ "tags": [++ "文件"++ ]++ }++ },++ "/api/file/upload": {++ "post": {++ "description": "存入临时目录",++ "operationId": "FileController_uploadFile",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "multipart/form-data": {++ "schema": {++ "type": "object",++ "properties": {++ "file": {++ "type": "string",++ "format": "binary"++ }++ }++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "上传文件",++ "tags": [++ "文件"++ ]++ }++ },++ "/api/file/uploadPart/init": {++ "post": {++ "description": "初始化文件分片上传",++ "operationId": "FileController_initiateMultipartUpload",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/InitMultipartUploadDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "初始化文件分片上传",++ "tags": [++ "文件"++ ]++ }++ },++ "/api/file/uploadPart/upload": {++ "post": {++ "description": "上传文件分片",++ "operationId": "FileController_uploadPart",++ "parameters": [++ {++ "name": "fileId",++ "required": true,++ "in": "query",++ "schema": {++ "title": "文件key",++ "type": "string"++ }++ },++ {++ "name": "uploadId",++ "required": true,++ "in": "query",++ "schema": {++ "title": "上传ID",++ "type": "string"++ }++ },++ {++ "name": "partNumber",++ "required": true,++ "in": "query",++ "schema": {++ "title": "分片索引",++ "type": "number"++ }++ }++ ],++ "requestBody": {++ "required": true,++ "content": {++ "multipart/form-data": {++ "schema": {++ "type": "object",++ "properties": {++ "file": {++ "type": "string",++ "format": "binary"++ },++ "fileId": {++ "type": "string"++ },++ "uploadId": {++ "type": "string"++ },++ "partNumber": {++ "type": "number"++ }++ }++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "上传文件分片",++ "tags": [++ "文件"++ ]++ }++ },++ "/api/file/uploadPart/complete": {++ "post": {++ "description": "合并文件分片",++ "operationId": "FileController_completeMultipartUpload",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CompletePartDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "合并文件分片",++ "tags": [++ "文件"++ ]++ }++ },++ "/api/plat/publish/create": {++ "post": {++ "operationId": "PublishController_create",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreatePublishDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "创建发布",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/publish/run/{id}": {++ "get": {++ "operationId": "PublishController_run",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "立即执行发布任务(测试用)",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/publish/createRecord": {++ "post": {++ "operationId": "PublishController_createRecord",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreatePublishRecordDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "创建发布记录",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/publish/getList": {++ "post": {++ "operationId": "PublishController_getList",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/PubRecordListFilterDto"++ }++ }++ }++ },++ "responses": {++ "200": {++ "description": "返回发布记录列表",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/PublishRecordItemDto"++ }++ }++ }++ }++ },++ "default": {++ "description": ""++ }++ },++ "summary": "获取发布记录",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/publish/updateTaskTime": {++ "post": {++ "operationId": "PublishController_updatePublishRecordTime",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdatePublishRecordTimeDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "修改发布任务时间",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/publish/delete/{id}": {++ "delete": {++ "operationId": "PublishController_delete",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除发布任务,注意,只能删除未发布的任务,不能删除已经发布的记录",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/publish/nowPubTask/{id}": {++ "post": {++ "operationId": "PublishController_nowPubTask",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "立即发布任务(在n天之后的任务想要立即发布)",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/publish/publishInfo/data": {++ "get": {++ "operationId": "PublishController_publishInfoData",++ "parameters": [],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取发布信息数据",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/publish/publishDayInfo/list/{pageNo}/{pageSize}": {++ "get": {++ "operationId": "PublishController_publishDataInfoList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取每天发布信息数据列表",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/publish/records/{id}": {++ "get": {++ "operationId": "PublishController_getPublishRecordDetail",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取发布记录详情",++ "tags": [++ "plat/publish - 平台发布"++ ]++ }++ },++ "/api/plat/test/authPage": {++ "post": {++ "operationId": "PlatTestController_setAuthPage",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "tags": [++ "plat/test - 平台测试"++ ]++ }++ },++ "/api/plat/test/authPage/{id}": {++ "get": {++ "operationId": "PlatTestController_getAuthPage",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "tags": [++ "plat/test - 平台测试"++ ]++ }++ },++ "/api/channel/interact/addArcComment": {++ "post": {++ "operationId": "InteractController_addArcComment",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/AddArcCommentDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "添加作品评论",++ "tags": [++ "渠道互动"++ ]++ }++ },++ "/api/channel/interact/getArcCommentList/{pageNo}/{pageSize}": {++ "get": {++ "operationId": "InteractController_getArcCommentList",++ "parameters": [++ {++ "name": "recordId",++ "required": true,++ "in": "query",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取作品的评论列表",++ "tags": [++ "渠道互动"++ ]++ }++ },++ "/api/channel/interact/replyComment": {++ "post": {++ "operationId": "InteractController_replyComment",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/ReplyCommentDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "回复评论",++ "tags": [++ "渠道互动"++ ]++ }++ },++ "/api/channel/interact/delComment": {++ "delete": {++ "operationId": "InteractController_delComment",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/DelCommentDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除评论",++ "tags": [++ "渠道互动"++ ]++ }++ },++ "/api/channel/dataCube/accountDataCube/{accountId}": {++ "get": {++ "operationId": "DataCubeController_getAccountDataCube",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号的统计数据",++ "tags": [++ "渠道用户数据"++ ]++ }++ },++ "/api/channel/dataCube/getAccountDataBulk/{accountId}": {++ "get": {++ "operationId": "DataCubeController_getAccountDataBulk",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号的统计数据",++ "tags": [++ "渠道用户数据"++ ]++ }++ },++ "/api/channel/dataCube/getArcDataCube/{accountId}/{dataId}": {++ "get": {++ "operationId": "DataCubeController_getArcDataCube",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "dataId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号的统计数据",++ "tags": [++ "渠道用户数据"++ ]++ }++ },++ "/api/channel/dataCube/getArcDataBulk/{accountId}/{dataId}": {++ "get": {++ "operationId": "DataCubeController_getArcDataBulk",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "dataId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号的统计数据",++ "tags": [++ "渠道用户数据"++ ]++ }++ },++ "/api/channel/skKey": {++ "post": {++ "description": "创建skKey",++ "operationId": "SkKeyController_create",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateSkKeyDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "创建skKey",++ "tags": [++ "频道MCP的SkKey"++ ]++ },++ "put": {++ "description": "更新skKey",++ "operationId": "SkKeyController_upInfo",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/SkKeyUpInfoDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "更新skKey",++ "tags": [++ "频道MCP的SkKey"++ ]++ }++ },++ "/api/channel/skKey/ref": {++ "delete": {++ "description": "删除关联",++ "operationId": "SkKeyController_delRefAccount",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除关联",++ "tags": [++ "频道MCP的SkKey"++ ]++ },++ "post": {++ "description": "创建关联",++ "operationId": "SkKeyController_addRefAccount",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/SkKeyAddRefAccountDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "创建关联",++ "tags": [++ "频道MCP的SkKey"++ ]++ }++ },++ "/api/channel/skKey/{key}": {++ "delete": {++ "description": "删除skKey",++ "operationId": "SkKeyController_del",++ "parameters": [++ {++ "name": "key",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除skKey",++ "tags": [++ "频道MCP的SkKey"++ ]++ }++ },++ "/api/channel/skKey/info/{key}": {++ "get": {++ "description": "获取skKey",++ "operationId": "SkKeyController_getInfo",++ "parameters": [++ {++ "name": "key",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取skKey",++ "tags": [++ "频道MCP的SkKey"++ ]++ }++ },++ "/api/channel/skKey/list/{pageNo}/{pageSize}": {++ "get": {++ "description": "获取skKey列表",++ "operationId": "SkKeyController_list",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取skKey列表",++ "tags": [++ "频道MCP的SkKey"++ ]++ }++ },++ "/api/channel/skKey/ref/list/{pageNo}/{pageSize}": {++ "get": {++ "description": "获取关联列表",++ "operationId": "SkKeyController_getRefAccountList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ },++ {++ "name": "key",++ "required": true,++ "in": "query",++ "description": "key",++ "schema": {++ "title": "key",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "获取关联列表",++ "tags": [++ "频道MCP的SkKey"++ ]++ }++ },++ "/api/plat/bilibili/auth/back/{taskId}": {++ "get": {++ "operationId": "BilibiliController_getAccessToken",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/auth/url/{type}": {++ "get": {++ "operationId": "BilibiliController_getAuthUrl",++ "parameters": [++ {++ "name": "type",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取页面的认证URL",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/auth/create-account/{taskId}": {++ "post": {++ "operationId": "BilibiliController_getAuthInfo",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号授权状态回调",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/auth/status/{accountId}": {++ "get": {++ "operationId": "BilibiliController_checkAccountAuthStatus",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号授权状态回调",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/video/init": {++ "post": {++ "operationId": "BilibiliController_videoInit",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/VideoInitDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "视频初始化",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/video/part/upload/{accountId}": {++ "post": {++ "operationId": "BilibiliController_uploadVideoPart",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "uploadToken",++ "required": true,++ "in": "query",++ "schema": {++ "title": "上传token",++ "type": "string"++ }++ },++ {++ "name": "partNumber",++ "required": true,++ "in": "query",++ "schema": {++ "title": "分片索引",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "上传视频分片",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/video/complete/{accountId}": {++ "post": {++ "operationId": "BilibiliController_videoComplete",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/VideoCompleteDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "视频分片合并",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/cover/upload/{accountId}": {++ "post": {++ "operationId": "BilibiliController_coverUpload",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "封面上传",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/video/upload/{accountId}": {++ "post": {++ "description": "因微服务nats传输限制,只允许20M以下文件",++ "operationId": "BilibiliController_uploadLitVideo",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UploadLitVideoDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "上传小视频(注意)",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/archive/add-by-utoken": {++ "post": {++ "operationId": "BilibiliController_archiveAddByUtoken",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/ArchiveAddByUtokenBodyDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "视频稿件提交",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/archive/type/list/{accountId}": {++ "get": {++ "operationId": "BilibiliController_archiveTypeList",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "分区查询",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/archive/list/{pageNo}/{pageSize}": {++ "get": {++ "operationId": "BilibiliController_getArchiveList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ },++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "schema": {++ "title": "账户ID",++ "type": "string"++ }++ },++ {++ "name": "status",++ "required": true,++ "in": "query",++ "schema": {++ "type": "string",++ "enum": [++ "all",++ "is_pubing",++ "pubed",++ "not_pubed"++ ]++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取稿件列表",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/stat/user/{accountId}": {++ "get": {++ "operationId": "BilibiliController_getUserStat",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取用户数据",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/stat/arc": {++ "get": {++ "operationId": "BilibiliController_getArcStat",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "schema": {++ "title": "账户ID",++ "type": "string"++ }++ },++ {++ "name": "resourceId",++ "required": true,++ "in": "query",++ "schema": {++ "title": "稿件ID",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取稿件数据",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/bilibili/stat/inc/arc/{accountId}": {++ "get": {++ "operationId": "BilibiliController_getArcIncStat",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取稿件增量数据数据",++ "tags": [++ "plat/bilibili - B站平台"++ ]++ }++ },++ "/api/plat/wxGzh/auth/url/{type}": {++ "get": {++ "operationId": "WxGzhController_createAuthTask",++ "parameters": [++ {++ "name": "type",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "发起微信授权登陆",++ "tags": [++ "plat/wxGzh - 微信公众号"++ ]++ }++ },++ "/api/plat/wxGzh/auth/create-account/{taskId}": {++ "get": {++ "operationId": "WxGzhController_getAuthTaskInfo",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号授权状态回调",++ "tags": [++ "plat/wxGzh - 微信公众号"++ ]++ }++ },++ "/api/plat/wxGzh/account/userCumulate": {++ "get": {++ "operationId": "WxGzhController_getUserCumulate",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "schema": {++ "title": "账户ID",++ "type": "string"++ }++ },++ {++ "name": "beginDate",++ "required": true,++ "in": "query",++ "schema": {++ "title": "开始日期",++ "type": "string"++ }++ },++ {++ "name": "endDate",++ "required": true,++ "in": "query",++ "schema": {++ "title": "结束日期",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取累计用户数据",++ "tags": [++ "plat/wxGzh - 微信公众号"++ ]++ }++ },++ "/api/plat/wxGzh/account/userRead": {++ "get": {++ "operationId": "WxGzhController_getUserRead",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "schema": {++ "title": "账户ID",++ "type": "string"++ }++ },++ {++ "name": "beginDate",++ "required": true,++ "in": "query",++ "schema": {++ "title": "开始日期",++ "type": "string"++ }++ },++ {++ "name": "endDate",++ "required": true,++ "in": "query",++ "schema": {++ "title": "结束日期",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取图文阅读概况数据",++ "tags": [++ "plat/wxGzh - 微信公众号"++ ]++ }++ },++ "/api/plat/wx/auth/back": {++ "post": {++ "operationId": "WxPlatController_authBackGet",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/AuthBackQueryDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "接收授权回调",++ "tags": [++ "WxPlat"++ ]++ }++ },++ "/api/plat/wx/callback/msg": {++ "post": {++ "operationId": "WxPlatController_callbackMsg",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "接收消息回调",++ "tags": [++ "WxPlat"++ ]++ }++ },++ "/api/plat/youtube/auth/url": {++ "get": {++ "operationId": "YoutubeController_getAuthUrl",++ "parameters": [++ {++ "name": "type",++ "required": true,++ "in": "query",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取页面的认证URL",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/auth/callback": {++ "get": {++ "operationId": "YoutubeController_getAccessToken",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/auth/create-account/{taskId}": {++ "post": {++ "operationId": "YoutubeController_getAuthInfo",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号授权状态回调",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/auth/status/{accountId}": {++ "get": {++ "operationId": "YoutubeController_checkAccountAuthStatus",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "检查账号是否已经授权",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/auth/refresh-token/{accountId}": {++ "post": {++ "operationId": "YoutubeController_refreshToken",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "刷新令牌token",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/video/categories": {++ "get": {++ "operationId": "YoutubeController_getVideoCategories",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "description": "账号ID",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "id",++ "required": false,++ "in": "query",++ "description": "视频类别ID, 注意:id和regionCode必须有且只能选择一个",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "regionCode",++ "required": false,++ "in": "query",++ "description": "区域代码, 注意:id和regionCode只能选择一个",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取视频类别列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/video/list": {++ "get": {++ "operationId": "YoutubeController_getVideosList",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "description": "账号ID",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "chart",++ "required": false,++ "in": "query",++ "description": "用于标识您要检索的图表。这里只有一个值,mostPopular – 返回指定内容区域和视频类别中最热门的视频。id、myRating、chart这三个参数必须且只能选一个",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "id",++ "required": false,++ "in": "query",++ "description": "视频ID, 多个id用英文逗号分隔。注意:id、myRating、chart这三个参数必须且只能选一个",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "myRating",++ "required": false,++ "in": "query",++ "description": "是否获取我喜欢的视频, 注意:id、myRating、chart这三个参数必须且只能选一个",++ "schema": {++ "type": "boolean"++ }++ },++ {++ "name": "maxResults",++ "required": false,++ "in": "query",++ "description": "最大返回结果数",++ "schema": {++ "type": "number"++ }++ },++ {++ "name": "pageToken",++ "required": false,++ "in": "query",++ "description": "分页令牌",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取视频列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/comment/threads/insert": {++ "post": {++ "operationId": "YoutubeController_insertCommentThreads",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/InsertCommentThreadsDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建评论会话",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/comment/threads/list": {++ "get": {++ "operationId": "YoutubeController_getCommentThreadsList",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "description": "账号ID",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "id",++ "required": false,++ "in": "query",++ "description": "评论会话ID,多个id以英文逗号隔开,注意:id、allThreadsRelatedToChannelId、videoId 必须有且只能有一个,不能同时使用",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "allThreadsRelatedToChannelId",++ "required": false,++ "in": "query",++ "description": "关联的频道ID。注意:id、allThreadsRelatedToChannelId、videoId 必须有且只能有一个,不能同时使用",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "videoId",++ "required": false,++ "in": "query",++ "description": "视频ID 注意:id、allThreadsRelatedToChannelId、videoId 必须有且只能有一个,不能同时使用",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "pageToken",++ "required": false,++ "in": "query",++ "description": "分页令牌,注意:此参数不能与 id 参数结合使用。",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "order",++ "required": false,++ "in": "query",++ "description": "排序方式,注意:此参数不能与 id 参数结合使用。time - 默认,评论会话会按时间排序。relevance - 评论会话按相关性排序。",++ "schema": {++ "type": "string",++ "enum": [++ "time",++ "relevance"++ ]++ }++ },++ {++ "name": "searchTerms",++ "required": false,++ "in": "query",++ "description": "搜索关键词,注意:此参数不能与 id 参数结合使用。",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取评论会话列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/comment/threads/moderation/set": {++ "post": {++ "operationId": "YoutubeController_setCommentThreadsModerationStatus",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/SetCommentThreadsModerationStatusDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "设置评论会话的审核状态",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/comment/insert": {++ "post": {++ "operationId": "YoutubeController_insertComment",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/InsertCommentDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建二级评论",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/comment/list": {++ "get": {++ "operationId": "YoutubeController_getCommentsList",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "description": "账号ID",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "id",++ "required": true,++ "in": "query",++ "description": "评论ID,多个id用英文逗号分隔,注意:id和 parentId 必须有且只能有其中一个",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "parentId",++ "required": false,++ "in": "query",++ "description": "父评论ID,注意:id和 parentId 必须有且只能有其中一个",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "maxResults",++ "required": false,++ "in": "query",++ "description": "最大返回结果数",++ "schema": {++ "type": "number"++ }++ },++ {++ "name": "pageToken",++ "required": false,++ "in": "query",++ "description": "分页令牌",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取子评论列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/comment/update": {++ "post": {++ "operationId": "YoutubeController_updateComment",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateCommentDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "更新评论",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/comment/delete": {++ "post": {++ "operationId": "YoutubeController_deleteComment",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/DeleteCommentDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "删除评论",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/video/rating/set": {++ "post": {++ "operationId": "YoutubeController_setVideoRate",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/VideoRateDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "设置视频的点赞、踩",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/video/rating": {++ "get": {++ "operationId": "YoutubeController_getVideoRate",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "description": "账号ID",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "id",++ "required": true,++ "in": "query",++ "description": "视频ID,多个id用英文逗号分隔",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取视频的点赞、踩",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/video/delete": {++ "post": {++ "operationId": "YoutubeController_deleteVideo",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/DeleteVideoDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "删除视频",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/video/update": {++ "post": {++ "operationId": "YoutubeController_updateVideo",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateVideoDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "更新视频",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/playlist/create": {++ "post": {++ "operationId": "YoutubeController_createPlaylist",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/InsertPlayListDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建播放列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/playlist/update": {++ "post": {++ "operationId": "YoutubeController_updatePlaylist",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdatePlayListDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "更新播放列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/playlist/delete": {++ "post": {++ "operationId": "YoutubeController_deletePlaylist",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/DeletePlayListDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "删除播放列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/playlist/list": {++ "post": {++ "operationId": "YoutubeController_getPlayList",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GetPlayListDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取播放列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/playlist/items/insert": {++ "post": {++ "operationId": "YoutubeController_insertPlayListItems",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/InsertPlayItemsDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "插入播放列表项",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/playlist/items/update": {++ "post": {++ "operationId": "YoutubeController_updatePlayListItems",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdatePlayItemsDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "更新播放列表项",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/playlist/items/delete": {++ "post": {++ "operationId": "YoutubeController_deletePlayListItems",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/DeletePlayItemsDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "删除播放列表项",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/playlist/items/list": {++ "post": {++ "operationId": "YoutubeController_getPlayListItems",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GetPlayItemsDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取播放列表项",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/channel/list": {++ "get": {++ "operationId": "YoutubeController_getChannelsList",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "description": "账号ID",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "forHandle",++ "required": false,++ "in": "query",++ "description": "标识名,注意:forHandle、forUsername、id、mine 必须有且只能有一个",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "forUsername",++ "required": false,++ "in": "query",++ "description": "用户名,注意:forHandle、forUsername、id、mine 必须有且只能有一个",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "id",++ "required": false,++ "in": "query",++ "description": "频道ID,注意:forHandle、forUsername、id、mine 必须有且只能有一个",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "mine",++ "required": false,++ "in": "query",++ "description": "我的频道,注意:forHandle、forUsername、id、mine 必须有且只能有一个",++ "schema": {++ "type": "boolean"++ }++ },++ {++ "name": "maxResults",++ "required": false,++ "in": "query",++ "description": "最大结果数",++ "schema": {++ "type": "number"++ }++ },++ {++ "name": "pageToken",++ "required": false,++ "in": "query",++ "description": "分页令牌",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取频道列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/channel/update/channelId/{accountId}": {++ "get": {++ "operationId": "YoutubeController_updateChannelId",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "更新账号频道ID",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/channel/sections/list": {++ "post": {++ "operationId": "YoutubeController_getChannelsSectionsList",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GetChannelsSectionsListDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取频道板块列表",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/common/params": {++ "get": {++ "operationId": "YoutubeController_getCommonParams",++ "parameters": [],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取通用数据",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/youtube/search": {++ "post": {++ "operationId": "YoutubeController_search",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/SearchDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "搜索",++ "tags": [++ "plat/youtube - YouTube平台"++ ]++ }++ },++ "/api/plat/kwai/auth/url/{type}": {++ "get": {++ "operationId": "KwaiController_getAuth",++ "parameters": [++ {++ "name": "type",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "开始授权,创建任务",++ "tags": [++ "plat/kwai - 快手平台"++ ]++ }++ },++ "/api/plat/kwai/auth/create-account/{taskId}": {++ "post": {++ "operationId": "KwaiController_getAuthInfo",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号授权状态回调",++ "tags": [++ "plat/kwai - 快手平台"++ ]++ }++ },++ "/api/plat/kwai/auth/back/{taskId}": {++ "get": {++ "operationId": "KwaiController_getAccessToken",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "tags": [++ "plat/kwai - 快手平台"++ ]++ }++ },++ "/api/plat/tiktok/auth/url": {++ "post": {++ "operationId": "TiktokController_getAuthUrl",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GetAuthUrlDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取页面的认证URL",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/auth/info/{taskId}": {++ "get": {++ "operationId": "TiktokController_getAuthInfo",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "查询认证信息",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/auth/back": {++ "get": {++ "operationId": "TiktokController_createAccountAndSetAccessToken",++ "parameters": [++ {++ "name": "code",++ "required": true,++ "in": "query",++ "schema": {++ "title": "授权码",++ "type": "string"++ }++ },++ {++ "name": "state",++ "required": true,++ "in": "query",++ "schema": {++ "title": "状态码",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "创建账号并设置授权Token",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/auth/refresh-token": {++ "post": {++ "operationId": "TiktokController_refreshAccessToken",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/RefreshTokenDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "刷新访问令牌",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/auth/revoke-token/{accountId}": {++ "post": {++ "operationId": "TiktokController_revokeAccessToken",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "撤销访问令牌",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/creator/info/{accountId}": {++ "get": {++ "operationId": "TiktokController_getCreatorInfo",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取创作者信息",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/account/status/{accountId}": {++ "get": {++ "operationId": "TiktokController_checkAccountStatus",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "检查账号状态",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/publish/video/init": {++ "post": {++ "operationId": "TiktokController_initVideoPublish",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/VideoPublishDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "初始化视频发布",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/publish/photo/init": {++ "post": {++ "operationId": "TiktokController_initPhotoPublish",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/PhotoPublishDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "初始化照片发布",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/publish/status/{accountId}/{publishId}": {++ "get": {++ "operationId": "TiktokController_getPublishStatus",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "publishId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "查询发布状态",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/upload/video": {++ "post": {++ "description": "上传视频文件到指定的上传URL",++ "operationId": "TiktokController_uploadVideoFile",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UploadVideoFileDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "上传视频文件",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/tiktok/webhook": {++ "post": {++ "operationId": "TiktokController_handleWebhookEvent",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "TikTok Webhook事件接收",++ "tags": [++ "plat/tiktok - TikTok平台"++ ]++ }++ },++ "/api/plat/pinterest/board": {++ "post": {++ "operationId": "PinterestController_createBoard",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateBoardBodyDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建board",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ },++ "get": {++ "operationId": "PinterestController_getBoardList",++ "parameters": [++ {++ "name": "page",++ "required": false,++ "in": "query",++ "schema": {++ "title": "页码",++ "type": "string"++ }++ },++ {++ "name": "size",++ "required": false,++ "in": "query",++ "schema": {++ "title": "每页大小",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取board列表信息",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ }++ },++ "/api/plat/pinterest/board/{id}": {++ "get": {++ "operationId": "PinterestController_getBoardById",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取单个board",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ },++ "delete": {++ "operationId": "PinterestController_delBoardById",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "删除单个board",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ }++ },++ "/api/plat/pinterest/pin": {++ "post": {++ "operationId": "PinterestController_createPin",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreatePinBodyDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建pin",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ },++ "get": {++ "operationId": "PinterestController_getPinList",++ "parameters": [++ {++ "name": "page",++ "required": false,++ "in": "query",++ "schema": {++ "title": "页码",++ "type": "string"++ }++ },++ {++ "name": "size",++ "required": false,++ "in": "query",++ "schema": {++ "title": "每页大小",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取pin列表",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ }++ },++ "/api/plat/pinterest/pin/{id}": {++ "get": {++ "operationId": "PinterestController_getPinById",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "accountId",++ "required": true,++ "in": "query",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取pin",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ },++ "delete": {++ "operationId": "PinterestController_delPinById",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "删除单个pin",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ }++ },++ "/api/plat/pinterest/getAuth": {++ "get": {++ "operationId": "PinterestController_getAuth",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取授权登录页面",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ }++ },++ "/api/plat/pinterest/checkAuth": {++ "get": {++ "operationId": "PinterestController_checkAuth",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "query",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "查询授权结果",++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ }++ },++ "/api/plat/pinterest/authWebhook": {++ "get": {++ "operationId": "PinterestController_authWebhook",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "tags": [++ "plat/pinterest - PIN平台"++ ]++ }++ },++ "/api/plat/twitter/auth/url": {++ "post": {++ "operationId": "TwitterController_getAuthUrl",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GetAuthUrlDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取Twitter oAuth2.0 用户授权页面URL",++ "tags": [++ "plat/twitter - Twitter平台"++ ]++ }++ },++ "/api/plat/twitter/auth/info/{taskId}": {++ "get": {++ "operationId": "TwitterController_getAuthInfo",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "查询用户oAuth2.0任务状态",++ "tags": [++ "plat/twitter - Twitter平台"++ ]++ }++ },++ "/api/plat/twitter/auth/back": {++ "get": {++ "operationId": "TwitterController_createAccountAndSetAccessToken",++ "parameters": [++ {++ "name": "code",++ "required": true,++ "in": "query",++ "schema": {++ "title": "授权码",++ "type": "string"++ }++ },++ {++ "name": "state",++ "required": true,++ "in": "query",++ "schema": {++ "title": "状态码",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "oAuth认证回调后续操作, 保存AccessToken并创建用户",++ "tags": [++ "plat/twitter - Twitter平台"++ ]++ }++ },++ "/api/plat/meta/auth/url": {++ "post": {++ "operationId": "MetaController_getAuthUrl",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GetAuthUrlDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取Meta平台 oAuth2.0 用户授权页面URL",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/auth/info/{taskId}": {++ "get": {++ "operationId": "MetaController_getAuthInfo",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "查询用户oAuth2.0任务状态",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/facebook/pages": {++ "get": {++ "operationId": "MetaController_getFacebookPages",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "查询Facebook用户Pages列表",++ "tags": [++ "plat/meta - Meta平台"++ ]++ },++ "post": {++ "operationId": "MetaController_selectFacebookPages",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/FacebookPageSelectionDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "选择确认Facebook Pages",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/auth/back": {++ "get": {++ "operationId": "MetaController_createAccountAndSetAccessToken",++ "parameters": [++ {++ "name": "code",++ "required": true,++ "in": "query",++ "schema": {++ "title": "授权码",++ "type": "string"++ }++ },++ {++ "name": "state",++ "required": true,++ "in": "query",++ "schema": {++ "title": "状态码",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "oAuth认证回调后续操作, 保存AccessToken并创建用户",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/facebook/{accountId}/published_posts": {++ "get": {++ "operationId": "MetaController_getFacebookPagePublishedPosts",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "pageId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取Facebook Page的已发布帖子列表",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/facebook/{accountId}/insights": {++ "get": {++ "operationId": "MetaController_getFacebookPageInsights",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取Facebook Page的Insights数据",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/facebook/{accountId}/{postId}/insights": {++ "get": {++ "operationId": "MetaController_getFacebookPostInsights",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "postId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取Facebook Page的Insights数据",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/instagram/{accountId}": {++ "get": {++ "operationId": "MetaController_getInstagramAccountInfo",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取Instagram Account的Insights数据",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/instagram/{accountId}/insights": {++ "get": {++ "operationId": "MetaController_getInstagramAccountInsights",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取Instagram Account的Insights数据",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/instagram/{accountId}/{postId}/insights": {++ "get": {++ "operationId": "MetaController_getInstagramPostInsights",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "postId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "Instagram Post的Insights数据",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/threads/{accountId}/insights": {++ "get": {++ "operationId": "MetaController_getThreadsAccountInsights",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "threads Account的Insights数据",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/plat/meta/threads/{accountId}/{postId}/insights": {++ "get": {++ "operationId": "MetaController_getThreadsPostInsights",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "postId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取Facebook Page的Insights数据",++ "tags": [++ "plat/meta - Meta平台"++ ]++ }++ },++ "/api/channel/interactionRecord": {++ "post": {++ "operationId": "InteractionRecordController_add",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/AddInteractionRecordDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "添加渠道互动记录",++ "tags": [++ "渠道互动记录"++ ]++ }++ },++ "/api/channel/interactionRecord/list/{pageNo}/{pageSize}": {++ "get": {++ "operationId": "InteractionRecordController_getArcCommentList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取渠道互动记录列表",++ "tags": [++ "渠道互动记录"++ ]++ }++ },++ "/api/channel/interactionRecord/{id}": {++ "delete": {++ "operationId": "InteractionRecordController_replyComment",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除记录",++ "tags": [++ "渠道互动记录"++ ]++ }++ },++ "/api/channel/replyCommentRecord": {++ "post": {++ "operationId": "ReplyCommentRecordController_add",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/AddReplyCommentRecordDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "添加评论回复记录",++ "tags": [++ "评论回复记录"++ ]++ }++ },++ "/api/channel/replyCommentRecord/list/{pageNo}/{pageSize}": {++ "get": {++ "operationId": "ReplyCommentRecordController_getArcCommentList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取评论回复记录列表",++ "tags": [++ "评论回复记录"++ ]++ }++ },++ "/api/channel/replyCommentRecord/{id}": {++ "delete": {++ "operationId": "ReplyCommentRecordController_replyComment",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除评论回复记录",++ "tags": [++ "评论回复记录"++ ]++ }++ },++ "/api/account/login": {++ "post": {++ "operationId": "AccountController_createOrUpdateAccount",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateAccountDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建账号",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/update": {++ "post": {++ "operationId": "AccountController_updateAccountInfo",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateAccountDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "更新账号",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/status": {++ "post": {++ "operationId": "AccountController_updateAccountStatus",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateAccountStatusDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "更新账号状态",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/{id}": {++ "get": {++ "operationId": "AccountController_getAccountInfo",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "description": "账号ID",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取账号信息",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/list/all": {++ "get": {++ "operationId": "AccountController_getUserAccounts",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "type": "object"++ }++ }++ }++ }++ }++ },++ "summary": "获取用户所有账户",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/deletes": {++ "post": {++ "operationId": "AccountController_deletes",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/DeleteAccountsDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除多个账户",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/list/ids": {++ "post": {++ "operationId": "AccountController_getAccountListByIds",++ "parameters": [++ {++ "name": "ids",++ "required": true,++ "in": "query",++ "description": "账号ID数组",++ "schema": {++ "type": "array",++ "items": {++ "type": "number"++ }++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "type": "object"++ }++ }++ }++ }++ }++ },++ "summary": "获取账户列表",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/count": {++ "get": {++ "operationId": "AccountController_getAccountCount",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "number"++ }++ }++ }++ }++ },++ "summary": "获取账户总数",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/statistics": {++ "get": {++ "operationId": "AccountController_getAccountStatistics",++ "parameters": [++ {++ "name": "type",++ "required": false,++ "in": "query",++ "description": "账户类型",++ "schema": {++ "type": "string",++ "enum": [++ "douyin",++ "xhs",++ "wxSph",++ "KWAI",++ "youtube",++ "wxGzh",++ "bilibili",++ "twitter",++ "tiktok",++ "facebook",++ "instagram",++ "threads",++ "pinterest"++ ]++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取账户统计",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/delete/{id}": {++ "post": {++ "operationId": "AccountController_deleteAccount",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "description": "账号ID",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除账户",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/statistics/update": {++ "post": {++ "operationId": "AccountController_updateAccountStatistics",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateAccountStatisticsDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "number"++ }++ }++ }++ }++ },++ "summary": "更新账户统计信息",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/account/list/spaceIds": {++ "post": {++ "operationId": "AccountController_getAccountListBySpaceIds",++ "parameters": [++ {++ "name": "spaceIds",++ "required": true,++ "in": "query",++ "description": "空间ID数组",++ "schema": {++ "type": "array",++ "items": {++ "type": "string"++ }++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "type": "object"++ }++ }++ }++ }++ }++ },++ "summary": "获取账户列表(根据空间ids)",++ "tags": [++ "账户"++ ]++ }++ },++ "/api/accountGroup/create": {++ "post": {++ "operationId": "AccountGroupController_create",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateAccountGroupDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建组",++ "tags": [++ "账户组"++ ]++ }++ },++ "/api/accountGroup/update": {++ "post": {++ "operationId": "AccountGroupController_updateGroup",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateAccountGroupDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "更新组",++ "tags": [++ "账户组"++ ]++ }++ },++ "/api/accountGroup/deletes": {++ "post": {++ "operationId": "AccountGroupController_deletes",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/DeleteAccountGroupDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除账户组",++ "tags": [++ "账户组"++ ]++ }++ },++ "/api/accountGroup/getList": {++ "get": {++ "operationId": "AccountGroupController_getUserAccounts",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "type": "object"++ }++ }++ }++ }++ }++ },++ "summary": "获取用户所有账户组",++ "tags": [++ "账户组"++ ]++ }++ },++ "/api/fingerprint/generateFingerprint": {++ "post": {++ "description": "生成指纹浏览器参数",++ "operationId": "FingerprintController_cenerateFingerprin",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GenerateFingerprintDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "",++ "tags": [++ "指纹生成"++ ]++ }++ },++ "/api/tools/ai/video/title": {++ "post": {++ "description": "视频文件只能输入一个,大小限制为 150 MB,时长限制为 40s。",++ "operationId": "AiToolsController_videoAiTitle",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/VideoAiDesDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "视频AI标题",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "视频AI标题",++ "tags": [++ "AI工具"++ ]++ }++ },++ "/api/tools/ai/review": {++ "post": {++ "description": "对作品进行智能评论",++ "operationId": "AiToolsController_reviewAi",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/ReviewAi"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "评论",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "智能评论",++ "tags": [++ "AI工具"++ ]++ }++ },++ "/api/tools/ai/reviewImg": {++ "post": {++ "description": "对作品封面图进行智能评论",++ "operationId": "AiToolsController_reviewImgAi",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/ReviewImgAi"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "评论",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "智能评论",++ "tags": [++ "AI工具"++ ]++ }++ },++ "/api/tools/ai/recover/review": {++ "post": {++ "description": "对作品进行智能评论回复",++ "operationId": "AiToolsController_reviewAiRecover",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/ReviewAiRecover"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "评论",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "智能评论回复",++ "tags": [++ "AI工具"++ ]++ }++ },++ "/api/tools/ai/article/html": {++ "post": {++ "description": "生成AI的html图文",++ "operationId": "AiToolsController_aiArticleHtml",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/AiArticleHtmlDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "生成AI的html图文",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "生成AI的html图文",++ "tags": [++ "AI工具"++ ]++ }++ },++ "/api/tools/ai/article/html/sse": {++ "post": {++ "description": "暂未用到",++ "operationId": "AiToolsController_aiArticleHtmlSse",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/AiArticleHtmlDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "生成AI的html图文",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "生成AI的html图文(SSE)",++ "tags": [++ "AI工具"++ ]++ }++ },++ "/api/tools/ai/markdown": {++ "post": {++ "description": "文字转Markdown",++ "operationId": "AiToolsController_aiMarkdown",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/AdminAiMarkdownDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "任务ID",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "文字转Markdown",++ "tags": [++ "AI工具"++ ]++ }++ },++ "/api/tools/ai/markdown/{id}": {++ "get": {++ "description": "获取AI的mk结果",++ "operationId": "AiToolsController_getAiMarkdown",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "title": "ID",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "Markdown文本",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取AI的mk结果",++ "tags": [++ "AI工具"++ ]++ }++ },++ "/api/tools/common/text/moderation": {++ "post": {++ "description": "内容安全检测",++ "operationId": "ToolsController_textModeration",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/TextModerationDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "是否通过检测",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "内容安全检测",++ "tags": [++ "通用工具"++ ]++ }++ },++ "/api/material": {++ "post": {++ "description": "创建草稿",++ "operationId": "MaterialController_create",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateMaterialDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建草稿",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/task/create": {++ "post": {++ "description": "创建批量生成草稿任务",++ "operationId": "MaterialController_createTask",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateMaterialTaskDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建批量生成草稿任务",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/task/preview/{id}": {++ "get": {++ "description": "预览草稿生成任务",++ "operationId": "MaterialController_previewTask",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "预览草稿生成任务",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/task/start/{id}": {++ "get": {++ "description": "开始草稿生成任务",++ "operationId": "MaterialController_startTask",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "开始草稿生成任务",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/{id}": {++ "delete": {++ "description": "删除素材",++ "operationId": "MaterialController_del",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除素材",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/info/{id}": {++ "put": {++ "description": "更新草稿信息",++ "operationId": "MaterialController_upMaterialInfo",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateMaterialDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "更新草稿信息",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/list/{pageNo}/{pageSize}": {++ "get": {++ "description": "获取草稿列表",++ "operationId": "MaterialController_getList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ },++ {++ "name": "title",++ "required": false,++ "in": "query",++ "schema": {++ "title": "标题",++ "type": "string"++ }++ },++ {++ "name": "groupId",++ "required": false,++ "in": "query",++ "schema": {++ "title": "组ID",++ "type": "string"++ }++ },++ {++ "name": "status",++ "required": false,++ "in": "query",++ "schema": {++ "title": "草稿状态",++ "type": "number",++ "enum": [++ 0,++ 1,++ -1++ ]++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取草稿列表",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/group": {++ "post": {++ "description": "创建草稿组",++ "operationId": "MaterialController_createGroup",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateMaterialGroupDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建草稿组",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/group/{id}": {++ "delete": {++ "description": "删除素材组",++ "operationId": "MaterialController_delGroup",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除素材组",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/group/info/{id}": {++ "post": {++ "description": "更新素材组信息",++ "operationId": "MaterialController_updateGroupInfo",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateMaterialGroupDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "更新素材组信息",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/material/group/list/{pageNo}/{pageSize}": {++ "get": {++ "description": "获取素材组列表",++ "operationId": "MaterialController_getGroupList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取素材组列表",++ "tags": [++ "草稿"++ ]++ }++ },++ "/api/media": {++ "post": {++ "description": "创建媒体资源",++ "operationId": "MediaController_create",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateMediaDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建媒体资源",++ "tags": [++ "媒体资源"++ ]++ }++ },++ "/api/media/{id}": {++ "delete": {++ "description": "删除媒体资源",++ "operationId": "MediaController_del",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除媒体资源",++ "tags": [++ "媒体资源"++ ]++ }++ },++ "/api/media/list/{pageNo}/{pageSize}": {++ "get": {++ "description": "获取媒体列表",++ "operationId": "MediaController_getList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ },++ {++ "name": "groupId",++ "required": false,++ "in": "query",++ "schema": {++ "title": "组ID",++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取媒体列表",++ "tags": [++ "媒体资源"++ ]++ }++ },++ "/api/media/group": {++ "post": {++ "description": "创建发媒体资源组",++ "operationId": "MediaController_createGroup",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CreateMediaGroupDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建发媒体资源组",++ "tags": [++ "媒体资源"++ ]++ }++ },++ "/api/media/group/{id}": {++ "delete": {++ "description": "删除媒体资源组",++ "operationId": "MediaController_delGroup",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "删除媒体资源",++ "tags": [++ "媒体资源"++ ]++ }++ },++ "/api/media/group/info/{id}": {++ "post": {++ "description": "更新资源组信息",++ "operationId": "MediaController_updateGroupInfo",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UpdateMediaGroupDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "boolean"++ }++ }++ }++ }++ },++ "summary": "更新资源组信息",++ "tags": [++ "媒体资源"++ ]++ }++ },++ "/api/media/group/list/{pageNo}/{pageSize}": {++ "get": {++ "description": "获取媒体组列表",++ "operationId": "MediaController_getGroupList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ },++ {++ "name": "type",++ "required": false,++ "in": "query",++ "description": "类型",++ "schema": {++ "title": "类型",++ "type": "string",++ "enum": [++ "video",++ "img"++ ]++ }++ }++ ],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "summary": "获取媒体组列表",++ "tags": [++ "媒体资源"++ ]++ }++ },++ "/api/payment/checkout": {++ "get": {++ "operationId": "PaymentController_list",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CheckoutListBody"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取订单列表",++ "tags": [++ "payment - strip支付中台"++ ]++ },++ "post": {++ "operationId": "PaymentController_create",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/CheckoutBodyDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建订单",++ "tags": [++ "payment - strip支付中台"++ ]++ }++ },++ "/api/payment/checkout/{id}": {++ "get": {++ "operationId": "PaymentController_getById",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "查询订单",++ "tags": [++ "payment - strip支付中台"++ ]++ }++ },++ "/api/payment/refund": {++ "post": {++ "operationId": "PaymentController_refund",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/RefundBodyDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "订单退款",++ "tags": [++ "payment - strip支付中台"++ ]++ }++ },++ "/api/payment/subscription": {++ "get": {++ "operationId": "PaymentController_subscription",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/SubscriptionBodyDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "订阅列表",++ "tags": [++ "payment - strip支付中台"++ ]++ }++ },++ "/api/payment/unsubscribe": {++ "post": {++ "operationId": "PaymentController_unsubscribe",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UnSubscriptionBodyDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "退订",++ "tags": [++ "payment - strip支付中台"++ ]++ }++ },++ "/api/payment/webhook": {++ "post": {++ "operationId": "PaymentController_webhook",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "tags": [++ "payment - strip支付中台"++ ]++ }++ },++ "/api/payment/success/page": {++ "get": {++ "operationId": "PaymentController_paySuccessPage",++ "parameters": [],++ "responses": {++ "default": {++ "description": ""++ }++ },++ "tags": [++ "payment - strip支付中台"++ ]++ }++ },++ "/api/withdraw/create": {++ "post": {++ "operationId": "WithdrawController_create",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/WithdrawCreateDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "创建提现",++ "tags": [++ "withdraw - 提现"++ ]++ }++ },++ "/api/withdraw/info/{id}": {++ "get": {++ "operationId": "WithdrawController_getById",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "信息",++ "tags": [++ "withdraw - 提现"++ ]++ }++ },++ "/api/withdraw/list/{pageNo}/{pageSize}": {++ "get": {++ "operationId": "WithdrawController_subscription",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "列表",++ "tags": [++ "withdraw - 提现"++ ]++ }++ },++ "/api/task/opportunity/list/{pageNo}/{pageSize}": {++ "get": {++ "operationId": "TaskController_getTaskOpportunityList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取待接取的任务列表",++ "tags": [++ "task - 任务"++ ]++ }++ },++ "/api/task/opportunity/info/{opportunityId}": {++ "get": {++ "operationId": "TaskController_getTaskInfo",++ "parameters": [++ {++ "name": "opportunityId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/TaskWithOpportunityVo"++ }++ }++ }++ }++ },++ "summary": "获取任务信息",++ "tags": [++ "task - 任务"++ ]++ }++ },++ "/api/task/reward-amount": {++ "get": {++ "operationId": "TaskController_getTotalRewardAmount",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/TotalAmountVo"++ }++ }++ }++ }++ },++ "summary": "获取进行中任务的金额总数",++ "tags": [++ "task - 任务"++ ]++ }++ },++ "/api/task/accept": {++ "post": {++ "operationId": "TaskController_acceptTask",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/AcceptTaskDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserTaskVo"++ }++ }++ }++ }++ },++ "summary": "用户接取任务",++ "tags": [++ "task - 任务"++ ]++ }++ },++ "/api/task/submit": {++ "post": {++ "operationId": "TaskController_submitTask",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/SubmitTaskDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserTaskVo"++ }++ }++ }++ }++ },++ "summary": "用户提交完成任务",++ "tags": [++ "task - 任务"++ ]++ }++ },++ "/api/task/material/{id}": {++ "get": {++ "operationId": "MaterialController_getMaterial",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/MaterialVo"++ }++ }++ }++ }++ },++ "summary": "获取素材信息",++ "tags": [++ "task/material - 素材"++ ]++ }++ },++ "/api/task/material/task/{taskId}": {++ "get": {++ "operationId": "MaterialController_getMaterialsByTaskId",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/MaterialVo"++ }++ }++ }++ }++ }++ },++ "summary": "按任务ID获取素材列表",++ "tags": [++ "task/material - 素材"++ ]++ }++ },++ "/api/task/userTask/list/{pageNo}/{pageSize}": {++ "get": {++ "operationId": "UserTaskController_getUserTaskList",++ "parameters": [++ {++ "name": "pageNo",++ "required": true,++ "in": "path",++ "description": "页码",++ "schema": {++ "title": "页码",++ "type": "number"++ }++ },++ {++ "name": "pageSize",++ "required": true,++ "in": "path",++ "description": "页数",++ "schema": {++ "title": "页数",++ "type": "number"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "type": "object"++ }++ }++ }++ }++ }++ },++ "summary": "获取用户任务列表",++ "tags": [++ "task/userTask - 用户任务"++ ]++ }++ },++ "/api/task/userTask/info/{id}": {++ "get": {++ "operationId": "UserTaskController_getUserTaskById",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "获取用户任务详情",++ "tags": [++ "task/userTask - 用户任务"++ ]++ }++ },++ "/api/notification/unread-count": {++ "get": {++ "operationId": "NotificationController_getUnreadCount",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UnreadCountVo"++ }++ }++ }++ }++ },++ "summary": "获取未读通知数量",++ "tags": [++ "notification - 通知"++ ]++ }++ },++ "/api/notification": {++ "get": {++ "operationId": "NotificationController_getUserNotifications",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/NotificationListVo"++ }++ }++ }++ }++ },++ "summary": "获取用户通知列表",++ "tags": [++ "notification - 通知"++ ]++ },++ "delete": {++ "operationId": "NotificationController_deleteNotifications",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/BatchDeleteDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/OperationResultVo"++ }++ }++ }++ }++ },++ "summary": "删除通知",++ "tags": [++ "notification - 通知"++ ]++ }++ },++ "/api/notification/{id}": {++ "get": {++ "operationId": "NotificationController_getNotificationDetail",++ "parameters": [++ {++ "name": "id",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/NotificationVo"++ }++ }++ }++ }++ },++ "summary": "获取通知详情",++ "tags": [++ "notification - 通知"++ ]++ }++ },++ "/api/notification/read": {++ "put": {++ "operationId": "NotificationController_markAsRead",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/MarkAsReadDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/OperationResultVo"++ }++ }++ }++ }++ },++ "summary": "标记通知已读",++ "tags": [++ "notification - 通知"++ ]++ }++ },++ "/api/notification/read-all": {++ "put": {++ "operationId": "NotificationController_markAllAsRead",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/OperationResultVo"++ }++ }++ }++ }++ },++ "summary": "标记全部通知已读",++ "tags": [++ "notification - 通知"++ ]++ }++ },++ "/api/ai/chat": {++ "post": {++ "operationId": "AiController_chat",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserAiChatRequestDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserAiChatResponseVo"++ }++ }++ }++ }++ },++ "summary": "AI聊天对话",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/logs": {++ "get": {++ "operationId": "AiController_getLogs",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserLogsResponseVo"++ }++ }++ }++ }++ },++ "summary": "获取用户AI使用日志",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/image/generate": {++ "post": {++ "operationId": "AiController_generateImage",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserImageGenerationRequestDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserImageResponseVo"++ }++ }++ }++ }++ },++ "summary": "AI图片生成",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/image/edit": {++ "post": {++ "operationId": "AiController_editImage",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserImageEditRequestDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserImageResponseVo"++ }++ }++ }++ }++ },++ "summary": "AI图片编辑",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/image/variation": {++ "post": {++ "operationId": "AiController_variationImage",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserImageVariationRequestDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserImageResponseVo"++ }++ }++ }++ }++ },++ "summary": "AI图片变体",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/mj/submit/video": {++ "post": {++ "operationId": "AiController_mjSubmitVideo",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserVideoGenerationRequestDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/MjVideoSubmitResponseVo"++ }++ }++ }++ }++ },++ "summary": "MJ视频生成",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/mj/task/{taskId}/fetch": {++ "get": {++ "operationId": "AiController_mjFetchTask",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/MjTaskFetchResponseVo"++ }++ }++ }++ }++ },++ "summary": "MJ任务查询",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/video/generations": {++ "post": {++ "operationId": "AiController_videoGeneration",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/UserVideoGenerationDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/VideoGenerationResponseVo"++ }++ }++ }++ }++ },++ "summary": "通用视频生成",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/video/generations/{taskId}": {++ "get": {++ "operationId": "AiController_getVideoTaskStatus",++ "parameters": [++ {++ "name": "taskId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/VideoTaskStatusResponseVo"++ }++ }++ }++ }++ },++ "summary": "查询视频任务状态",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/md2card": {++ "post": {++ "operationId": "AiController_generateMd2Card",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/Md2CardRequestDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/Md2CardResponseVo"++ }++ }++ }++ }++ },++ "summary": "Markdown转卡片图片",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/fireflycard": {++ "post": {++ "operationId": "AiController_generateFireflycard",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/FireflycardRequestDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/FireflycardResponseVo"++ }++ }++ }++ }++ },++ "summary": "Fireflycard生成卡片图片(免费)",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/models/image/generation": {++ "get": {++ "operationId": "AiController_getImageGenerationModels",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/ImageGenerationModelVo"++ }++ }++ }++ }++ }++ },++ "summary": "获取图片生成模型参数",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/models/image/edit": {++ "get": {++ "operationId": "AiController_getImageEditModels",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/ImageEditModelVo"++ }++ }++ }++ }++ }++ },++ "summary": "获取图片编辑模型参数",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/models/video/generation": {++ "get": {++ "operationId": "AiController_getVideoGenerationModels",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/VideoGenerationModelVo"++ }++ }++ }++ }++ }++ },++ "summary": "获取视频生成模型参数",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/ai/models/chat": {++ "get": {++ "operationId": "AiController_getChatModels",++ "parameters": [],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/ChatModelVo"++ }++ }++ }++ }++ }++ },++ "summary": "获取对话模型参数",++ "tags": [++ "AI"++ ]++ }++ },++ "/api/statistics/account/latest/{accountId}": {++ "get": {++ "operationId": "StatisticsController_getAccountDataLatest",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取账号最新数据",++ "tags": [++ "statistics - 数据统计"++ ]++ }++ },++ "/api/statistics/account/increase/{accountId}": {++ "get": {++ "operationId": "StatisticsController_getAccountDataIncrease",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取账号增量",++ "tags": [++ "statistics - 数据统计"++ ]++ }++ },++ "/api/statistics/account/period/{accountId}": {++ "get": {++ "operationId": "StatisticsController_getAccountDataPeriod",++ "parameters": [++ {++ "name": "accountId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "startDate",++ "required": true,++ "in": "query",++ "description": "开始日期",++ "schema": {++ "type": "string"++ }++ },++ {++ "name": "endDate",++ "required": true,++ "in": "query",++ "description": "结束日期",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "string"++ }++ }++ }++ }++ },++ "summary": "获取账号一段时间内数据",++ "tags": [++ "statistics - 数据统计"++ ]++ }++ },++ "/api/statistics/channels/latest-batch": {++ "post": {++ "operationId": "StatisticsController_getChannelDataLatestByUids",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/BatchChannelLatestQueryDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "批量获取频道最新数据并汇总粉丝数",++ "tags": [++ "statistics - 数据统计"++ ]++ }++ },++ "/api/statistics/channels/period-batch": {++ "post": {++ "operationId": "StatisticsController_getChannelDataPeriodByUids",++ "parameters": [],++ "requestBody": {++ "required": true,++ "content": {++ "application/json": {++ "schema": {++ "$ref": "#/components/schemas/GetChannelDataPeriodByUidsDto"++ }++ }++ }++ },++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object"++ }++ }++ }++ }++ },++ "summary": "批量获取频道最新数据并汇总粉丝数",++ "tags": [++ "statistics - 数据统计"++ ]++ }++ },++ "/api/cloud-spaces": {++ "get": {++ "description": "获取云空间列表,支持分页查询,可按关键词、状态、区域进行筛选",++ "operationId": "CloudSpacesController_listCloudSpaces",++ "parameters": [++ {++ "name": "",++ "required": true,++ "in": "query",++ "schema": {++ "$ref": "#/components/schemas/ListCloudSpacesDto"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object",++ "properties": {},++ "required": [++ "data"++ ]++ }++ }++ }++ },++ "error": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object",++ "properties": {++ "code": {++ "type": "number",++ "description": "错误码"++ },++ "message": {++ "type": "string",++ "description": "错误消息"++ }++ },++ "required": [++ "code",++ "message"++ ]++ }++ }++ }++ }++ },++ "summary": "获取云空间列表",++ "tags": [++ "云空间管理"++ ]++ }++ },++ "/api/cloud-spaces/{cloudSpaceId}/status": {++ "get": {++ "description": "根据云空间ID获取云空间的当前状态信息,包括运行状态、资源使用情况等",++ "operationId": "CloudSpacesController_getCloudSpaceStatus",++ "parameters": [++ {++ "name": "cloudSpaceId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object",++ "properties": {},++ "required": [++ "data"++ ]++ }++ }++ }++ },++ "error": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object",++ "properties": {++ "code": {++ "type": "number",++ "description": "错误码"++ },++ "message": {++ "type": "string",++ "description": "错误消息"++ }++ },++ "required": [++ "code",++ "message"++ ]++ }++ }++ }++ }++ },++ "summary": "获取云空间状态",++ "tags": [++ "云空间管理"++ ]++ }++ },++ "/api/cloud-spaces/{cloudSpaceId}": {++ "delete": {++ "description": "根据云空间ID删除指定的云空间,此操作不可逆,请谨慎操作",++ "operationId": "CloudSpacesController_deleteCloudSpace",++ "parameters": [++ {++ "name": "cloudSpaceId",++ "required": true,++ "in": "path",++ "schema": {++ "type": "string"++ }++ }++ ],++ "responses": {++ "default": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object",++ "properties": {},++ "required": [++ "data"++ ]++ }++ }++ }++ },++ "error": {++ "description": "",++ "content": {++ "application/json": {++ "schema": {++ "type": "object",++ "properties": {++ "code": {++ "type": "number",++ "description": "错误码"++ },++ "message": {++ "type": "string",++ "description": "错误消息"++ }++ },++ "required": [++ "code",++ "message"++ ]++ }++ }++ }++ }++ },++ "summary": "删除云空间",++ "tags": [++ "云空间管理"++ ]++ }++ }++ },++ "info": {++ "title": "aitoearn-gateway",++ "description": "aitoearn-gateway API",++ "version": "",++ "contact": {}++ },++ "tags": [],++ "servers": [],++ "components": {++ "securitySchemes": {++ "bearer": {++ "scheme": "bearer",++ "bearerFormat": "JWT",++ "type": "http"++ }++ },++ "schemas": {++ "UserResDto": {++ "type": "object",++ "properties": {++ "id": {++ "type": "string",++ "title": "用户ID"++ },++ "name": {++ "type": "string",++ "title": "用户名"++ },++ "phone": {++ "type": "string",++ "title": "手机号"++ },++ "gender": {++ "type": "number",++ "title": "性别",++ "enum": [++ 1,++ 2++ ]++ },++ "avatar": {++ "type": "string",++ "title": "头像图片链接"++ },++ "desc": {++ "type": "string",++ "title": "简介"++ }++ },++ "required": [++ "id",++ "name",++ "phone"++ ]++ },++ "UpdateUserInfoDto": {++ "type": "object",++ "properties": {}++ },++ "PointsRecordsVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "list": {++ "description": "积分记录列表",++ "type": "array",++ "items": {++ "type": "object",++ "properties": {++ "id": {++ "description": "记录ID",++ "type": "string"++ },++ "userId": {++ "description": "用户ID",++ "type": "string"++ },++ "amount": {++ "description": "积分变动数量",++ "type": "number"++ },++ "balance": {++ "description": "变动后余额",++ "type": "number"++ },++ "type": {++ "description": "积分变动类型, ai_service ai 生成, user_register 用户注册",++ "type": "string"++ },++ "description": {++ "description": "积分变动描述",++ "type": "string"++ },++ "metadata": {++ "description": "额外信息",++ "type": "object",++ "propertyNames": {++ "type": "string"++ },++ "additionalProperties": {}++ }++ },++ "required": [++ "id",++ "userId",++ "amount",++ "balance",++ "type"++ ],++ "additionalProperties": false++ }++ },++ "total": {++ "description": "总记录数",++ "type": "number"++ }++ },++ "required": [++ "list",++ "total"++ ],++ "additionalProperties": false++ },++ "MailLoginDto": {++ "type": "object",++ "properties": {++ "mail": {++ "type": "string",++ "title": "邮箱"++ },++ "password": {++ "type": "string"++ }++ },++ "required": [++ "mail",++ "password"++ ]++ },++ "GetRegistByMailBackDto": {++ "type": "object",++ "properties": {++ "code": {++ "type": "string"++ },++ "mail": {++ "type": "string",++ "title": "邮箱"++ },++ "password": {++ "type": "string"++ },++ "inviteCode": {++ "type": "string"++ }++ },++ "required": [++ "code",++ "mail",++ "password"++ ]++ },++ "MailRepasswordDto": {++ "type": "object",++ "properties": {++ "mail": {++ "type": "string",++ "title": "邮箱"++ }++ },++ "required": [++ "mail"++ ]++ },++ "GoogleLoginDto": {++ "type": "object",++ "properties": {++ "clientId": {++ "type": "string",++ "description": "Google客户端ID"++ },++ "credential": {++ "type": "string",++ "description": "Google认证凭证"++ }++ },++ "required": [++ "clientId",++ "credential"++ ]++ },++ "UserCancelDto": {++ "type": "object",++ "properties": {++ "code": {++ "type": "string"++ }++ },++ "required": [++ "code"++ ]++ },++ "CreateFeedBackDto": {++ "type": "object",++ "properties": {++ "content": {++ "type": "string",++ "title": "内容"++ },++ "type": {++ "type": "string",++ "title": "类型",++ "description": ""++ },++ "tagList": {++ "description": "标识数组",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "fileUrlList": {++ "description": "文件链接数组",++ "type": "array",++ "items": {++ "type": "string"++ }++ }++ },++ "required": [++ "content",++ "tagList",++ "fileUrlList"++ ]++ },++ "InitMultipartUploadDto": {++ "type": "object",++ "properties": {++ "fileName": {++ "type": "string",++ "title": "文件名称"++ },++ "secondPath": {++ "type": "string",++ "title": "存放位置"++ },++ "fileSize": {++ "type": "string",++ "title": "文件大小"++ },++ "contentType": {++ "type": "string",++ "title": "文件类型"++ }++ },++ "required": [++ "fileName",++ "secondPath",++ "fileSize",++ "contentType"++ ]++ },++ "CompletePartDto": {++ "type": "object",++ "properties": {++ "fileId": {++ "type": "string",++ "title": "文件key"++ },++ "uploadId": {++ "type": "string",++ "title": "上传ID"++ },++ "parts": {++ "title": "分片",++ "type": "array",++ "items": {++ "type": "string"++ }++ }++ },++ "required": [++ "fileId",++ "uploadId",++ "parts"++ ]++ },++ "BilibiliPublishOptionDto": {++ "type": "object",++ "properties": {++ "tid": {++ "type": "number",++ "title": "分区ID",++ "description": "由获取分区信息接口得到"++ },++ "no_reprint": {++ "type": "number",++ "title": "是否允许转载",++ "enum": [++ 1,++ 0++ ],++ "description": "0-允许,1-不允许"++ },++ "copyright": {++ "type": "number",++ "title": "版权",++ "enum": [++ 1,++ 2++ ],++ "description": "版权"++ },++ "source": {++ "type": "string",++ "title": "来源",++ "description": "如果copyright为转载,则此字段表示转载来源"++ }++ },++ "required": [++ "tid",++ "no_reprint",++ "copyright",++ "source"++ ]++ },++ "GzhPublishOptionDto": {++ "type": "object",++ "properties": {++ "tid": {++ "type": "number",++ "title": "分区ID",++ "description": "由获取分区信息接口得到"++ }++ },++ "required": [++ "tid"++ ]++ },++ "YoutubePublishOptionDto": {++ "type": "object",++ "properties": {++ "privacyStatus": {++ "type": "string",++ "title": "隐私状态",++ "enum": [++ "public",++ "unlisted",++ "private"++ ],++ "description": "隐私状态"++ },++ "tag": {++ "type": "string",++ "title": "关键词",++ "description": "多个关键词用英文逗号分隔"++ },++ "categoryId": {++ "type": "string",++ "title": "类别ID",++ "description": "类别ID"++ },++ "publishAt": {++ "type": "string",++ "title": "发布时间",++ "description": "发布时间"++ }++ },++ "required": [++ "privacyStatus"++ ]++ },++ "FacebookPostOptionsDto": {++ "type": "object",++ "properties": {++ "content_category": {++ "type": "string",++ "title": "facebook post category",++ "description": "post category"++ },++ "content_tags": {++ "title": "内容标签",++ "description": "内容标签",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "custom_labels": {++ "title": "自定义标签",++ "description": "自定义标签",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "direct_share_status": {++ "type": "number",++ "title": "直接分享状态",++ "description": "直接分享状态"++ },++ "embeddable": {++ "type": "boolean",++ "title": "是否可嵌入",++ "description": "是否可嵌入"++ }++ }++ },++ "InstagramPostOptionsDto": {++ "type": "object",++ "properties": {++ "content_category": {++ "type": "string",++ "title": "内容分类",++ "description": "内容分类"++ },++ "alt_text": {++ "type": "string",++ "title": "替代文本"++ },++ "caption": {++ "type": "string",++ "title": "标题"++ },++ "collaborators": {++ "title": "协作者",++ "description": "协作者列表",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "cover_url": {++ "type": "string",++ "title": "封面URL",++ "description": "封面图片的URL"++ },++ "image_url": {++ "type": "string",++ "title": "图片URL",++ "description": "图片的URL"++ },++ "location_id": {++ "type": "string",++ "title": "位置ID",++ "description": "位置ID,用于标记发布内容的位置,通常用于地理标签"++ },++ "product_tags": {++ "title": "产品标签",++ "description": "产品标签列表",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "user_tags": {++ "title": "用户标签",++ "description": "用户标签列表",++ "type": "array",++ "items": {++ "type": "string"++ }++ }++ }++ },++ "ThreadsPostOptionsDto": {++ "type": "object",++ "properties": {++ "reply_control": {++ "type": "string",++ "title": "回复控制",++ "description": "回复控制选项"++ },++ "allowlisted_country_codes": {++ "title": "允许的国家代码",++ "description": "允许的国家代码列表",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "alt_text": {++ "type": "string",++ "title": "替代文本",++ "description": "替代文本"++ },++ "auto_publish_text": {++ "type": "boolean",++ "title": "自动发布文本",++ "description": "是否自动发布文本"++ },++ "topic_tags": {++ "type": "string",++ "title": "话题标签",++ "description": "话题标签列表"++ }++ }++ },++ "TiktokPostOptionsDto": {++ "type": "object",++ "properties": {++ "privacy_level": {++ "type": "string",++ "title": "privacy level",++ "description": "privacy level"++ },++ "disable_duet": {++ "type": "boolean",++ "title": "disable duet",++ "description": "disable duet"++ },++ "disable_stitch": {++ "type": "boolean",++ "title": "disable stitch",++ "description": "disable stitch"++ },++ "disable_comment": {++ "type": "boolean",++ "title": "disable comment",++ "description": "disable comment"++ },++ "brand_organic_toggle": {++ "type": "boolean",++ "title": "organic brand",++ "description": "organic brand"++ },++ "brand_content_toggle": {++ "type": "boolean",++ "title": "brand content",++ "description": "brand content"++ }++ }++ },++ "PublishOptionDto": {++ "type": "object",++ "properties": {++ "bilibili": {++ "title": "B站参数",++ "description": "B站参数",++ "allOf": [++ {++ "$ref": "#/components/schemas/BilibiliPublishOptionDto"++ }++ ]++ },++ "wxGzh": {++ "title": "B站参数",++ "description": "微信公众号参数",++ "allOf": [++ {++ "$ref": "#/components/schemas/GzhPublishOptionDto"++ }++ ]++ },++ "youtube": {++ "title": "B站参数",++ "description": "微信公众号参数",++ "allOf": [++ {++ "$ref": "#/components/schemas/YoutubePublishOptionDto"++ }++ ]++ },++ "facebook": {++ "title": "Facebook参数",++ "description": "Facebook参数",++ "allOf": [++ {++ "$ref": "#/components/schemas/FacebookPostOptionsDto"++ }++ ]++ },++ "instagram": {++ "title": "Instagram参数",++ "description": "Instagram参数",++ "allOf": [++ {++ "$ref": "#/components/schemas/InstagramPostOptionsDto"++ }++ ]++ },++ "threads": {++ "title": "Threads参数",++ "description": "Threads参数",++ "allOf": [++ {++ "$ref": "#/components/schemas/ThreadsPostOptionsDto"++ }++ ]++ },++ "tiktok": {++ "title": "Tiktok参数",++ "description": "Tiktok参数",++ "allOf": [++ {++ "$ref": "#/components/schemas/TiktokPostOptionsDto"++ }++ ]++ }++ }++ },++ "CreatePublishDto": {++ "type": "object",++ "properties": {++ "flowId": {++ "type": "string",++ "title": "流水ID",++ "description": "流水ID--使用UUID"++ },++ "type": {++ "type": "string",++ "title": "类型",++ "enum": [++ "video",++ "article"++ ],++ "description": "类型"++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "内容"++ },++ "accountId": {++ "type": "string",++ "title": "账户ID"++ },++ "accountType": {++ "type": "string",++ "title": "平台类型",++ "enum": [++ "douyin",++ "xhs",++ "wxSph",++ "KWAI",++ "youtube",++ "wxGzh",++ "bilibili",++ "twitter",++ "tiktok",++ "facebook",++ "instagram",++ "threads",++ "pinterest"++ ],++ "description": "平台类型"++ },++ "videoUrl": {++ "type": "string",++ "title": "视频路径"++ },++ "coverUrl": {++ "type": "string",++ "title": "封面路径"++ },++ "imgUrlList": {++ "title": "图片列表",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "publishTime": {++ "format": "date-time",++ "type": "string",++ "title": "发布日期"++ },++ "topics": {++ "title": "话题列表",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "option": {++ "title": "其他配置",++ "description": "其他配置",++ "allOf": [++ {++ "$ref": "#/components/schemas/PublishOptionDto"++ }++ ]++ }++ },++ "required": [++ "flowId",++ "type",++ "title",++ "desc",++ "accountId",++ "accountType"++ ]++ },++ "CreatePublishRecordDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "flowId": {++ "type": "string"++ },++ "dataId": {++ "type": "string"++ },++ "type": {++ "type": "string",++ "enum": [++ "video",++ "article"++ ]++ },++ "title": {++ "type": "string"++ },++ "desc": {++ "type": "string"++ },++ "userTaskId": {++ "type": "string"++ },++ "accountId": {++ "type": "string"++ },++ "topics": {++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "accountType": {++ "type": "string",++ "enum": [++ "douyin",++ "xhs",++ "wxSph",++ "KWAI",++ "youtube",++ "wxGzh",++ "bilibili",++ "twitter",++ "tiktok",++ "facebook",++ "instagram",++ "threads",++ "pinterest"++ ]++ },++ "uid": {++ "type": "string"++ },++ "videoUrl": {++ "type": "string"++ },++ "coverUrl": {++ "type": "string"++ },++ "imgUrlList": {++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "publishTime": {},++ "imgList": {++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "errorMsg": {++ "type": "string"++ },++ "option": {}++ },++ "required": [++ "dataId",++ "type",++ "accountId",++ "topics",++ "accountType",++ "uid",++ "publishTime",++ "option"++ ],++ "additionalProperties": false++ },++ "PubRecordListFilterDto": {++ "type": "object",++ "properties": {++ "accountType": {++ "type": "string",++ "title": "账户类型",++ "enum": [++ "douyin",++ "xhs",++ "wxSph",++ "KWAI",++ "youtube",++ "wxGzh",++ "bilibili",++ "twitter",++ "tiktok",++ "facebook",++ "instagram",++ "threads",++ "pinterest"++ ],++ "description": "账户类型"++ },++ "type": {++ "type": "string",++ "title": "类型",++ "enum": [++ "video",++ "article"++ ],++ "description": "类型"++ },++ "status": {++ "type": "number",++ "title": "状态",++ "enum": [++ -1,++ 0,++ 1,++ 2++ ],++ "description": "状态"++ },++ "time": {++ "title": "创建时间区间,必须为UTC时间",++ "type": "array",++ "items": {++ "type": "string"++ }++ }++ }++ },++ "PublishRecordItemDto": {++ "type": "object",++ "properties": {++ "dataId": {++ "type": "string",++ "description": "数据ID"++ },++ "id": {++ "type": "string",++ "description": "记录ID"++ },++ "flowId": {++ "type": "string",++ "example": "flow001",++ "description": "流程ID"++ },++ "type": {++ "type": "string",++ "example": "video",++ "description": "发布类型(如 video, article)"++ },++ "title": {++ "type": "string",++ "example": "标题示例",++ "description": "发布标题"++ },++ "desc": {++ "type": "string",++ "example": "这是一个描述",++ "description": "发布描述"++ },++ "accountId": {++ "type": "string",++ "example": "ACCOUNT-001",++ "description": "账号ID"++ },++ "accountType": {++ "type": "string",++ "enum": [++ "douyin",++ "xhs",++ "wxSph",++ "KWAI",++ "youtube",++ "wxGzh",++ "bilibili",++ "twitter",++ "tiktok",++ "facebook",++ "instagram",++ "threads",++ "pinterest"++ ],++ "description": "账号类型"++ },++ "uid": {++ "type": "string",++ "example": "USER-001",++ "description": "用户UID"++ },++ "videoUrl": {++ "type": "string",++ "example": "https://example.com/video.mp4",++ "description": "视频地址"++ },++ "coverUrl": {++ "type": "string",++ "example": "https://example.com/cover.jpg",++ "description": "封面图地址"++ },++ "imgUrlList": {++ "example": [++ "https://example.com/image1.jpg",++ "https://example.com/image2.jpg"++ ],++ "description": "图片列表",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "publishTime": {++ "format": "date-time",++ "type": "string",++ "example": "2025-04-27T18:00:18Z",++ "description": "发布时间"++ },++ "status": {++ "type": "number",++ "enum": [++ -1,++ 0,++ 1,++ 2++ ],++ "description": "发布状态"++ },++ "errorMsg": {++ "type": "string",++ "example": "错误信息(可为空)",++ "description": "错误信息",++ "nullable": true++ }++ },++ "required": [++ "dataId",++ "id",++ "flowId",++ "type",++ "title",++ "desc",++ "accountId",++ "accountType",++ "uid",++ "imgUrlList",++ "publishTime",++ "status",++ "errorMsg"++ ]++ },++ "UpdatePublishRecordTimeDto": {++ "type": "object",++ "properties": {++ "id": {++ "type": "string",++ "title": "数据ID"++ },++ "publishTime": {++ "format": "date-time",++ "type": "string",++ "title": "新的发布时间"++ }++ },++ "required": [++ "id"++ ]++ },++ "AddArcCommentDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "title": "账号ID",++ "description": "账号ID"++ },++ "dataId": {++ "type": "string",++ "title": "作品ID",++ "description": "作品ID"++ },++ "content": {++ "type": "string",++ "title": "内容",++ "description": "内容"++ }++ },++ "required": [++ "accountId",++ "dataId",++ "content"++ ]++ },++ "ReplyCommentDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "title": "账号ID",++ "description": "账号ID"++ },++ "commentId": {++ "type": "string",++ "title": "评论ID",++ "description": "评论ID"++ },++ "content": {++ "type": "string",++ "title": "内容",++ "description": "内容"++ }++ },++ "required": [++ "accountId",++ "commentId",++ "content"++ ]++ },++ "DelCommentDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "title": "账号ID",++ "description": "账号ID"++ },++ "commentId": {++ "type": "string",++ "title": "评论ID",++ "description": "评论ID"++ }++ },++ "required": [++ "accountId",++ "commentId"++ ]++ },++ "CreateSkKeyDto": {++ "type": "object",++ "properties": {++ "desc": {++ "type": "string",++ "title": "备注",++ "description": "备注"++ }++ }++ },++ "SkKeyUpInfoDto": {++ "type": "object",++ "properties": {++ "key": {++ "type": "string",++ "title": "key",++ "description": "key"++ },++ "desc": {++ "type": "string",++ "title": "备注",++ "description": "备注"++ }++ },++ "required": [++ "key",++ "desc"++ ]++ },++ "SkKeyAddRefAccountDto": {++ "type": "object",++ "properties": {++ "key": {++ "type": "string",++ "title": "key",++ "description": "key"++ },++ "accountId": {++ "type": "string",++ "title": "账号ID",++ "description": "账号ID"++ }++ },++ "required": [++ "key",++ "accountId"++ ]++ },++ "VideoInitDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "title": "账户ID"++ },++ "name": {++ "type": "string",++ "title": "文件名称(带格式)"++ },++ "utype": {++ "type": "number",++ "enum": [++ 0,++ 1++ ]++ }++ },++ "required": [++ "accountId",++ "name",++ "utype"++ ]++ },++ "VideoCompleteDto": {++ "type": "object",++ "properties": {++ "uploadToken": {++ "type": "string",++ "title": "上传token"++ }++ },++ "required": [++ "uploadToken"++ ]++ },++ "UploadLitVideoDto": {++ "type": "object",++ "properties": {++ "uploadToken": {++ "type": "string",++ "title": "上传token"++ }++ },++ "required": [++ "uploadToken"++ ]++ },++ "ArchiveAddByUtokenBodyDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "title": "账户ID"++ },++ "uploadToken": {++ "type": "string",++ "title": "上传token"++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "cover": {++ "type": "string",++ "title": "封面url"++ },++ "tid": {++ "type": "number",++ "title": "分区ID,由获取分区信息接口得到"++ },++ "noReprint": {++ "type": "number",++ "title": "是否允许转载 0-允许,1-不允许。默认0"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ },++ "tag": {++ "title": "标签",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "copyright": {++ "type": "number",++ "title": "1-原创,2-转载(转载时source必填)"++ },++ "source": {++ "type": "string",++ "title": "如果copyright为转载,则此字段表示转载来源"++ }++ },++ "required": [++ "accountId",++ "uploadToken",++ "title",++ "tid",++ "noReprint",++ "copyright"++ ]++ },++ "AuthBackQueryDto": {++ "type": "object",++ "properties": {}++ },++ "InsertCommentThreadsDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "channelId": {++ "type": "string",++ "description": "频道ID"++ },++ "videoId": {++ "type": "string",++ "description": "视频ID"++ },++ "textOriginal": {++ "type": "string",++ "description": "评论内容"++ }++ },++ "required": [++ "accountId",++ "channelId",++ "videoId",++ "textOriginal"++ ]++ },++ "SetCommentThreadsModerationStatusDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "评论ID"++ },++ "moderationStatus": {++ "type": "string",++ "description": "审核状态,heldForReview 等待管理员审核 published - 清除要公开显示的评论。 rejected - 不显示该评论",++ "enum": [++ "heldForReview",++ "published",++ "rejected"++ ]++ },++ "banAuthor": {++ "type": "boolean",++ "description": "是否自动拒绝评论作者撰写的任何其他评论 将作者加入黑名单,"++ }++ },++ "required": [++ "accountId",++ "id",++ "moderationStatus"++ ]++ },++ "InsertCommentDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "textOriginal": {++ "type": "string",++ "description": "评论内容, 注意:textOriginal 和 parentId 必须有且只能有一个"++ },++ "parentId": {++ "type": "string",++ "description": "父评论ID, 注意:textOriginal 和 parentId 必须有且只能有一个"++ }++ },++ "required": [++ "accountId"++ ]++ },++ "UpdateCommentDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "评论ID"++ },++ "textOriginal": {++ "type": "string",++ "description": "评论内容"++ }++ },++ "required": [++ "accountId",++ "id",++ "textOriginal"++ ]++ },++ "DeleteCommentDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "评论ID"++ }++ },++ "required": [++ "accountId",++ "id"++ ]++ },++ "VideoRateDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "视频ID"++ },++ "rating": {++ "type": "string",++ "description": "点赞、踩 like/dislike/none ",++ "enum": [++ "like",++ "dislike",++ "none"++ ]++ }++ },++ "required": [++ "accountId",++ "id",++ "rating"++ ]++ },++ "DeleteVideoDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "视频ID"++ }++ },++ "required": [++ "accountId",++ "id"++ ]++ },++ "UpdateVideoDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "视频ID"++ },++ "title": {++ "type": "string",++ "description": "标题"++ },++ "categoryId": {++ "type": "string",++ "description": "类别ID"++ },++ "defaultLanguage": {++ "type": "string",++ "description": "默认语言"++ },++ "description": {++ "type": "string",++ "description": "描述"++ },++ "privacyStatus": {++ "type": "string",++ "description": "隐私状态"++ },++ "tags": {++ "type": "string",++ "description": "标签"++ },++ "publishAt": {++ "type": "string",++ "description": "发布时间"++ },++ "recordingDate": {++ "type": "string",++ "description": "录制日期"++ }++ },++ "required": [++ "accountId",++ "id",++ "title",++ "categoryId"++ ]++ },++ "InsertPlayListDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "title": {++ "type": "string",++ "description": "标题"++ },++ "description": {++ "type": "string",++ "description": "描述"++ },++ "privacyStatus": {++ "type": "string",++ "description": "隐私状态"++ }++ },++ "required": [++ "accountId",++ "title"++ ]++ },++ "UpdatePlayListDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "播放列表ID"++ },++ "title": {++ "type": "string",++ "description": "标题"++ },++ "description": {++ "type": "string",++ "description": "描述"++ },++ "privacyStatus": {++ "type": "string",++ "description": "隐私状态"++ },++ "podcastStatus": {++ "type": "string",++ "description": "播客状态"++ }++ },++ "required": [++ "accountId",++ "id",++ "title"++ ]++ },++ "DeletePlayListDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "播放列表ID"++ }++ },++ "required": [++ "accountId",++ "id"++ ]++ },++ "GetPlayListDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "channelId": {++ "type": "string",++ "description": "频道ID"++ },++ "id": {++ "type": "string",++ "description": "播放列表ID"++ },++ "mine": {++ "type": "boolean",++ "description": "我的播放列表"++ },++ "maxResults": {++ "type": "number",++ "description": "最大结果数"++ },++ "pageToken": {++ "type": "string",++ "description": "分页令牌"++ }++ },++ "required": [++ "accountId"++ ]++ },++ "InsertPlayItemsDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "playlistId": {++ "type": "string",++ "description": "播放列表ID"++ },++ "resourceId": {++ "type": "string",++ "description": "资源ID"++ },++ "position": {++ "type": "number",++ "description": "位置"++ },++ "note": {++ "type": "string",++ "description": "说明"++ },++ "startAt": {++ "type": "string",++ "description": "开始时间"++ },++ "endAt": {++ "type": "string",++ "description": "结束时间"++ }++ },++ "required": [++ "accountId",++ "playlistId",++ "resourceId"++ ]++ },++ "UpdatePlayItemsDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "播放列表项ID"++ },++ "playlistId": {++ "type": "string",++ "description": "播放列表ID"++ },++ "resourceId": {++ "type": "string",++ "description": "资源ID"++ },++ "position": {++ "type": "number",++ "description": "位置"++ },++ "note": {++ "type": "string",++ "description": "说明"++ },++ "startAt": {++ "type": "string",++ "description": "开始时间"++ },++ "endAt": {++ "type": "string",++ "description": "结束时间"++ }++ },++ "required": [++ "accountId",++ "id",++ "playlistId",++ "resourceId"++ ]++ },++ "DeletePlayItemsDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "播放列表项ID"++ }++ },++ "required": [++ "accountId",++ "id"++ ]++ },++ "GetPlayItemsDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "id": {++ "type": "string",++ "description": "播放列表ID"++ },++ "playlistId": {++ "type": "string",++ "description": "我的播放列表"++ },++ "maxResults": {++ "type": "number",++ "description": "最大结果数"++ },++ "pageToken": {++ "type": "string",++ "description": "分页令牌"++ },++ "videoId": {++ "type": "string",++ "description": "视频ID"++ }++ },++ "required": [++ "accountId"++ ]++ },++ "GetChannelsSectionsListDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID"++ },++ "channelId": {++ "type": "string",++ "description": "频道ID, 注意:channelId、id、mine,必须有且只能有一个"++ },++ "id": {++ "type": "string",++ "description": "板块ID, 多个id用英文逗号分隔,注意:channelId、id、mine,必须有且只能有一个"++ },++ "mine": {++ "type": "boolean",++ "description": "是否查询自己的板块, 注意:channelId、id、mine,必须有且只能有一个"++ }++ },++ "required": [++ "accountId"++ ]++ },++ "SearchDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "description": "账号ID",++ "example": "account_123"++ },++ "forMine": {++ "type": "boolean",++ "description": "是否搜索我的内容",++ "example": false++ },++ "maxResults": {++ "type": "number",++ "description": "最大结果数",++ "example": 10++ },++ "order": {++ "type": "string",++ "description": "排序方法",++ "enum": [++ "relevance",++ "date",++ "rating",++ "title",++ "videoCount",++ "viewCount"++ ],++ "example": "relevance"++ },++ "pageToken": {++ "type": "string",++ "description": "分页令牌",++ "example": "next_page_token"++ },++ "publishedBefore": {++ "type": "string",++ "description": "发布时间之前",++ "example": "2024-01-01T00:00:00Z"++ },++ "publishedAfter": {++ "type": "string",++ "description": "发布时间之后",++ "example": "2024-01-01T00:00:00Z"++ },++ "q": {++ "type": "string",++ "description": "搜索查询字词",++ "example": "编程教程"++ },++ "type": {++ "type": "string",++ "description": "搜索类型",++ "enum": [++ "video",++ "channel",++ "playlist"++ ],++ "example": "video"++ },++ "videoCategoryId": {++ "type": "string",++ "description": "视频类别ID",++ "example": "22"++ }++ },++ "required": [++ "accountId"++ ]++ },++ "GetAuthUrlDto": {++ "type": "object",++ "properties": {++ "platform": {++ "type": "string",++ "title": "平台名称"++ }++ },++ "required": [++ "platform"++ ]++ },++ "RefreshTokenDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "title": "账户ID"++ },++ "refreshToken": {++ "type": "string",++ "title": "刷新令牌"++ }++ },++ "required": [++ "accountId",++ "refreshToken"++ ]++ },++ "VideoPublishDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "title": "账户ID"++ },++ "postInfo": {++ "type": "object",++ "title": "发布信息"++ },++ "sourceInfo": {++ "type": "object",++ "title": "源信息"++ }++ },++ "required": [++ "accountId",++ "postInfo",++ "sourceInfo"++ ]++ },++ "PhotoPublishDto": {++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "title": "账户ID"++ },++ "postMode": {++ "type": "string",++ "title": "发布模式"++ },++ "postInfo": {++ "type": "object",++ "title": "发布信息"++ },++ "sourceInfo": {++ "type": "object",++ "title": "源信息"++ }++ },++ "required": [++ "accountId",++ "postMode",++ "postInfo",++ "sourceInfo"++ ]++ },++ "UploadVideoFileDto": {++ "type": "object",++ "properties": {++ "uploadUrl": {++ "type": "string",++ "title": "上传URL"++ },++ "contentType": {++ "type": "string",++ "title": "内容类型"++ }++ },++ "required": [++ "uploadUrl",++ "contentType"++ ]++ },++ "CreateBoardBodyDto": {++ "type": "object",++ "properties": {++ "name": {++ "type": "string",++ "title": "画板名称"++ }++ },++ "required": [++ "name"++ ]++ },++ "MediaSource": {++ "type": "object",++ "properties": {++ "source_type": {++ "type": "object",++ "title": "媒体类型"++ },++ "url": {++ "type": "string",++ "title": "地址"++ }++ },++ "required": [++ "source_type",++ "url"++ ]++ },++ "CreatePinBodyDto": {++ "type": "object",++ "properties": {++ "board_id": {++ "type": "string",++ "title": "此Pin所属board的板块。"++ },++ "link": {++ "type": "string",++ "title": "点击连接跳转的link"++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "description": {++ "type": "string",++ "title": "描述"++ },++ "decs": {++ "type": "string",++ "title": "描述"++ },++ "dominant_color": {++ "type": "string",++ "title": "RGB表示的颜色 主引脚颜色。十六进制数,例如“#6E7874”"++ },++ "alt_text": {++ "type": "string",++ "title": "鼠标悬浮描述"++ },++ "media_source": {++ "title": "媒体来源",++ "allOf": [++ {++ "$ref": "#/components/schemas/MediaSource"++ }++ ]++ },++ "items": {++ "title": "点开pin里面包含的图片文案信息",++ "type": "array",++ "items": {++ "type": "string"++ }++ }++ },++ "required": [++ "board_id",++ "media_source",++ "items"++ ]++ },++ "FacebookPageSelectionDto": {++ "type": "object",++ "properties": {++ "pageIds": {++ "title": "页面ID列表",++ "type": "array",++ "items": {++ "type": "string"++ }++ }++ },++ "required": [++ "pageIds"++ ]++ },++ "AddInteractionRecordDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "minLength": 1++ },++ "type": {++ "type": "string",++ "enum": [++ "douyin",++ "xhs",++ "wxSph",++ "KWAI",++ "youtube",++ "wxGzh",++ "bilibili",++ "twitter",++ "tiktok",++ "facebook",++ "instagram",++ "threads",++ "pinterest"++ ]++ },++ "worksId": {++ "type": "string",++ "minLength": 1++ },++ "worksTitle": {++ "type": "string"++ },++ "worksCover": {++ "type": "string"++ },++ "worksContent": {++ "type": "string"++ },++ "commentContent": {++ "type": "string"++ },++ "commentRemark": {++ "type": "string"++ },++ "commentTime": {++ "type": "string"++ },++ "likeTime": {++ "type": "string"++ },++ "collectTime": {++ "type": "string"++ }++ },++ "required": [++ "accountId",++ "type",++ "worksId"++ ],++ "additionalProperties": false++ },++ "AddReplyCommentRecordDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "accountId": {++ "type": "string",++ "minLength": 1++ },++ "type": {++ "type": "string",++ "enum": [++ "douyin",++ "xhs",++ "wxSph",++ "KWAI",++ "youtube",++ "wxGzh",++ "bilibili",++ "twitter",++ "tiktok",++ "facebook",++ "instagram",++ "threads",++ "pinterest"++ ]++ },++ "commentId": {++ "type": "string",++ "minLength": 1++ },++ "worksId": {++ "type": "string"++ },++ "commentContent": {++ "type": "string",++ "minLength": 1++ },++ "replyContent": {++ "type": "string",++ "minLength": 1++ }++ },++ "required": [++ "accountId",++ "type",++ "commentId",++ "commentContent",++ "replyContent"++ ],++ "additionalProperties": false++ },++ "CreateAccountDto": {++ "type": "object",++ "properties": {++ "refresh_token": {++ "type": "string",++ "description": "refresh_token"++ },++ "access_token": {++ "type": "string",++ "description": "access_token"++ },++ "type": {++ "type": "string",++ "description": "平台类型",++ "enum": [++ "douyin",++ "xhs",++ "wxSph",++ "KWAI",++ "youtube",++ "wxGzh",++ "bilibili",++ "twitter",++ "tiktok",++ "facebook",++ "instagram",++ "threads",++ "pinterest"++ ]++ },++ "loginCookie": {++ "type": "string",++ "description": "登录Cookie"++ },++ "loginTime": {++ "format": "date-time",++ "type": "string",++ "description": "登录时间"++ },++ "uid": {++ "type": "string",++ "description": "平台用户ID"++ },++ "account": {++ "type": "string",++ "description": "账号"++ },++ "avatar": {++ "type": "string",++ "description": "头像"++ },++ "nickname": {++ "type": "string",++ "description": "昵称"++ },++ "fansCount": {++ "type": "number",++ "description": "粉丝数"++ },++ "readCount": {++ "type": "number",++ "description": "阅读数"++ },++ "likeCount": {++ "type": "number",++ "description": "点赞数"++ },++ "collectCount": {++ "type": "number",++ "description": "收藏数"++ },++ "forwardCount": {++ "type": "number",++ "description": "转发数"++ },++ "commentCount": {++ "type": "number",++ "description": "评论数"++ },++ "lastStatsTime": {++ "format": "date-time",++ "type": "string",++ "description": "最后统计时间"++ },++ "workCount": {++ "type": "number",++ "description": "作品数"++ },++ "income": {++ "type": "number",++ "description": "收入"++ },++ "groupId": {++ "type": "string",++ "description": "账户组ID"++ }++ },++ "required": [++ "refresh_token",++ "access_token",++ "type",++ "loginCookie",++ "loginTime",++ "uid",++ "account",++ "avatar",++ "nickname",++ "fansCount",++ "readCount",++ "likeCount",++ "collectCount",++ "forwardCount",++ "commentCount",++ "lastStatsTime",++ "workCount",++ "income",++ "groupId"++ ]++ },++ "UpdateAccountDto": {++ "type": "object",++ "properties": {++ "refresh_token": {++ "type": "string",++ "description": "refresh_token"++ },++ "access_token": {++ "type": "string",++ "description": "access_token"++ },++ "type": {++ "type": "string",++ "description": "平台类型",++ "enum": [++ "douyin",++ "xhs",++ "wxSph",++ "KWAI",++ "youtube",++ "wxGzh",++ "bilibili",++ "twitter",++ "tiktok",++ "facebook",++ "instagram",++ "threads",++ "pinterest"++ ]++ },++ "loginCookie": {++ "type": "string",++ "description": "登录Cookie"++ },++ "loginTime": {++ "format": "date-time",++ "type": "string",++ "description": "登录时间"++ },++ "uid": {++ "type": "string",++ "description": "平台用户ID"++ },++ "account": {++ "type": "string",++ "description": "账号"++ },++ "avatar": {++ "type": "string",++ "description": "头像"++ },++ "nickname": {++ "type": "string",++ "description": "昵称"++ },++ "fansCount": {++ "type": "number",++ "description": "粉丝数"++ },++ "readCount": {++ "type": "number",++ "description": "阅读数"++ },++ "likeCount": {++ "type": "number",++ "description": "点赞数"++ },++ "collectCount": {++ "type": "number",++ "description": "收藏数"++ },++ "forwardCount": {++ "type": "number",++ "description": "转发数"++ },++ "commentCount": {++ "type": "number",++ "description": "评论数"++ },++ "lastStatsTime": {++ "format": "date-time",++ "type": "string",++ "description": "最后统计时间"++ },++ "workCount": {++ "type": "number",++ "description": "作品数"++ },++ "income": {++ "type": "number",++ "description": "收入"++ },++ "groupId": {++ "type": "string",++ "description": "账户组ID"++ },++ "id": {++ "type": "string",++ "description": "更新ID"++ }++ },++ "required": [++ "id"++ ]++ },++ "UpdateAccountStatusDto": {++ "type": "object",++ "properties": {++ "id": {++ "type": "string",++ "description": "账号ID"++ },++ "status": {++ "type": "number",++ "description": "状态"++ }++ },++ "required": [++ "id",++ "status"++ ]++ },++ "DeleteAccountsDto": {++ "type": "object",++ "properties": {++ "ids": {++ "description": "要删除的ID",++ "type": "array",++ "items": {++ "type": "string"++ }++ }++ },++ "required": [++ "ids"++ ]++ },++ "UpdateAccountStatisticsDto": {++ "type": "object",++ "properties": {++ "id": {++ "type": "string",++ "description": "账号ID"++ },++ "workCount": {++ "type": "number",++ "description": "作品数"++ },++ "fansCount": {++ "type": "number",++ "description": "粉丝数"++ },++ "readCount": {++ "type": "number",++ "description": "阅读数"++ },++ "likeCount": {++ "type": "number",++ "description": "点赞数"++ },++ "collectCount": {++ "type": "number",++ "description": "收藏数"++ },++ "commentCount": {++ "type": "number",++ "description": "评论数"++ },++ "income": {++ "type": "number",++ "description": "收入"++ }++ },++ "required": [++ "id",++ "workCount",++ "fansCount",++ "readCount",++ "likeCount",++ "collectCount",++ "commentCount",++ "income"++ ]++ },++ "CreateAccountGroupDto": {++ "type": "object",++ "properties": {++ "name": {++ "type": "string",++ "description": "组名称"++ },++ "rank": {++ "type": "number",++ "description": "组排序,默认为 1"++ },++ "proxyIp": {++ "type": "string",++ "description": "代理IP"++ },++ "browserConfig": {++ "type": "object",++ "description": "浏览器配置必须为JSON格式"++ }++ },++ "required": [++ "name",++ "rank",++ "proxyIp",++ "browserConfig"++ ]++ },++ "UpdateAccountGroupDto": {++ "type": "object",++ "properties": {++ "name": {++ "type": "string",++ "description": "组名称"++ },++ "rank": {++ "type": "number",++ "description": "组排序,默认为 1"++ },++ "proxyIp": {++ "type": "string",++ "description": "代理IP"++ },++ "browserConfig": {++ "type": "object",++ "description": "浏览器配置必须为JSON格式"++ },++ "id": {++ "type": "string",++ "description": "更新ID"++ }++ },++ "required": [++ "name",++ "rank",++ "proxyIp",++ "browserConfig",++ "id"++ ]++ },++ "DeleteAccountGroupDto": {++ "type": "object",++ "properties": {++ "ids": {++ "description": "要删除的ID",++ "type": "array",++ "items": {++ "type": "string"++ }++ }++ },++ "required": [++ "ids"++ ]++ },++ "GenerateFingerprintDto": {++ "type": "object",++ "properties": {++ "operatingSystems": {++ "type": "string",++ "title": "指定要使用的操作系统的字符串 \"windows\" | \"macos\" | \"linux\" | \"android\" | \"ios\""++ }++ },++ "required": [++ "operatingSystems"++ ]++ },++ "VideoAiDesDto": {++ "type": "object",++ "properties": {++ "url": {++ "type": "string",++ "title": "视频URL"++ }++ },++ "required": [++ "url"++ ]++ },++ "ReviewAi": {++ "type": "object",++ "properties": {++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ },++ "max": {++ "type": "number",++ "title": "最大字数"++ }++ },++ "required": [++ "title"++ ]++ },++ "ReviewImgAi": {++ "type": "object",++ "properties": {++ "imgUrl": {++ "type": "string",++ "title": "图片链接"++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ },++ "max": {++ "type": "number",++ "title": "最大字数"++ }++ },++ "required": [++ "imgUrl",++ "title"++ ]++ },++ "ReviewAiRecover": {++ "type": "object",++ "properties": {++ "content": {++ "type": "string",++ "title": "评论内容"++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ },++ "max": {++ "type": "number",++ "title": "最大字数"++ }++ },++ "required": [++ "content"++ ]++ },++ "AiArticleHtmlDto": {++ "type": "object",++ "properties": {++ "content": {++ "type": "string",++ "title": "内容"++ }++ },++ "required": [++ "content"++ ]++ },++ "AdminAiMarkdownDto": {++ "type": "object",++ "properties": {++ "prompt": {++ "type": "string",++ "title": "系统提示词"++ },++ "content": {++ "type": "string",++ "title": "内容"++ }++ },++ "required": [++ "prompt",++ "content"++ ]++ },++ "TextModerationDto": {++ "type": "object",++ "properties": {++ "content": {++ "type": "string",++ "title": "内容"++ }++ },++ "required": [++ "content"++ ]++ },++ "MaterialMediaDto": {++ "type": "object",++ "properties": {++ "url": {++ "type": "string",++ "title": "资源链接"++ },++ "type": {++ "type": "string",++ "title": "资源类型",++ "enum": [++ "video",++ "img"++ ]++ },++ "content": {++ "type": "string",++ "title": "文本内容"++ }++ },++ "required": [++ "url",++ "type"++ ]++ },++ "CreateMaterialDto": {++ "type": "object",++ "properties": {++ "groupId": {++ "type": "string",++ "title": "组ID"++ },++ "coverUrl": {++ "type": "string",++ "title": "封面图"++ },++ "mediaList": {++ "title": "媒体数组",++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/MaterialMediaDto"++ }++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "内容"++ },++ "option": {++ "type": "object",++ "title": "其他属性"++ }++ },++ "required": [++ "groupId",++ "mediaList",++ "title"++ ]++ },++ "CreateMaterialTaskDto": {++ "type": "object",++ "properties": {++ "groupId": {++ "type": "string",++ "title": "组ID"++ },++ "num": {++ "type": "number",++ "title": "生成数量"++ },++ "aiModelTag": {++ "type": "string",++ "title": "AI模型tag"++ },++ "prompt": {++ "type": "string",++ "title": "提示词"++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ },++ "mediaGroups": {++ "title": "使用的媒体组数组",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "coverGroup": {++ "type": "string",++ "title": "封面媒体组"++ },++ "option": {++ "type": "object",++ "title": "高级设置"++ },++ "textMax": {++ "type": "number",++ "title": "最大文字数量"++ },++ "language": {++ "type": "string",++ "title": "语言"++ }++ },++ "required": [++ "groupId",++ "num",++ "aiModelTag",++ "prompt",++ "mediaGroups",++ "coverGroup"++ ]++ },++ "UpdateMaterialDto": {++ "type": "object",++ "properties": {++ "coverUrl": {++ "type": "string",++ "title": "封面图"++ },++ "mediaList": {++ "title": "媒体数组",++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/MaterialMediaDto"++ }++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "内容"++ },++ "option": {++ "type": "object",++ "title": "其他属性"++ }++ },++ "required": [++ "mediaList",++ "title"++ ]++ },++ "CreateMaterialGroupDto": {++ "type": "object",++ "properties": {++ "type": {++ "type": "string",++ "description": "素材类型",++ "enum": [++ "video",++ "article"++ ]++ },++ "name": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ }++ },++ "required": [++ "type",++ "name"++ ]++ },++ "UpdateMaterialGroupDto": {++ "type": "object",++ "properties": {++ "name": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ }++ },++ "required": [++ "name"++ ]++ },++ "CreateMediaDto": {++ "type": "object",++ "properties": {++ "groupId": {++ "type": "string",++ "title": "组ID"++ },++ "materialId": {++ "type": "string",++ "title": "素材ID"++ },++ "type": {++ "type": "string",++ "title": "类型",++ "enum": [++ "video",++ "img"++ ],++ "description": "类型"++ },++ "url": {++ "type": "string",++ "title": "文件链接"++ },++ "thumbUrl": {++ "type": "string",++ "title": "缩略图"++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ }++ },++ "required": [++ "groupId",++ "type",++ "url",++ "title",++ "desc"++ ]++ },++ "CreateMediaGroupDto": {++ "type": "object",++ "properties": {++ "type": {++ "type": "string",++ "title": "类型",++ "enum": [++ "video",++ "img"++ ],++ "description": "类型"++ },++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ }++ },++ "required": [++ "type",++ "title",++ "desc"++ ]++ },++ "UpdateMediaGroupDto": {++ "type": "object",++ "properties": {++ "title": {++ "type": "string",++ "title": "标题"++ },++ "desc": {++ "type": "string",++ "title": "描述"++ }++ },++ "required": [++ "title",++ "desc"++ ]++ },++ "CheckoutListBody": {++ "type": "object",++ "properties": {++ "page": {++ "type": "number",++ "title": "页面"++ },++ "size": {++ "type": "number",++ "title": "每页个数"++ }++ }++ },++ "MetadataDto": {++ "type": "object",++ "properties": {}++ },++ "CheckoutBodyDto": {++ "type": "object",++ "properties": {++ "success_url": {++ "type": "string",++ "title": "默认回到域名首页,如果指定回调页面只需要加上域名后面path地址即可"++ },++ "payment": {++ "type": "string",++ "title": "付款模式-连续包月-连续包年-一次性付-购买积分",++ "enum": [++ "month",++ "year",++ "onceYear",++ "onceMonth",++ "points"++ ]++ },++ "mode": {++ "type": "string",++ "title": "支付模式",++ "enum": [++ "payment",++ "subscription"++ ]++ },++ "flagTrialPeriodDays": {++ "type": "number",++ "title": "订阅模式下是否给七天免费试用时长, 0 - 不给, 1-给",++ "enum": [++ 0,++ 1++ ]++ },++ "metadata": {++ "title": "aitoearn订单信息",++ "allOf": [++ {++ "$ref": "#/components/schemas/MetadataDto"++ }++ ]++ }++ },++ "required": [++ "payment",++ "mode",++ "flagTrialPeriodDays"++ ]++ },++ "RefundBodyDto": {++ "type": "object",++ "properties": {++ "charge": {++ "type": "string",++ "title": "checkout表里面的charge "++ }++ },++ "required": [++ "charge"++ ]++ },++ "SubscriptionBodyDto": {++ "type": "object",++ "properties": {++ "page": {++ "type": "number",++ "title": "页面"++ },++ "size": {++ "type": "number",++ "title": "每页个数"++ }++ },++ "required": [++ "page",++ "size"++ ]++ },++ "UnSubscriptionBodyDto": {++ "type": "object",++ "properties": {++ "id": {++ "type": "string",++ "title": "订阅id"++ }++ },++ "required": [++ "id"++ ]++ },++ "WithdrawCreateDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "flowId": {++ "type": "string",++ "minLength": 1++ },++ "type": {++ "type": "string",++ "enum": [++ "task",++ "reward"++ ]++ },++ "amount": {++ "type": "number",++ "minimum": 0++ },++ "relId": {++ "type": "string",++ "minLength": 1++ },++ "incomeRecordId": {++ "type": "string",++ "minLength": 1++ },++ "remark": {++ "type": "string",++ "minLength": 1++ }++ },++ "required": [++ "type",++ "amount"++ ],++ "additionalProperties": false++ },++ "TaskWithOpportunityVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "id": {++ "type": "string"++ },++ "title": {++ "type": "string"++ },++ "description": {++ "type": "string"++ },++ "type": {++ "type": "string"++ },++ "maxRecruits": {++ "type": "number"++ },++ "currentRecruits": {++ "type": "number"++ },++ "deadline": {++ "type": "string"++ },++ "reward": {++ "type": "number"++ },++ "status": {++ "type": "string"++ },++ "accountTypes": {++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "taskData": {++ "type": "object",++ "properties": {++ "targetWorksId": {++ "type": "string"++ },++ "targetAuthorId": {++ "type": "string"++ },++ "platform": {++ "type": "string"++ }++ },++ "additionalProperties": false++ },++ "materials": {++ "type": "array",++ "items": {}++ },++ "createdAt": {++ "type": "string"++ },++ "updatedAt": {++ "type": "string"++ },++ "opportunityId": {++ "type": "string"++ },++ "opportunityStatus": {++ "type": "string"++ },++ "expiredAt": {++ "type": "string"++ },++ "accountId": {++ "type": "string"++ }++ },++ "required": [++ "id",++ "title",++ "description",++ "type",++ "maxRecruits",++ "currentRecruits",++ "deadline",++ "reward",++ "status",++ "accountTypes",++ "createdAt",++ "updatedAt",++ "opportunityId",++ "opportunityStatus",++ "expiredAt",++ "accountId"++ ],++ "additionalProperties": false++ },++ "TotalAmountVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "totalAmount": {++ "type": "number"++ }++ },++ "required": [++ "totalAmount"++ ],++ "additionalProperties": false++ },++ "AcceptTaskDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "opportunityId": {++ "type": "string",++ "minLength": 1++ }++ },++ "required": [++ "opportunityId"++ ],++ "additionalProperties": false++ },++ "UserTaskVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "id": {++ "type": "string"++ },++ "taskId": {++ "type": "string"++ },++ "userId": {++ "type": "string"++ },++ "status": {++ "type": "string"++ },++ "reward": {++ "type": "number"++ },++ "accountId": {++ "type": "string"++ }++ },++ "required": [++ "id",++ "taskId",++ "userId",++ "status",++ "reward",++ "accountId"++ ],++ "additionalProperties": false++ },++ "SubmitTaskDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "userTaskId": {++ "type": "string",++ "minLength": 1++ }++ },++ "required": [++ "userTaskId"++ ],++ "additionalProperties": false++ },++ "MaterialVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "id": {++ "type": "string"++ },++ "taskId": {++ "type": "string"++ },++ "type": {++ "type": "string"++ },++ "title": {++ "type": "string"++ },++ "description": {++ "type": "string"++ },++ "tags": {++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "aiPrompt": {++ "type": "string"++ },++ "priority": {++ "type": "number"++ },++ "content": {++ "type": "string"++ },++ "status": {++ "type": "string"++ },++ "createdAt": {++ "type": "string",++ "format": "date-time"++ },++ "updatedAt": {++ "type": "string",++ "format": "date-time"++ }++ },++ "required": [++ "id",++ "taskId",++ "type",++ "status",++ "createdAt",++ "updatedAt"++ ],++ "additionalProperties": false++ },++ "UnreadCountVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "count": {++ "type": "integer",++ "minimum": 0,++ "maximum": 9007199254740991++ }++ },++ "required": [++ "count"++ ],++ "additionalProperties": false++ },++ "NotificationListVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "list": {++ "type": "array",++ "items": {++ "type": "object",++ "properties": {++ "id": {++ "type": "string"++ },++ "userId": {++ "type": "string"++ },++ "title": {++ "type": "string"++ },++ "content": {++ "type": "string"++ },++ "type": {++ "type": "string"++ },++ "status": {++ "type": "string"++ },++ "readAt": {++ "type": "string"++ },++ "relatedId": {++ "type": "string"++ },++ "createdAt": {++ "type": "string"++ },++ "updatedAt": {++ "type": "string"++ }++ },++ "required": [++ "id",++ "userId",++ "title",++ "content",++ "type",++ "status",++ "relatedId",++ "createdAt",++ "updatedAt"++ ],++ "additionalProperties": false++ }++ },++ "total": {++ "type": "integer",++ "minimum": 0,++ "maximum": 9007199254740991++ }++ },++ "required": [++ "list",++ "total"++ ],++ "additionalProperties": false++ },++ "NotificationVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "id": {++ "type": "string"++ },++ "userId": {++ "type": "string"++ },++ "title": {++ "type": "string"++ },++ "content": {++ "type": "string"++ },++ "type": {++ "type": "string"++ },++ "status": {++ "type": "string"++ },++ "readAt": {++ "type": "string"++ },++ "relatedId": {++ "type": "string"++ },++ "createdAt": {++ "type": "string"++ },++ "updatedAt": {++ "type": "string"++ }++ },++ "required": [++ "id",++ "userId",++ "title",++ "content",++ "type",++ "status",++ "relatedId",++ "createdAt",++ "updatedAt"++ ],++ "additionalProperties": false++ },++ "MarkAsReadDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "notificationIds": {++ "minItems": 1,++ "type": "array",++ "items": {++ "type": "string",++ "minLength": 1++ }++ }++ },++ "required": [++ "notificationIds"++ ],++ "additionalProperties": false++ },++ "OperationResultVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "affectedCount": {++ "type": "integer",++ "minimum": 0,++ "maximum": 9007199254740991++ }++ },++ "additionalProperties": false++ },++ "BatchDeleteDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "notificationIds": {++ "minItems": 1,++ "type": "array",++ "items": {++ "type": "string",++ "minLength": 1++ }++ }++ },++ "required": [++ "notificationIds"++ ],++ "additionalProperties": false++ },++ "UserAiChatRequestDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "messages": {++ "description": "消息列表",++ "minItems": 1,++ "type": "array",++ "items": {++ "type": "object",++ "properties": {++ "role": {++ "description": "消息角色",++ "type": "string",++ "enum": [++ "system",++ "user",++ "assistant"++ ]++ },++ "content": {++ "description": "消息内容",++ "anyOf": [++ {++ "type": "string"++ },++ {++ "type": "array",++ "items": {++ "anyOf": [++ {++ "type": "object",++ "properties": {++ "type": {++ "type": "string",++ "const": "text"++ },++ "text": {++ "description": "文本内容",++ "type": "string"++ }++ },++ "required": [++ "type",++ "text"++ ],++ "additionalProperties": false++ },++ {++ "type": "object",++ "properties": {++ "type": {++ "type": "string",++ "const": "image_url"++ },++ "image_url": {++ "type": "object",++ "properties": {++ "url": {++ "description": "图片链接",++ "type": "string",++ "format": "uri"++ },++ "detail": {++ "description": "图片处理质量",++ "type": "string",++ "enum": [++ "auto",++ "low",++ "high"++ ]++ }++ },++ "required": [++ "url"++ ],++ "additionalProperties": false++ }++ },++ "required": [++ "type",++ "image_url"++ ],++ "additionalProperties": false++ },++ {++ "type": "object",++ "properties": {++ "type": {++ "type": "string",++ "const": "video_url"++ },++ "video_url": {++ "type": "object",++ "properties": {++ "url": {++ "description": "视频链接",++ "type": "string",++ "format": "uri"++ }++ },++ "required": [++ "url"++ ],++ "additionalProperties": false++ }++ },++ "required": [++ "type",++ "video_url"++ ],++ "additionalProperties": false++ },++ {++ "type": "object",++ "properties": {++ "type": {++ "type": "string",++ "const": "input_audio"++ },++ "input_audio": {++ "type": "object",++ "properties": {++ "data": {++ "description": "音频链接",++ "type": "string",++ "format": "uri"++ },++ "format": {++ "type": "string"++ }++ },++ "required": [++ "data",++ "format"++ ],++ "additionalProperties": false++ }++ },++ "required": [++ "type",++ "input_audio"++ ],++ "additionalProperties": false++ }++ ]++ }++ }++ ]++ }++ },++ "required": [++ "role",++ "content"++ ],++ "additionalProperties": false++ }++ },++ "model": {++ "description": "AI模型",++ "default": "qwen-plus",++ "type": "string"++ },++ "temperature": {++ "description": "温度参数",++ "type": "number",++ "minimum": 0,++ "maximum": 2++ },++ "maxTokens": {++ "description": "最大输出token数",++ "type": "integer",++ "minimum": 1,++ "maximum": 9007199254740991++ }++ },++ "required": [++ "messages",++ "model"++ ],++ "additionalProperties": false++ },++ "UserAiChatResponseVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "content": {++ "description": "AI回复内容",++ "anyOf": [++ {++ "type": "string"++ },++ {}++ ]++ },++ "model": {++ "description": "使用的模型",++ "type": "string"++ },++ "usage": {++ "description": "使用情况",++ "type": "object",++ "properties": {++ "input_tokens": {++ "description": "输入token数",++ "type": "number"++ },++ "output_tokens": {++ "description": "输出token数",++ "type": "number"++ },++ "total_tokens": {++ "description": "总token数",++ "type": "number"++ }++ },++ "required": [++ "input_tokens",++ "output_tokens",++ "total_tokens"++ ],++ "additionalProperties": false++ }++ },++ "required": [++ "content",++ "model"++ ],++ "additionalProperties": false++ },++ "UserLogsResponseVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "items": {++ "description": "日志列表",++ "type": "array",++ "items": {++ "type": "object",++ "properties": {++ "id": {++ "description": "日志ID",++ "type": "number"++ },++ "created_at": {++ "description": "创建时间",++ "type": "number"++ },++ "content": {++ "description": "内容",++ "type": "string"++ },++ "model_name": {++ "description": "模型名称",++ "type": "string"++ },++ "prompt_tokens": {++ "description": "提示token数",++ "type": "number"++ },++ "completion_tokens": {++ "description": "完成token数",++ "type": "number"++ },++ "use_time": {++ "description": "使用时间",++ "type": "number"++ }++ },++ "required": [++ "id",++ "created_at",++ "content",++ "model_name",++ "prompt_tokens",++ "completion_tokens",++ "use_time"++ ],++ "additionalProperties": false++ }++ },++ "total": {++ "description": "总数",++ "type": "number"++ },++ "page": {++ "description": "页码",++ "type": "number"++ },++ "page_size": {++ "description": "每页大小",++ "type": "number"++ }++ },++ "required": [++ "items",++ "total",++ "page",++ "page_size"++ ],++ "additionalProperties": false++ },++ "UserImageGenerationRequestDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "prompt": {++ "description": "图片描述提示",++ "type": "string",++ "minLength": 1,++ "maxLength": 4000++ },++ "model": {++ "description": "图片生成模型",++ "type": "string"++ },++ "n": {++ "description": "生成图片数量",++ "default": 1,++ "type": "integer",++ "minimum": 1,++ "maximum": 10++ },++ "quality": {++ "description": "图片质量",++ "type": "string"++ },++ "response_format": {++ "description": "返回格式",++ "default": "url",++ "type": "string",++ "enum": [++ "url",++ "b64_json"++ ]++ },++ "size": {++ "description": "图片尺寸",++ "type": "string"++ },++ "style": {++ "description": "图片风格",++ "type": "string"++ },++ "user": {++ "description": "用户标识符",++ "type": "string"++ }++ },++ "required": [++ "prompt",++ "n",++ "response_format",++ "size"++ ],++ "additionalProperties": false++ },++ "UserImageResponseVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "created": {++ "description": "创建时间",++ "type": "number"++ },++ "list": {++ "description": "图片数据",++ "type": "array",++ "items": {++ "type": "object",++ "properties": {++ "url": {++ "description": "图片URL",++ "type": "string"++ },++ "b64_json": {++ "description": "Base64编码的图片",++ "type": "string"++ },++ "revised_prompt": {++ "description": "修订后的提示",++ "type": "string"++ }++ },++ "additionalProperties": false++ }++ },++ "usage": {++ "description": "使用情况",++ "type": "object",++ "properties": {++ "input_tokens": {++ "description": "输入token数",++ "type": "number"++ },++ "output_tokens": {++ "description": "输出token数",++ "type": "number"++ },++ "total_tokens": {++ "description": "总token数",++ "type": "number"++ }++ },++ "required": [++ "output_tokens",++ "total_tokens"++ ],++ "additionalProperties": false++ }++ },++ "required": [++ "created",++ "list"++ ],++ "additionalProperties": false++ },++ "UserImageEditRequestDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "image": {++ "description": "原始图片(base64编码)",++ "type": "string",++ "minLength": 1++ },++ "prompt": {++ "description": "编辑描述",++ "type": "string",++ "minLength": 1,++ "maxLength": 4000++ },++ "mask": {++ "description": "遮罩图片(base64编码)",++ "type": "string"++ },++ "model": {++ "description": "图片编辑模型",++ "type": "string"++ },++ "n": {++ "description": "生成图片数量",++ "default": 1,++ "type": "integer",++ "minimum": 1,++ "maximum": 10++ },++ "size": {++ "description": "图片尺寸",++ "type": "string"++ },++ "response_format": {++ "description": "返回格式",++ "default": "url",++ "type": "string",++ "enum": [++ "url",++ "b64_json"++ ]++ },++ "user": {++ "description": "用户标识符",++ "type": "string"++ }++ },++ "required": [++ "image",++ "prompt",++ "n",++ "size",++ "response_format"++ ],++ "additionalProperties": false++ },++ "UserImageVariationRequestDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "image": {++ "description": "原始图片(base64编码)",++ "type": "string",++ "minLength": 1++ },++ "model": {++ "description": "图片模型",++ "type": "string"++ },++ "n": {++ "description": "生成图片数量",++ "default": 1,++ "type": "integer",++ "minimum": 1,++ "maximum": 10++ },++ "size": {++ "description": "图片尺寸",++ "type": "string"++ },++ "response_format": {++ "description": "返回格式",++ "default": "url",++ "type": "string",++ "enum": [++ "url",++ "b64_json"++ ]++ },++ "user": {++ "description": "用户标识符",++ "type": "string"++ }++ },++ "required": [++ "image",++ "n",++ "size",++ "response_format"++ ],++ "additionalProperties": false++ },++ "UserVideoGenerationRequestDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "base64": {++ "description": "图片base64或prompt里代入图片url",++ "type": "string"++ },++ "mode": {++ "description": "生成模式",++ "type": "string",++ "enum": [++ "fast",++ "relax"++ ]++ },++ "prompt": {++ "description": "url+提示词",++ "type": "string",++ "minLength": 1,++ "maxLength": 4000++ },++ "motion": {++ "description": "动作强度",++ "type": "string",++ "enum": [++ "high",++ "low"++ ]++ },++ "video_type": {++ "description": "视频类型",++ "type": "string",++ "enum": [++ "vid_1.1_i2v_480",++ "vid_1.1_i2v_720",++ "vid_1.1_i2v_1080"++ ]++ },++ "animate_mode": {++ "description": "动画模式",++ "type": "string",++ "enum": [++ "manual",++ "auto"++ ]++ },++ "action": {++ "description": "视频执行动作",++ "type": "string",++ "enum": [++ "rerun",++ "start_frame",++ "auto_low",++ "auto_high",++ "low_motion",++ "high_motion"++ ]++ },++ "taskId": {++ "description": "视频衍生执行动作用到的任务id",++ "type": "string"++ },++ "index": {++ "description": "视频衍生索引",++ "type": "integer",++ "minimum": 0,++ "maximum": 3++ }++ },++ "required": [++ "prompt",++ "motion"++ ],++ "additionalProperties": false++ },++ "MjVideoSubmitResponseVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "code": {++ "description": "响应代码",++ "type": "number"++ },++ "description": {++ "description": "响应描述",++ "type": "string"++ },++ "result": {++ "description": "任务ID",++ "type": "string"++ },++ "properties": {++ "description": "任务属性",++ "type": "object",++ "properties": {++ "prompt": {++ "description": "处理后的提示词",++ "type": "string"++ }++ },++ "required": [++ "prompt"++ ],++ "additionalProperties": false++ }++ },++ "required": [++ "code",++ "description",++ "result",++ "properties"++ ],++ "additionalProperties": false++ },++ "MjTaskFetchResponseVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "id": {++ "description": "任务ID",++ "type": "string"++ },++ "prompt": {++ "description": "任务描述",++ "type": "string"++ },++ "imageUrl": {++ "description": "图片地址",++ "type": "string"++ },++ "enqueue_time": {++ "description": "入队时间",++ "type": "string"++ },++ "width": {++ "description": "宽度",++ "type": "number"++ },++ "height": {++ "description": "高度",++ "type": "number"++ },++ "batch_size": {++ "description": "批次大小",++ "type": "number"++ },++ "status": {++ "description": "任务状态",++ "type": "string"++ },++ "job_type": {++ "description": "任务类型",++ "type": "string"++ },++ "video_url": {++ "description": "单条视频URL",++ "type": "string"++ },++ "video_urls": {++ "description": "4条视频URL",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "progress": {++ "description": "任务进度",++ "type": "string"++ },++ "action": {++ "description": "任务动作",++ "type": "string"++ }++ },++ "required": [++ "id",++ "prompt",++ "imageUrl",++ "enqueue_time",++ "width",++ "height",++ "batch_size",++ "status",++ "job_type",++ "video_url",++ "video_urls",++ "progress",++ "action"++ ],++ "additionalProperties": false++ },++ "UserVideoGenerationDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "model": {++ "description": "模型名称",++ "type": "string",++ "minLength": 1++ },++ "prompt": {++ "description": "提示词",++ "type": "string",++ "minLength": 1,++ "maxLength": 4000++ },++ "image": {++ "description": "图片URL或base64",++ "type": "string"++ },++ "image_tail": {++ "description": "尾帧图片URL或base64",++ "type": "string"++ },++ "mode": {++ "description": "生成模式",++ "type": "string"++ },++ "size": {++ "description": "尺寸",++ "type": "string"++ },++ "duration": {++ "description": "时长",++ "type": "number"++ },++ "metadata": {++ "description": "其他参数",++ "type": "object",++ "propertyNames": {++ "type": "string"++ },++ "additionalProperties": {}++ }++ },++ "required": [++ "model",++ "prompt"++ ],++ "additionalProperties": false++ },++ "VideoGenerationResponseVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "task_id": {++ "description": "任务ID",++ "type": "string"++ },++ "status": {++ "description": "任务状态",++ "type": "string"++ },++ "message": {++ "description": "响应消息",++ "type": "string"++ }++ },++ "required": [++ "task_id",++ "status"++ ],++ "additionalProperties": false++ },++ "VideoTaskStatusResponseVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "task_id": {++ "description": "任务ID",++ "type": "string"++ },++ "action": {++ "description": "任务动作",++ "type": "string"++ },++ "status": {++ "description": "任务状态",++ "type": "string"++ },++ "fail_reason": {++ "description": "失败原因或视频URL",++ "type": "string"++ },++ "submit_time": {++ "description": "提交时间",++ "type": "number"++ },++ "start_time": {++ "description": "开始时间",++ "type": "number"++ },++ "finish_time": {++ "description": "完成时间",++ "type": "number"++ },++ "progress": {++ "description": "任务进度",++ "type": "string"++ },++ "data": {++ "description": "任务数据",++ "type": "object",++ "propertyNames": {++ "type": "string"++ },++ "additionalProperties": {}++ }++ },++ "required": [++ "task_id",++ "action",++ "status",++ "submit_time",++ "start_time",++ "finish_time",++ "progress",++ "data"++ ],++ "additionalProperties": false++ },++ "Md2CardRequestDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "markdown": {++ "description": "要转换的 Markdown 文本",++ "default": "# 默认 markdown",++ "type": "string"++ },++ "theme": {++ "description": "卡片主题样式 ID",++ "default": "apple-notes",++ "type": "string"++ },++ "themeMode": {++ "description": "主题的模式 ID",++ "type": "string"++ },++ "width": {++ "description": "卡片宽度(像素)",++ "default": 440,++ "type": "integer",++ "minimum": 100,++ "maximum": 2000++ },++ "height": {++ "description": "卡片高度(像素)",++ "default": 586,++ "type": "integer",++ "minimum": 100,++ "maximum": 3000++ },++ "splitMode": {++ "description": "分割模式",++ "default": "noSplit",++ "type": "string"++ },++ "mdxMode": {++ "description": "是否启用 MDX 模式",++ "default": false,++ "type": "boolean"++ },++ "overHiddenMode": {++ "description": "是否启用溢出隐藏模式",++ "default": false,++ "type": "boolean"++ }++ },++ "required": [++ "markdown",++ "theme",++ "width",++ "height",++ "splitMode",++ "mdxMode",++ "overHiddenMode"++ ],++ "additionalProperties": false++ },++ "Md2CardResponseVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "images": {++ "description": "生成的卡片图片",++ "type": "array",++ "items": {++ "type": "object",++ "properties": {++ "url": {++ "description": "图片URL",++ "type": "string"++ },++ "fileName": {++ "description": "文件名",++ "type": "string"++ }++ },++ "required": [++ "url",++ "fileName"++ ],++ "additionalProperties": false++ }++ }++ },++ "required": [++ "images"++ ],++ "additionalProperties": false++ },++ "FireflycardRequestDto": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "content": {++ "description": "卡片内容",++ "type": "string",++ "minLength": 1++ },++ "temp": {++ "description": "模板类型",++ "default": "tempA",++ "type": "string",++ "enum": [++ "tempA",++ "tempB",++ "tempC",++ "tempJin",++ "tempMemo",++ "tempEasy",++ "tempBlackSun",++ "tempE",++ "tempWrite",++ "code",++ "tempD"++ ]++ },++ "title": {++ "description": "标题",++ "type": "string"++ },++ "style": {++ "description": "样式配置",++ "type": "object",++ "properties": {++ "align": {++ "description": "对齐方式",++ "type": "string"++ },++ "backgroundName": {++ "description": "背景名称",++ "type": "string"++ },++ "backShadow": {++ "description": "背景阴影",++ "type": "string"++ },++ "font": {++ "description": "字体",++ "type": "string"++ },++ "width": {++ "description": "宽度",++ "type": "number"++ },++ "ratio": {++ "description": "比例",++ "type": "string"++ },++ "height": {++ "description": "高度",++ "type": "number"++ },++ "fontScale": {++ "description": "字体缩放",++ "type": "number"++ },++ "padding": {++ "description": "内边距",++ "type": "string"++ },++ "borderRadius": {++ "description": "边框圆角",++ "type": "string"++ },++ "color": {++ "description": "颜色",++ "type": "string"++ },++ "opacity": {++ "description": "透明度",++ "type": "number"++ },++ "blur": {++ "description": "模糊度",++ "type": "number"++ },++ "backgroundAngle": {++ "description": "背景角度",++ "type": "string"++ },++ "lineHeights": {++ "description": "行高设置",++ "type": "object",++ "properties": {++ "content": {++ "description": "内容行高",++ "type": "string"++ }++ },++ "additionalProperties": false++ },++ "letterSpacings": {++ "description": "字间距设置",++ "type": "object",++ "properties": {++ "content": {++ "description": "内容字间距",++ "type": "string"++ }++ },++ "additionalProperties": false++ }++ },++ "additionalProperties": false++ },++ "switchConfig": {++ "description": "开关配置",++ "type": "object",++ "properties": {++ "showIcon": {++ "description": "显示图标",++ "type": "boolean"++ },++ "showDate": {++ "description": "显示日期",++ "type": "boolean"++ },++ "showTitle": {++ "description": "显示标题",++ "type": "boolean"++ },++ "showContent": {++ "description": "显示内容",++ "type": "boolean"++ },++ "showAuthor": {++ "description": "显示作者",++ "type": "boolean"++ },++ "showTextCount": {++ "description": "显示文字计数",++ "type": "boolean"++ },++ "showQRCode": {++ "description": "显示二维码",++ "type": "boolean"++ },++ "showPageNum": {++ "description": "显示页码",++ "type": "boolean"++ },++ "showWatermark": {++ "description": "显示水印",++ "type": "boolean"++ }++ },++ "additionalProperties": false++ }++ },++ "required": [++ "content",++ "temp"++ ],++ "additionalProperties": false++ },++ "FireflycardResponseVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "image": {++ "description": "生成的卡片图片base64数据",++ "type": "string"++ }++ },++ "required": [++ "image"++ ],++ "additionalProperties": false++ },++ "ImageGenerationModelVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "name": {++ "description": "模型名称",++ "type": "string"++ },++ "description": {++ "description": "模型描述",++ "type": "string"++ },++ "sizes": {++ "description": "支持的尺寸",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "qualities": {++ "description": "支持的质量选项",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "styles": {++ "description": "支持的风格选项",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "pricing": {++ "type": "string"++ }++ },++ "required": [++ "name",++ "description",++ "sizes",++ "qualities",++ "styles",++ "pricing"++ ],++ "additionalProperties": false++ },++ "ImageEditModelVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "name": {++ "description": "模型名称",++ "type": "string"++ },++ "description": {++ "description": "模型描述",++ "type": "string"++ },++ "sizes": {++ "description": "支持的尺寸",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "pricing": {++ "type": "string"++ }++ },++ "required": [++ "name",++ "description",++ "sizes",++ "pricing"++ ],++ "additionalProperties": false++ },++ "VideoGenerationModelVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "name": {++ "description": "模型名称",++ "type": "string"++ },++ "description": {++ "description": "模型描述",++ "type": "string"++ },++ "modes": {++ "description": "支持的模式",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "resolutions": {++ "description": "支持的尺寸",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "durations": {++ "description": "支持的时长",++ "type": "array",++ "items": {++ "type": "number"++ }++ },++ "supportedParameters": {++ "description": "支持的参数",++ "type": "array",++ "items": {++ "type": "string"++ }++ },++ "defaults": {++ "type": "object",++ "properties": {++ "resolution": {++ "type": "string"++ },++ "aspectRatio": {++ "type": "string"++ },++ "mode": {++ "type": "string"++ },++ "duration": {++ "type": "number"++ }++ },++ "additionalProperties": false++ },++ "pricing": {++ "type": "array",++ "items": {++ "type": "object",++ "properties": {++ "resolution": {++ "type": "string"++ },++ "aspectRatio": {++ "type": "string"++ },++ "mode": {++ "type": "string"++ },++ "duration": {++ "type": "number"++ },++ "price": {++ "type": "number"++ }++ },++ "required": [++ "price"++ ],++ "additionalProperties": false++ }++ }++ },++ "required": [++ "name",++ "description",++ "modes",++ "resolutions",++ "durations",++ "supportedParameters",++ "pricing"++ ],++ "additionalProperties": false++ },++ "ChatModelVo": {++ "$schema": "http://json-schema.org/draft-07/schema#",++ "type": "object",++ "properties": {++ "name": {++ "type": "string"++ },++ "description": {++ "type": "string"++ },++ "inputModalities": {++ "description": "输入模态",++ "type": "array",++ "items": {++ "type": "string",++ "enum": [++ "text",++ "image",++ "video",++ "audio"++ ]++ }++ },++ "outputModalities": {++ "description": "输出模态",++ "type": "array",++ "items": {++ "type": "string",++ "enum": [++ "text",++ "image",++ "video",++ "audio"++ ]++ }++ },++ "pricing": {++ "type": "object",++ "properties": {++ "prompt": {++ "type": "string"++ },++ "completion": {++ "type": "string"++ },++ "image": {++ "type": "string"++ },++ "audio": {++ "type": "string"++ }++ },++ "required": [++ "prompt",++ "completion"++ ],++ "additionalProperties": false++ }++ },++ "required": [++ "name",++ "description",++ "inputModalities",++ "outputModalities",++ "pricing"++ ],++ "additionalProperties": false++ },++ "PlatformUidQueryDto": {++ "type": "object",++ "properties": {++ "platform": {++ "type": "string",++ "description": "平台",++ "example": "bilibili"++ },++ "uid": {++ "type": "string",++ "description": "uid",++ "example": "123456"++ }++ },++ "required": [++ "platform",++ "uid"++ ]++ },++ "BatchChannelLatestQueryDto": {++ "type": "object",++ "properties": {++ "queries": {++ "description": "查询数组",++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/PlatformUidQueryDto"++ }++ }++ },++ "required": [++ "queries"++ ]++ },++ "GetChannelDataPeriodByUidsDto": {++ "type": "object",++ "properties": {++ "queries": {++ "description": "查询数组",++ "type": "array",++ "items": {++ "$ref": "#/components/schemas/PlatformUidQueryDto"++ }++ }++ },++ "required": [++ "queries"++ ]++ }++ }++ }++}diff --cc project/aitoearn-web/eslint.config.mjsindex 00000000,00000000..2883385anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/eslint.config.mjs@@@ -1,0 -1,0 +1,41 @@@++import { dirname } from "path";++import { fileURLToPath } from "url";++import { FlatCompat } from "@eslint/eslintrc";++++const __filename = fileURLToPath(import.meta.url);++const __dirname = dirname(__filename);++++const compat = new FlatCompat({++ baseDirectory: __dirname,++});++++const eslintConfig = [++ ...compat.extends(++ "next/core-web-vitals",++ "next/typescript",++ "plugin:prettier/recommended",++ "plugin:@typescript-eslint/recommended",++ ),++ ...compat.plugins(++ '@typescript-eslint/eslint-plugin',++ 'unused-imports',++ "eslint-plugin-react"++ ),++ {++ rules: {++ '@typescript-eslint/interface-name-prefix': 'off',++ '@typescript-eslint/explicit-function-return-type': 'off',++ '@typescript-eslint/explicit-module-boundary-types': 'off',++ '@typescript-eslint/no-explicit-any': 'off',++ "unused-imports/no-unused-imports": "error",++ "@typescript-eslint/no-empty-object-type": "off",++ "@typescript-eslint/no-unused-vars": "warn",++ "prettier/prettier": ["error", { "endOfLine": "auto" }],++ "@typescript-eslint/ban-ts-comment": "off",++ "react/display-name": "off",++ "react-hooks/rules-of-hooks": "off"++ },++ }++];++++export default eslintConfig;diff --cc project/aitoearn-web/next-sitemap.config.jsindex 00000000,00000000..d1ed2050new file mode 100644--- /dev/null+++ b/project/aitoearn-web/next-sitemap.config.js@@@ -1,0 -1,0 +1,109 @@@++// next-sitemap.config.js++const glob = require("glob");++const { statSync } = require("fs");++const path = require("path");++++const BLOCKLIST_REGEX = /material\/album\/\[id\]/;++const HAS_DYNAMIC_SEGMENT = /\[[^/]+?\]/;++const siteUrl = process.env.NEXT_PUBLIC_HOST_URL || "https://aitoearn.ai";++const languages = ["en", "zh-CN"];++++/** @type {import('next-sitemap').IConfig} */++module.exports = {++ siteUrl,++ generateRobotsTxt: true,++ sitemapSize: 7000,++++ // 主站 URL 生成(保持你现有逻辑,可继续优化)++ transform: async (_, locPath) => {++ if (HAS_DYNAMIC_SEGMENT.test(locPath)) return null;++ if (BLOCKLIST_REGEX.test(locPath)) return null;++ if (locPath.includes("[lng]")) return null;++ return {++ loc: locPath,++ changefreq: "monthly",++ priority: 0.7,++ lastmod: new Date().toISOString(),++ };++ },++++ additionalPaths: async () => {++ const allPageFiles = glob.sync("src/app/**/page.{js,tsx}", {++ cwd: process.cwd(),++ ignore: ["**/node_modules/**"],++ });++++ const pageFiles = allPageFiles++ .filter((f) => f.includes("[lng]"))++ .filter((f) => {++ const unix = f.replace(/\\/g, "/");++ if (BLOCKLIST_REGEX.test(unix)) return false;++ const withoutLng = unix.replace("/[lng]", "");++ return !HAS_DYNAMIC_SEGMENT.test(withoutLng);++ });++++ const routeEntries = pageFiles.map((file) => {++ let route =++ file++ .replace(/\\/g, "/")++ .replace(/\/page\.(js|tsx)$/, "")++ .replace("src/app/[lng]", "") || "/";++ if (route !== "/") route = route.replace(/^\/+/, "/");++ const lastmod = statSync(path.resolve(file)).mtime.toISOString();++ return { route, lastmod };++ });++++ const result = [];++++ for (const lang of languages) {++ for (const { route, lastmod } of routeEntries) {++ const isRoot = route === "/";++ const slug = isRoot ? "" : route.slice(1);++ const normalized = slug;++++ let changefreq = "monthly";++ let priority = isRoot ? 0.8 : 0.7;++ if (normalized.includes("hotContent")) {++ changefreq = "daily";++ priority = 0.9;++ } else if (normalized.includes("aiRank")) {++ changefreq = "weekly";++ priority = 0.9;++ }++++ result.push({++ loc: `/${lang}${slug ? "/" + slug : ""}`,++ changefreq,++ priority,++ lastmod,++ });++ }++ }++++ return result;++ },++++ // 关键:把子站 sitemap 挂到索引++ additionalSitemaps: [++ "https://blog.aitoearn.ai/sitemap.xml",++ "https://docs.aitoearn.ai/sitemap.xml",++ "https://hotinfo.aitoearn.ai/sitemap.xml",++ "https://rank.aitoearn.ai/sitemap.xml",++ ],++++ // 让 robots.txt 也列出++ robotsTxtOptions: {++ policies: [++ {++ userAgent: "*",++ disallow: [],++ },++ ],++ additionalSitemaps: [++ "https://blog.aitoearn.ai/sitemap.xml",++ "https://docs.aitoearn.ai/sitemap.xml",++ "https://hotinfo.aitoearn.ai/sitemap.xml",++ "https://rank.aitoearn.ai/sitemap.xml",++ ],++ },++};diff --cc project/aitoearn-web/next.config.mjsindex 00000000,440a0f47..440a0f47mode 000000,100644..100644--- a/project/aitoearn-web/next.config.mjs+++ b/project/aitoearn-web/next.config.mjsdiff --cc project/aitoearn-web/package.jsonindex 00000000,00000000..6eb70e54new file mode 100644--- /dev/null+++ b/project/aitoearn-web/package.json@@@ -1,0 -1,0 +1,98 @@@++{++ "name": "aitoearn-web",++ "version": "0.1.0",++ "private": true,++ "scripts": {++ "postbuild": "next-sitemap",++ "dev": "next dev -p 6060",++ "dev:local": "cross-env NEXT_PUBLIC_API_URL=http://localhost:7001/api next dev",++ "build": "next build",++ "build:copy": "tsc && next build && npm run copy-static",++ "copy-static": "xcopy public .next\\standalone\\public /E /I /Y && if exist .next\\static xcopy .next\\static .next\\standalone\\.next\\static /E /I /Y",++ "start": "next start",++ "lint": "next lint",++ "migrateToLocize": "locize migrate --project-id=01b2e5e8-6243-47d1-b36f-963dbb8bcae3 --api-key=c9805cd1-fd50-4d98-967a-383b39066de8 --path=./app/i18n/locales",++ "downloadLocales": "locize download --project-id=01b2e5e8-6243-47d1-b36f-963dbb8bcae3 --ver=latest --clean=true --path=./app/i18n/locales && npm run i18next-resources-for-ts",++ "syncLocales": "locize sync --project-id=01b2e5e8-6243-47d1-b36f-963dbb8bcae3 --api-key=bd8cb856-d6b3-4c82-a456-862c729a1674 --ver=latest --path=./app/i18n/locales --dry=true",++ "i18next-resources-for-ts": "i18next-resources-for-ts interface -i ./src/app/i18n/locales/zh-CN -o ./@types/resources.d.ts"++ },++ "dependencies": {++ "@ant-design/colors": "^7.2.1",++ "@ant-design/icons": "^6.0.0",++ "@ant-design/nextjs-registry": "^1.0.2",++ "@fullcalendar/core": "^6.1.17",++ "@fullcalendar/daygrid": "^6.1.17",++ "@fullcalendar/react": "^6.1.17",++ "@kwooshung/react-no-ssr": "^1.1.4",++ "@lexical/react": "^0.37.0",++ "@react-oauth/google": "^0.12.2",++ "@svgr/webpack": "^6.5.1",++ "@szhsin/react-menu": "^4.4.1",++ "@toast-ui/react-image-editor": "^3.15.2",++ "@types/blueimp-md5": "^2.18.2",++ "@types/react-beautiful-dnd": "^13.1.8",++ "accept-language": "3.0.20",++ "antd": "^5.25.2",++ "axios": "^1.9.0",++ "blueimp-md5": "^2.19.0",++ "cookies-next": "^4.3.0",++ "cropperjs": "^1.6.2",++ "crypto-js": "^4.2.0",++ "dayjs": "^1.11.13",++ "echarts": "^6.0.0",++ "glob": "^11.0.3",++ "i18next": "24.2.3",++ "i18next-browser-languagedetector": "8.0.4",++ "i18next-resources-to-backend": "1.2.1",++ "idb-keyval": "^6.2.2",++ "lexical": "^0.37.0",++ "lexical-beautiful-mentions": "^0.1.48",++ "lodash": "^4.17.21",++ "next": "14.2.29",++ "next-sitemap": "^4.2.3",++ "qs": "^6.14.0",++ "react": "^18",++ "react-beautiful-dnd": "^13.1.1",++ "react-dnd": "^16.0.1",++ "react-dnd-html5-backend": "^16.0.1",++ "react-dom": "^18",++ "react-i18next": "15.4.1",++ "react-icons": "^5.5.0",++ "react-infinite-scroll-component": "^6.1.0",++ "react-qrcode-logo": "^4.0.0",++ "react-sortablejs": "^6.1.4",++ "react-transition-group": "^4.4.5",++ "react-use": "^17.6.0",++ "sass": "^1.59.2",++ "sortablejs": "^1.15.6",++ "swiper": "^11.2.8",++ "tui-image-editor": "^3.15.3",++ "zustand": "^5.0.5"++ },++ "devDependencies": {++ "@eslint/eslintrc": "^3",++ "@next/eslint-plugin-next": "^15.5.3",++ "@types/crypto-js": "^4.2.2",++ "@types/echarts": "^5.0.0",++ "@types/lodash": "^4.17.17",++ "@types/node": "^20",++ "@types/qs": "^6.14.0",++ "@types/react": "^18",++ "@types/react-dom": "^18",++ "@types/react-transition-group": "^4.4.12",++ "@typescript-eslint/eslint-plugin": "^8.0.0",++ "@typescript-eslint/parser": "^8.0.0",++ "eslint": "^9",++ "eslint-config-next": "15.3.2",++ "eslint-config-prettier": "^8.8.0",++ "eslint-plugin-prettier": "^5.1.3",++ "eslint-plugin-react": "^7.37.4",++ "eslint-plugin-react-hooks": "^5.2.0",++ "eslint-plugin-unused-imports": "^4.1.4",++ "file-loader": "^6.2.0",++ "i18next-resources-for-ts": "1.5.0",++ "locize-cli": "9.0.1",++ "prettier": "^3.0.2",++ "typescript": "^5"++ }++}diff --cc project/aitoearn-web/pm2.jsonindex 00000000,00000000..8c1ab879new file mode 100644--- /dev/null+++ b/project/aitoearn-web/pm2.json@@@ -1,0 -1,0 +1,21 @@@++{++ "apps": [++ {++ "name": "aitoearn-web",++ "cwd": "standalone",++ "script": "node server.js",++ "instances": "1",++ "exec_mode": "cluster",++ "env": {++ "NODE_ENV": "development",++ "PORT": 7000++ },++ "env_production": {++ "NODE_ENV": "production",++ "PORT": 7000++ },++ "log_date_format": "YYYY-MM-DD_HH:mm Z",++ "merge_logs": true++ }++ ]++}diff --cc project/aitoearn-web/pnpm-lock.yamlindex 00000000,62fbe5fc..62fbe5fcmode 000000,100644..100644--- a/project/aitoearn-web/pnpm-lock.yaml+++ b/project/aitoearn-web/pnpm-lock.yamldiff --cc project/aitoearn-web/src/api/account.tsindex 00000000,00000000..8e5d9e2fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/account.ts@@@ -1,0 -1,0 +1,87 @@@++// 创建或更新账户++import http from "@/utils/request";++import {++ AccountGroupItem,++ SocialAccount,++ UpdateAccountStatisticsParams,++} from "@/api/types/account.type";++++export const createOrUpdateAccountApi = (data: Partial<SocialAccount>) => {++ return http.post<SocialAccount>("account/login", data);++};++++// 更新账户++export const updateAccountApi = (data: Partial<SocialAccount>) => {++ return http.post<SocialAccount>("account/update", data);++};++++// 更新账户状态++export const updateAccountStatusApi = (data: {++ id: string;++ status: number;++}) => {++ return http.post<SocialAccount>("account/status", data);++};++++// 获取账户列表++export const getAccountListApi = () => {++ return http.get<SocialAccount[]>("account/list/all");++};++++// 获取账户详情++export const getAccountDetailApi = (id: string) => {++ return http.get<SocialAccount>(`account/${id}`);++};++++export const updateAccountStatisticsApi = (++ data: UpdateAccountStatisticsParams,++) => {++ return http.post<SocialAccount>("account/statistics/update", data);++};++++// 删除账户++export const deleteAccountApi = (id: string) => {++ return http.post<SocialAccount>(`account/delete/${id}`);++};++++// 删除多个账户++export const deleteAccountsApi = (ids: string[]) => {++ return http.post<SocialAccount>("account/deletes", {++ ids,++ });++};++++// 创建账户组++export const createAccountGroupApi = (data: Partial<AccountGroupItem>) => {++ return http.post("accountGroup/create", data);++};++++// 更新账户组++export const updateAccountGroupApi = (data: Partial<AccountGroupItem>) => {++ return http.post("accountGroup/update", data);++};++++// 删除账户组++export const deleteAccountGroupApi = (ids: string[]) => {++ return http.post("accountGroup/deletes", {++ ids,++ });++};++++// 获取所有账户组++export const getAccountGroupApi = async () => {++ const res:any = await http.get<AccountGroupItem[]>("accountGroup/getList");++ // res.data.push({++ // id: "68a6d3e5861d0b23ca010123",++ // ip: "188.166.188.86",++ // isDefault: false,++ // location: "AU",++ // name: "测试外网",++ // proxyIp: "188.166.188.86",++ // rank: 1,++ // userId: "689aea2a2b50f147c09f01bc",++ // _id: "68a6d3e5861d0b23ca010123",++ // });++++ return res;++};diff --cc project/aitoearn-web/src/api/accountSort.tsindex 00000000,00000000..76420638new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/accountSort.ts@@@ -1,0 -1,0 +1,34 @@@++// 账户和分组排序API接口++import http from "@/utils/request";++++export interface SortRankItem {++ id: string;++ rank: number;++}++++export interface SortRankRequest {++ list: SortRankItem[];++}++++export interface AccountSortRankRequest {++ groupId: string;++ list: SortRankItem[];++}++++/**++ * 更新分组排序++ * @param data 排序数据++ * @returns++ */++export const apiUpdateAccountGroupSortRank = (data: SortRankRequest) => {++ return http.put("accountGroup/sortRank", data);++};++++/**++ * 更新账户排序++ * @param data 排序数据++ * @returns++ */++export const apiUpdateAccountSortRank = (data: AccountSortRankRequest) => {++ return http.put("account/sortRank", data);++};diff --cc project/aitoearn-web/src/api/ai.tsindex 00000000,dd8dd596..dd8dd596mode 000000,100644..100644--- a/project/aitoearn-web/src/api/ai.ts+++ b/project/aitoearn-web/src/api/ai.tsdiff --cc project/aitoearn-web/src/api/apiReq.tsindex 00000000,34f384d1..34f384d1mode 000000,100644..100644--- a/project/aitoearn-web/src/api/apiReq.ts+++ b/project/aitoearn-web/src/api/apiReq.tsdiff --cc project/aitoearn-web/src/api/dataStatistics.tsindex 00000000,90e66f2a..90e66f2amode 000000,100644..100644--- a/project/aitoearn-web/src/api/dataStatistics.ts+++ b/project/aitoearn-web/src/api/dataStatistics.tsdiff --cc project/aitoearn-web/src/api/engagement.tsindex 00000000,00000000..d9bacdcfnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/engagement.ts@@@ -1,0 -1,0 +1,34 @@@++import http from '@/utils/request';++import { EngagementPostsParams, EngagementPostsResponse, EngagementCommentsParams, EngagementCommentsResponse, EngagementReplyParams, PostCommentsParamsV2, PostCommentsResponseV2, PublishPostCommentParams, PublishCommentReplyParams, CommentRepliesParams, CommentRepliesResponse } from './types/engagement';++++export async function apiGetEngagementPosts(params: EngagementPostsParams) {++ return http.post<EngagementPostsResponse>('channel/engagement/posts', params);++}++++export async function apiGetEngagementComments(params: EngagementCommentsParams) {++ return http.post<EngagementCommentsResponse>('channel/engagement/comments', params);++}++++export async function apiReplyEngagementComment(params: EngagementReplyParams) {++ return http.post<{}>('channel/engagement/comment/reply', params);++}++++// 获取作品一级评论(V2)++export async function apiGetPostComments(params: PostCommentsParamsV2) {++ return http.post<PostCommentsResponseV2>('channel/engagement/post/comments', params);++}++++export async function apiPublishPostComment(params: PublishPostCommentParams) {++ return http.post<{}>('channel/engagement/post/comments/publish', params);++}++++export async function apiPublishCommentReply(params: PublishCommentReplyParams) {++ return http.post<{}>('channel/engagement/comment/replies/publish', params);++}++++// 获取评论的回复列表++export async function apiGetCommentReplies(params: CommentRepliesParams) {++ return http.post<CommentRepliesResponse>('channel/engagement/comment/replies', params);++}++++diff --cc project/aitoearn-web/src/api/hot.tsindex 00000000,00000000..de0dbe4anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/hot.ts@@@ -1,0 -1,0 +1,416 @@@++import { Pagination } from "./types";++import { HotTopic } from "./types/hotTopic";++import { Topic } from "./types/topic";++import { ViralTitle } from "./types/viralTitles";++import { request } from "@/utils/request";++import {++ GetAiToolsRankingApiParams,++ GetAiToolsRankingApiRes,++} from "./types/platform.type";++++export interface Platform {++ id: string;++ _id: string;++ name: string;++ icon: string;++ type: string;++ description: string;++ status: number;++ config: Record<string, any>;++ sort: number;++ createTime: string;++ updateTime: string;++}++++export interface RankingItem {++ id: string;++ title: string;++ author: {++ name: string;++ avatar: string;++ followers: string;++ };++ category: {++ name: string;++ subCategory: string;++ };++ duration: string;++ views: string;++ likes: string;++ comments: string;++ engagement: string;++ thumbnail: string;++ createTime: string;++}++++export interface PlatformRanking {++ _id: string;++ id: string;++ name: string;++ platformId: string;++ parentId: string;++ platform: Platform;++ type: "daily" | "weekly" | "monthly";++ description: string;++ icon: string;++ status: number;++ rules: string;++ config: Record<string, any>;++ sort: number;++ updateFrequency: string;++ lastUpdateTime: string;++ createTime: string;++ updateTime: string;++ items?: RankingItem[];++}++++// 榜单日期++export interface RankingDate {++ originalQueryDate: string;++ queryDate: string;++ rankingId: string;++ showDate: string;++ spiderTime: string;++ value: string;++}++++export interface Author {++ id: string;++ name: string;++ avatar: string;++ url: string;++ fansCount: number;++}++++export interface Stats {++ watchCount: number;++ viewCount: number;++ likeCount: number;++ commentCount: number;++ shareCount: number;++ collectCount: number;++}++++export interface RankingContent {++ mid: string;++ secUid: string;++ id: string;++ title: string;++ cover: string;++ url: string;++ photoId: string;++ rankingPosition: number;++ category: string;++ publishTime: string;++ subCategory: string;++ author: {++ name: string;++ avatar: string;++ fansCount: number;++ id: string;++ };++ stats: Stats;++ collectCount?: number;++ shareCount?: number;++ anaAdd: {++ addCollectCount: number;++ addCommentCount: number;++ addInteractiveCount: number;++ addLikeCount: number;++ addShareCount: number;++ addViewCount: number | null;++ collectedCount: number;++ interactiveCount: number;++ pred_readnum: number;++ useCollectCount: number;++ useCommentCount: number;++ useLikeCount: number;++ useShareCount: number;++ useViewCount: number | null;++ };++}++++export interface PaginationMeta {++ itemCount: number;++ totalItems: number;++ itemsPerPage: number;++ totalPages: number;++ currentPage: number;++}++++export interface RankingContentsResponse {++ items: RankingContent[];++ meta: PaginationMeta;++}++++export const platformApi = {++ // 获取平台列表++ getPlatformList() {++ return request<Platform[]>({++ url: `hotdata/hotinfo/platform`,++ method: "GET",++ });++ },++++ // 获取平台榜单列表++ getPlatformRanking(platformId: string) {++ return request<PlatformRanking[]>({++ url: `hotdata/ranking/platform?platformId=${platformId}`,++ method: "GET",++ });++ },++++ // 获取榜单内容++ getRankingContents(++ rankingId: string,++ page = 1,++ pageSize = 20,++ category?: string,++ date?: string,++ ) {++ const params: Record<string, any> = {++ page,++ pageSize,++ };++++ if (category && category !== "全部") {++ params.category = category;++ }++++ if (date) {++ params.date = date;++ }++++ return request<RankingContentsResponse>({++ url: `hotdata/ranking/${rankingId}/contents`,++ method: "GET",++ params,++ });++ },++++ // 获取榜单分类++ getRankingLabel(rankingId: string) {++ return request<string[]>({++ url: `hotdata/ranking/label/${rankingId}`,++ method: "GET",++ });++ },++++ // 获取榜单日期++ getRankingDates(rankingId: string) {++ return request<RankingDate[]>({++ url: `hotdata/ranking/hotinfo/${rankingId}/dates`,++ method: "GET",++ });++ },++++ // 获取八大平台热点事件++ getAllHotTopics() {++ return request<++ {++ platform: Platform;++ topics: HotTopic[];++ }[]++ >({++ url: `hotdata/hot-topics/all`,++ method: "GET",++ });++ },++++ // ---- 热门专题 ----++++ // 获取所有专题标签++ getTopics() {++ return request<string[]>({++ url: `hotdata/topics/topics`,++ method: "GET",++ });++ },++++ // 获取所有专题类型1++ getMsgType() {++ return request<string[]>({++ url: `hotdata/topics/msgType`,++ method: "GET",++ });++ },++++ // 获取所有专题分类++ getTopicLabels(msgType: string) {++ return request<string[]>({++ url: `hotdata/topics/labels/${msgType}`,++ method: "GET",++ });++ },++++ // 获取专题的时间类型++ getTopicTimeTypes(msgType: string) {++ return request<string[]>({++ url: `hotdata/topics/timeType/${msgType}`,++ method: "GET",++ });++ },++++ // 获取热门专题列表++ getAllTopics(params: {++ msgType?: string; // 项目类型++ timeType?: string; // 时间分类++ type?: string; // 类型++ platformId?: string; // 平台ID++ startTime?: string; // 发布时间开始++ endTime?: string; // 发布时间结束++ topic?: string; // 话题标签++ page?: number;++ pageSize?: number;++ }) {++ return request<Pagination<Topic>>({++ url: `hotdata/topics`,++ method: "GET",++++ params,++ });++ },++++ // ---- 爆款标题 ----++ // 获取有数据的平台列表++ findPlatformsWithData() {++ return request<Platform[]>({++ url: `hotdata/viral-titles/platforms`,++ method: "GET",++ });++ },++++ // 获取指定平台的分类列表++ findCategoriesByPlatform(platformId: string) {++ return request<string[]>({++ url: `hotdata/viral-titles/platforms/${platformId}/categories`,++ method: "GET",++ });++ },++++ // 获取平台下所有分类的前五条数据++ findTopByPlatformAndCategories(++ platformId: string,++ timeType?: string, // 时间分类++ ) {++ return request<++ {++ category: string;++ titles: ViralTitle[];++ }[]++ >({++ url: `hotdata/viral-titles/platforms/${platformId}/top-by-categories`,++ method: "GET",++++ params: {++ timeType,++ },++ });++ },++++ // 获取爆款标题平台下指定分类的数据列表(分页)++ findByPlatformAndCategory(++ platformId: string,++ params: {++ category?: string;++ startTime?: Date;++ endTime?: Date;++ timeType?: string;++ page?: number;++ pageSize?: number;++ },++ ) {++ return request<Pagination<ViralTitle>>({++ url: `hotdata/viral-titles/platforms/${platformId}`,++ method: "GET",++++ params,++ });++ },++++ // 获取爆款标题的时间类型++ getViralTitleTimeTypes() {++ return request<string[]>({++ url: `hotdata/viral-titles/timeType`,++ method: "GET",++ });++ },++++ // ---- 话题 ----++ // 获取有数据的平台列表++ findTalksPlatforms() {++ return request<Platform[]>({++ url: `hotdata/talks/platforms`,++ method: "GET",++ });++ },++++ // 获取话题栏目++ findTalksColumn(platformId: string) {++ return request<string[]>({++ url: `hotdata/talks/column`,++ method: "GET",++ params: {++ platformId,++ },++ });++ },++++ // 获取小红书话题流量榜、流量扶持日期++ getXhsDates() {++ return request<string[]>({++ url: `hotdata/xhs/dates`,++ method: "GET",++ });++ },++++ // 获取小红书话题流量榜、流量扶持分类++ getXhsCategories() {++ return request<string[]>({++ url: `hotdata/xhs/category`,++ method: "GET",++ });++ },++++ // 获取小红书话题流量榜++ getXhsSubjectsRank(data: { phone: string }) {++ return request<string>({++ url: `hotdata/xhs/contents`,++ method: "POST",++ data,++ });++ },++++ // 获取抖音榜单日期++ getDyDates() {++ return request<string[]>({++ url: `hotdata/dy/dates`,++ method: "GET",++ });++ },++++ // 获取AI工具榜数据++ getAiToolsRankingApi(data: GetAiToolsRankingApiParams) {++ return request<GetAiToolsRankingApiRes>({++ url: `hotdata/products/ranking/ai`,++ method: "POST",++ data: {++ ...data,++ pageSize: 100,++ area: +data.area,++ },++ });++ },++++ // 获取热点数据 公众号 链接++ getDetailUrl(photoId: string) {++ return request<string>({++ url: `hotdata/contents/query/getDetailUrl`,++ method: "POST",++ data: {++ platform: 0,++ photoId,++ },++ });++ },++};diff --cc project/aitoearn-web/src/api/income.tsindex 00000000,00000000..dcfb62d1new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/income.ts@@@ -1,0 -1,0 +1,33 @@@++import { request } from '@/utils/request';++import { IncomeRecord } from './types/income';++++/**++ * 获取收入列表++ */++export const apiGetIncomeList = (page: {++ pageNo: number;++ pageSize: number;++}, params: {++ type?: string++}) => {++ return request<{ list: IncomeRecord[], total: number }>({++ url: `income/list/${page.pageNo}/${page.pageSize}`,++ method: 'GET',++ params++ });++};++++/**++ * 提交提现++ */++export const apiSubmitWithdraw = (incomeRecordId: string, userWalletAccountId?: string, flowId?: string) => {++ return request<any>({++ url: `income/withdraw`,++ method: 'POST',++ data: {++ incomeRecordId,++ userWalletAccountId,++ flowId++ }++ });++};diff --cc project/aitoearn-web/src/api/material.tsindex 00000000,00000000..c9bd4642new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/material.ts@@@ -1,0 -1,0 +1,132 @@@++import http from "@/utils/request";++import { PubType } from "@/app/config/publishConfig";++++export interface MaterialMedia {++ url: string;++ type: PubType;++ content?: string;++}++++export enum MaterialType {++ VIDEO = 'video', // 视频++ ARTICLE = 'article', // 文章++}++++export interface NewMaterialTask {++ groupId: string;++ num: number;++ aiModelTag: string;++ type: MaterialType;++ prompt: string;++ title?: string;++ desc?: string;++ location?: number[];++ publishTime?: string;++ mediaGroups: string[];++ coverGroup: string;++ option?: Record<string, any>;++ textMax?: number;++ language?: string;++}++++// 创建素材草稿组++export const apiCreateMaterialGroup = (data: {++ type: PubType;++ name: string;++ desc?: string;++}) => {++ return http.post("material/group", data);++};++++// 删除草稿素材组++export const apiDeleteMaterialGroup = (id: string) => {++ return http.delete(`material/group/${id}`);++};++++// 更新草稿素材组信息++export const apiUpdateMaterialGroupInfo = (++ id: string,++ data: {++ name?: string;++ desc?: string;++ },++) => {++ return http.post(`material/group/info/${id}`, data);++};++++// 获取草稿素材组列表++export const apiGetMaterialGroupList = (pageNo: number, pageSize: number) => {++ return http.get<{ list: any[]; total: number }>(++ `material/group/list/${pageNo}/${pageSize}`,++ );++};++++// 创建草稿素材++export const apiCreateMaterial = (data: {++ groupId: string;++ coverUrl?: string;++ mediaList: MaterialMedia[];++ title: string;++ desc?: string;++ option?: Record<string, any>;++ location?: number[];++}) => {++ return http.post("material", data);++};++++// 创建批量生成草稿任务++export const apiCreateMaterialTask = (data: NewMaterialTask) => {++ return http.post<{ _id: string }>("material/task/create", data);++};++++// 预览生成草稿任务++export const apiPreviewMaterialTask = (taskId: string) => {++ return http.get(`material/task/preview/${taskId}`);++};++++// 开始批量生成草稿任务++export const apiStartMaterialTask = (taskId: string) => {++ return http.get(`material/task/start/${taskId}`);++};++++// 删除草稿素材++export const apiDeleteMaterial = (id: string) => {++ return http.delete(`material/${id}`);++};++++// 获取草稿素材列表++export const apiGetMaterialList = (++ groupId: string,++ pageNo: number,++ pageSize: number,++) => {++ return http.get(`material/list/${pageNo}/${pageSize}`, {++ groupId,++ });++};++++// 更新草稿素材信息++export const apiUpdateMaterialInfo = (++ id: string,++ data: {++ title?: string;++ desc?: string;++ },++) => {++ return http.put(`material/info/${id}`, data);++};++++// 更新草稿素材完整信息++export const apiUpdateMaterial = (++ id: string,++ data: {++ coverUrl?: string;++ mediaList?: MaterialMedia[];++ title?: string;++ desc?: string;++ location?: number[];++ option?: Record<string, any>;++ },++) => {++ return http.put(`material/info/${id}`, data);++};diff --cc project/aitoearn-web/src/api/mcp.tsindex 00000000,00000000..59dc659fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/mcp.ts@@@ -1,0 -1,0 +1,109 @@@++// MCP API接口++import { request } from "@/utils/request";++++++++/**++ * 创建MCP Key++ * @param data 创建参数++ * @returns++ */++export const apiCreateMCPKey = (data:any) => {++ return request({++ url: "channel/skKey",++ method: "POST",++ data,++ });++};++++/**++ * 更新MCP Key++ * @param data 更新参数++ * @returns++ */++export const apiUpdateMCPKey = (data:any) => {++ return request({++ url: "channel/skKey",++ method: "PUT",++ data,++ });++};++++/**++ * 删除MCP Key++ * @param key Key key++ * @returns++ */++export const apiDeleteMCPKey = (key: string) => {++ return request({++ url: `channel/skKey/${key}`,++ method: "DELETE",++ });++};++++/**++ * 获取MCP Key详情++ * @param key Key值++ * @returns++ */++export const apiGetMCPKeyInfo = (key: string) => {++ return request({++ url: `channel/skKey/info/${key}`,++ method: "GET",++ });++};++++/**++ * 获取MCP Key列表++ * @param pageNo 页码++ * @param pageSize 每页大小++ * @returns++ */++export const apiGetMCPKeyList = (pageNo: number, pageSize: number) => {++ return request({++ url: `channel/skKey/list/${pageNo}/${pageSize}`,++ method: "GET",++ });++};++++/**++ * 创建MCP Key关联++ * @param data 关联参数++ * @returns++ */++export const apiCreateMCPRef = (data: any) => {++ return request({++ url: "channel/skKey/ref",++ method: "POST",++ data,++ });++};++++/**++ * 解除MCP Key关联++ * @param data 解除关联参数++ * @returns++ */++export const apiDeleteMCPRef = (data: any) => {++ return request({++ url: "channel/skKey/ref",++ method: "DELETE",++ data,++ });++};++++/**++ * 获取MCP Key关联列表++ * @param pageNo 页码++ * @param pageSize 每页大小++ * @returns++ */++export const apiGetMCPRefList = (pageNo: number, pageSize: number, key: string) => {++ return request({++ url: `channel/skKey/ref/list/${pageNo}/${pageSize}`,++ method: "GET",++ params: {++ key,++ },++ });++};diff --cc project/aitoearn-web/src/api/media.tsindex 00000000,00000000..befd507fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/media.ts@@@ -1,0 -1,0 +1,81 @@@++import http from "@/utils/request";++++// 创建媒体资源组++export const createMediaGroup = (data: {++ title: string;++ desc: string;++ type: "video" | "img";++}) => {++ return http.post("media/group", data);++};++++// 删除媒体资源组++export const deleteMediaGroup = (id: string) => {++ return http.delete(`media/group/${id}`);++};++++// 获取媒体资源组列表++export const getMediaGroupList = (++ pageNo: number,++ pageSize: number,++ type? : "video" | "img",++) => {++ return http.get<{ list: any[]; total: number }>(++ `media/group/list/${pageNo}/${pageSize}`,++ {++ type,++ },++ );++};++++// 更新媒体资源组信息++export const updateMediaGroupInfo = (++ id: string,++ data: {++ title?: string;++ desc?: string;++ type?: "video" | "img";++ },++) => {++ return http.post(`media/group/info/${id}`, data);++};++++// 创建媒体资源++export const createMedia = (data: any) => {++ return http.post("media", data);++};++++// 删除媒体资源++export const deleteMedia = (id: string) => {++ return http.delete(`media/${id}`);++};++++// 获取媒体资源列表++export const getMediaList = (++ groupId: string,++ pageNo: number,++ pageSize: number,++) => {++ return http.get(`media/list/${pageNo}/${pageSize}`, {++ groupId,++ });++};++++// 更新媒体资源信息++export const updateMediaInfo = (++ id: string,++ data: {++ title?: string;++ desc?: string;++ },++) => {++ return http.put(`media/info/${id}`, data);++};++++export const apiAddUseCount = (id: string) => {++ return http.put(`media/addUseCount`, { data: { id } });++};++++export const apiAddUseCountOfList = (ids: string[]) => {++ return http.put(`media/addUseCountOfList`, { data: { ids } });++};diff --cc project/aitoearn-web/src/api/notification.tsindex 00000000,00000000..f19f44denew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/notification.ts@@@ -1,0 -1,0 +1,111 @@@++import http from "@/utils/request";++++export interface NotificationItem {++ id: string;++ title: string;++ content: string;++ type: "system" | "user" | "material" | "other" | "task_reminder";++ status: "read" | "unread";++ readAt?: string;++ createdAt: string;++ updatedAt: string;++ relatedId?: string;++ userId?: string;++}++++export interface NotificationListResponse {++ list: NotificationItem[];++ total: number;++ page: number;++ pageSize: number;++}++++export interface NotificationDetailResponse {++ data: NotificationItem;++}++++export interface UnreadCountResponse {++ count: number;++}++++// 获取用户通知列表++export const getNotificationList = (params: {++ page?: number;++ pageSize?: number;++ type?: string;++}) => {++ return http.get<NotificationListResponse>("notification", params );++};++++// 获取通知详情++export const getNotificationDetail = (id: string) => {++ return http.get(`notification/${id}`);++};++++// 标记通知为已读++export const markNotificationAsRead = (notificationIds: string[]) => {++ return http.put(`notification/read`, { notificationIds });++};++++// 全部标记为已读++export const markAllNotificationsAsRead = () => {++ return http.put("notification/read-all");++};++++// 获取未读数量++export const getUnreadCount = () => {++ return http.get<UnreadCountResponse>("notification/unread-count", undefined, true);++};++++// 删除通知++export const deleteNotifications = (notificationIds: string[]) => {++ return http.delete("notification", { notificationIds } );++};++++// 任务相关类型定义++export interface TaskData {++ targetWorksId: string;++ targetAuthorId: string;++ platform: string;++}++++export interface TaskItem {++ id: string;++ title: string;++ description: string;++ type: string;++ maxRecruits: number;++ currentRecruits: number;++ deadline: string;++ reward: number;++ status: string;++ accountTypes: string[];++ taskData: TaskData;++ materials: string[];++ createdAt: string;++ updatedAt: string;++ opportunityId: string;++ opportunityStatus: string;++ expiredAt: string;++ accountId: string;++ materialIds: string[];++}++++export interface TaskResponse {++ data: TaskItem;++}++++// 获取任务详情++export const getTaskDetail = (opportunityId: string) => {++ return http.get<TaskResponse>(`task/opportunity/info/${opportunityId}`);++};++++// 接受任务++export const acceptTask = (taskId: string, opportunityId: string, accountId?: string) => {++ return http.post("task/accept", { taskId, opportunityId, accountId });++};++++// 提交任务++export const submitTask = (userTaskId: string, materialId: string) => {++ return http.post("task/submit", { userTaskId: userTaskId, materialId });++};diff --cc project/aitoearn-web/src/api/oss.tsindex 00000000,cc14e970..cc14e970mode 000000,100644..100644--- a/project/aitoearn-web/src/api/oss.ts+++ b/project/aitoearn-web/src/api/oss.tsdiff --cc project/aitoearn-web/src/api/payment.tsindex 00000000,00000000..a063ef57new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/payment.ts@@@ -1,0 -1,0 +1,64 @@@++import { request } from '@/utils/request';++import type {++ Order,++ OrderListParams,++ SubscriptionListParams,++ RefundParams,++ UnsubscribeParams,++ PaymentApiResponse,++ PaginatedResponse++} from './types/payment';++++/**++ * 获取订单列表++ */++export const getOrderListApi = (params: OrderListParams) => {++ return request<PaginatedResponse<Order>>({++ url: 'payment/checkout',++ method: 'GET',++ params++ });++};++++/**++ * 查询单个订单++ */++export const getOrderDetailApi = (id: string) => {++ return request<Order>({++ url: `payment/checkout/${id}`,++ method: 'GET'++ });++};++++/**++ * 获取订阅列表++ */++export const getSubscriptionListApi = (params: SubscriptionListParams) => {++ return request<PaginatedResponse<Order>>({++ url: 'payment/subscription',++ method: 'GET',++ params++ });++};++++/**++ * 订单退款++ */++export const refundOrderApi = (params: RefundParams) => {++ return request<any>({++ url: 'payment/refund',++ method: 'POST',++ data: params++ });++};++++/**++ * 退订++ */++export const unsubscribeApi = (params: UnsubscribeParams) => {++ return request<any>({++ url: 'payment/unsubscribe',++ method: 'POST',++ data: params++ });++};diff --cc project/aitoearn-web/src/api/pinterest.tsindex 00000000,00000000..07d81f68new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/pinterest.ts@@@ -1,0 -1,0 +1,56 @@@++import http from "@/utils/request";++++// 获取广告账户++export const getPinterestAccountApi = (adAccountId: string) => {++ return http.get<any>(`plat/pinterest/account/${adAccountId}`);++};++++// 创建广告用户++export const createPinterestAdAccountApi = (adAccountId: string) => {++ return http.get<any>(`plat/pinterest/AdAccount/${adAccountId}`);++};++++// 获取pinterest账户列表++export const getPinterestAccountListApi = () => {++ return http.get<any>("plat/pinterest/account");++};++++// 创建board++export const createPinterestBoardApi = (data: any, accountId: string) => {++ return http.post<any>("plat/pinterest/board", { ...data, accountId });++};++++// 获取board列表信息++export const getPinterestBoardListApi = (params: any, accountId: string) => {++ return http.get<any>("plat/pinterest/board", { ...params, accountId });++};++++// 获取单个board++export const getPinterestBoardApi = (id: string, accountId: string) => {++ return http.get<any>(`plat/pinterest/board/${id}`, { accountId });++};++++// 删除单个board++export const deletePinterestBoardApi = (id: string, accountId: string) => {++ return http.delete<any>(`plat/pinterest/board/${id}`, { accountId });++};++++// 创建pin++export const createPinterestPinApi = (data: any, accountId: string) => {++ return http.post<any>("plat/pinterest/pin", { ...data, accountId });++};++++// 获取pin列表++export const getPinterestPinListApi = (params: any, accountId: string) => {++ return http.get<any>("plat/pinterest/pin", { ...params, accountId });++};++++// 获取单个pin++export const getPinterestPinApi = (id: string, accountId: string) => {++ return http.get<any>(`plat/pinterest/pin/${id}`, { accountId });++};++++// 删除pin++export const deletePinterestPinApi = (id: string, accountId: string) => {++ return http.delete<any>(`plat/pinterest/pin/${id}`, { accountId });++};diff --cc project/aitoearn-web/src/api/plat/bilibili.tsindex 00000000,00000000..2f12f03anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/plat/bilibili.ts@@@ -1,0 -1,0 +1,50 @@@++// 创建或更新账户++import http from "@/utils/request";++import { BiblPartItem } from "@/components/PublishDialog/publishDialog.type";++++/**++ * 获取B站登录地址++ * @param type 授权类型++ * @param spaceId 空间ID(可选)++ * @returns++ */++export const apiGetBilibiliLoginUrl = (type: "h5" | "pc", spaceId?: string) => {++ const params = spaceId ? { spaceId } : {};++ return http.get<{ code: number; data: { taskId: string; url: string } }>(++ `plat/bilibili/auth/url/${type}`,++ params++ );++};++++/**++ * 检查B站授权状态++ * @param accointId 账号ID++ * @returns++ */++export const apiCheckAccountAuthStatus = (accointId: string) => {++ return http.get<{ code: number; data: boolean }>(++ `plat/bilibili/auth/status/${accointId}`,++ );++};++++/**++ * 获取B站授权状态++ * @param taskId 任务ID++ * @returns++ */++export const apiCheckBilibiliAuth = (taskId: string) => {++ return http.post<{ code: number; data: any }>(++ `plat/bilibili/auth/create-account/${taskId}`,++ );++};++++/**++ * 获取B站分区列表++ * @param accountId 账户ID++ * @returns++ */++export const apiGetBilibiliPartitions = (accountId: string) => {++ return http.get<BiblPartItem[]>(++ `plat/bilibili/archive/type/list/${accountId}`,++ );++};diff --cc project/aitoearn-web/src/api/plat/dataCube.tsindex 00000000,00000000..db3ce2fdnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/plat/dataCube.ts@@@ -1,0 -1,0 +1,22 @@@++// 渠道数据++import http from "@/utils/request";++++/**++ * 获取账号统计数据++ * @returns++ */++export const apiGetAccountDataCube = (accountId: string) => {++ return http.get<{ code: number; data: any }>(++ `channel/dataCube/accountDataCube/${accountId}`,++ );++};++++/**++ * 获取账号增量数据++ * @returns++ */++export const apiGetAccountDataBulk = (accountId: string) => {++ return http.get<{ code: number; data: any }>(++ `channel/dataCube/getAccountDataBulk/${accountId}`,++ );++};diff --cc project/aitoearn-web/src/api/plat/facebook.tsindex 00000000,00000000..19f1e56dnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/plat/facebook.ts@@@ -1,0 -1,0 +1,36 @@@++// Facebook API接口++import http from "@/utils/request";++++export interface FacebookPageItem {++ id: string;++ name: string;++}++++export interface FacebookPagesResponse {++ data: FacebookPageItem[];++ code: number;++ message: string;++ url: string;++}++++/**++ * 获取Facebook页面列表++ * @param accountId 账户ID++ * @returns++ */++export const apiGetFacebookPages = (accountId: string) => {++ return http.get<FacebookPagesResponse>(++ `plat/meta/facebook/pages`,++ );++};++++/**++ * 提交Facebook页面选择++ * @param pageIds 选择的页面ID数组++ * @returns++ */++export const apiSubmitFacebookPages = (pageIds: string[]) => {++ return http.post(`plat/meta/facebook/pages`, {++ pageIds,++ });++};diff --cc project/aitoearn-web/src/api/plat/interact.tsindex 00000000,00000000..cc040bbfnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/plat/interact.ts@@@ -1,0 -1,0 +1,67 @@@++// 渠道互动++import http from "@/utils/request";++++/**++ * 创建作品评论++ * @returns++ */++export const apiAddArcComment = (data: {++ accountId: string;++ dataId: string;++ content: string;++}) => {++ return http.post<{ code: number; data: any }>(++ `channel/interact/addArcComment`,++ data,++ );++};++++/**++ * 获取作品的评论列表++ * @returns++ */++export const apiGetArcCommentList = (++ page: {++ pageNo: number;++ pageSize: number;++ },++ recordId: string,++) => {++ return http.get<{ code: number; data: any }>(++ `channel/interact/getArcCommentList/${page.pageNo}/${page.pageSize}`,++ {++ params: {++ recordId,++ },++ },++ );++};++++/**++ * 回复评论++ * @returns++ */++export const apiReplyComment = (data: {++ accountId: string;++ commentId: string;++ content: string;++}) => {++ return http.post<{ code: number; data: any }>(++ `channel/interact/replyComment`,++ data,++ );++};++++/**++ * 删除评论++ * @returns++ */++export const apiDelComment = (data: {++ accountId: string;++ commentId: string;++}) => {++ return http.delete<{ code: number; data: any }>(++ `channel/interact/delComment`,++ data,++ );++};diff --cc project/aitoearn-web/src/api/plat/kwai.tsindex 00000000,00000000..3e233b29new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/plat/kwai.ts@@@ -1,0 -1,0 +1,23 @@@++import http from "@/utils/request";++import { GetKwaiAuthStatusRes } from "@/api/plat/types/kwai.types";++++/**++ * 创建快手授权++ * @param type 授权类型++ * @param spaceId 空间ID(可选)++ * @returns++ */++export const createKwaiAuth = (type: "h5" | "pc", spaceId?: string) => {++ const params = spaceId ? { spaceId } : {};++ return http.get<{++ url: string;++ taskId: string;++ }>(`plat/kwai/auth/url/${type}`, params);++};++++// 获取账号授权状态++export const getKwaiAuthStatus = (taskId: string) => {++ return http.post<GetKwaiAuthStatusRes>(++ `plat/kwai/auth/create-account/${taskId}`,++ );++};diff --cc project/aitoearn-web/src/api/plat/publish.tsindex 00000000,2c6f234e..2c6f234emode 000000,100644..100644--- a/project/aitoearn-web/src/api/plat/publish.ts+++ b/project/aitoearn-web/src/api/plat/publish.tsdiff --cc project/aitoearn-web/src/api/plat/threads.tsindex 00000000,00000000..d156dbf3new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/plat/threads.ts@@@ -1,0 -1,0 +1,29 @@@++// Threads API接口++import http from "@/utils/request";++++export interface ThreadsLocationItem {++ id: string;++ label: string;++}++++export interface ThreadsLocationsResponse {++ data: ThreadsLocationItem[];++ code: number;++}++++/**++ * 获取Threads位置列表++ * @param accountId 账户ID++ * @param keyword 搜索关键词(可选)++ * @returns++ */++export const apiGetThreadsLocations = (accountId: string, keyword?: string) => {++ const params: any = { accountId };++ if (keyword) {++ params.keyword = keyword;++ }++ return http.get<ThreadsLocationsResponse>(++ `plat/meta/threads/locations`,++ params++ );++};diff --cc project/aitoearn-web/src/api/plat/types/kwai.types.tsindex 00000000,00000000..6ec5cfb7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/plat/types/kwai.types.ts@@@ -1,0 -1,0 +1,10 @@@++export interface GetKwaiAuthStatusRes {++ taskId: string;++ transpond?: string;++ accountAddPath?: string;++ data?: {++ userId: string;++ };++ status: -1 | 0 | 1;++ error?: string;++}diff --cc project/aitoearn-web/src/api/plat/types/publish.types.tsindex 00000000,948be4b1..948be4b1mode 000000,100644..100644--- a/project/aitoearn-web/src/api/plat/types/publish.types.ts+++ b/project/aitoearn-web/src/api/plat/types/publish.types.tsdiff --cc project/aitoearn-web/src/api/plat/youtube.tsindex 00000000,00000000..916d4328new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/plat/youtube.ts@@@ -1,0 -1,0 +1,25 @@@++import { request } from "@/utils/request";++import { YouTubeCategoryItem } from "@/components/PublishDialog/publishDialog.type";++++// 获取YouTube国区参数++export const apiGetYouTubeRegions = (account: string) => {++ return request({++ url: "plat/youtube/common/params",++ method: "GET",++ params: {++ account++ }++ });++};++++// 获取YouTube视频分类++export const apiGetYouTubeCategories = (accountId: string, regionCode: string) => {++ return request<YouTubeCategoryItem[]>({++ url: "plat/youtube/video/categories",++ method: "GET",++ params: {++ accountId,++ regionCode++ }++ });++};diff --cc project/aitoearn-web/src/api/platAuth.tsindex 00000000,c1cda848..c1cda848mode 000000,100644..100644--- a/project/aitoearn-web/src/api/platAuth.ts+++ b/project/aitoearn-web/src/api/platAuth.tsdiff --cc project/aitoearn-web/src/api/sent.tsindex 00000000,00000000..61fdb6b4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/sent.ts@@@ -1,0 -1,0 +1,11 @@@++import { request } from "@/utils/request";++import { SentPostsParams, SentPostsResponse } from "./types/sent.types";++++// 获取已发布帖子列表++export const getSentPosts = (params: SentPostsParams) => {++ return request<SentPostsResponse>({++ url: "channel/engagement/posts",++ method: "POST",++ data: params,++ });++};diff --cc project/aitoearn-web/src/api/signIn.tsindex 00000000,00000000..44220f15new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/signIn.ts@@@ -1,0 -1,0 +1,98 @@@++/*++ * @Author: nevin++ * @Date: 2025-02-22 12:02:55++ * @LastEditTime: 2025-04-27 18:42:18++ * @LastEditors: nevin++ * @Description: feedback++ */++import http from "@/utils/request";++++export enum SignInType {++ PUL_VIDEO = "pul_video",++}++++export interface SignInResponse {++ success: boolean;++ message?: string;++ score?: number; // 签到后更新的积分++ data?: any;++}++++export interface PublishDayInfo {++ _id: string;++ userId: string;++ publishTotal: number;++ createdAt: string;++ updatedAt: string;++}++++export interface PublishDayInfoResponse {++ total: number;++ list: PublishDayInfo[];++}++++export interface PublishInfoData {++ _id: string;++ userId: string;++ days: number; // 连续签到天数++ createdAt: string;++ updatedAt: string;++ upInfoDate: string;++ id: string;++}++++export interface PublishInfoResponse {++ code: number;++ data: PublishInfoData;++}++++export const signInApi = {++ /**++ * 创建签到++ */++ async createSignInRecord(type: SignInType = SignInType.PUL_VIDEO): Promise<SignInResponse> {++ const res = await http.post<SignInResponse>(`reward/signIn`, {++ type,++ });++ return res!.data;++ },++++ /**++ * 获取签到日历数据++ */++ async getSignInCalendar(year: number, month: number): Promise<PublishDayInfoResponse> {++ const res = await http.get<PublishDayInfoResponse>(`plat/publish/publishDayInfo/list/1/99`);++ return res!.data;++ },++++ /**++ * 获取连续签到天数++ */++ async getConsecutiveDays(): Promise<PublishInfoResponse> {++ const res:any = await http.get<PublishInfoResponse>(`plat/publish/publishInfo/data`);++ return res;++ },++++++};++++/**++ * 注销账户相关接口++ */++export const cancelAccountApi = {++ /**++ * 获取注销验证码++ */++ async getCancelCode(): Promise<any> {++ const res = await http.get<any>(`login/cancel/code`);++ return res;++ },++++ /**++ * 注销账户++ */++ async cancelAccount(data: { code: string }): Promise<any> {++ const res = await http.delete<any>(`login/cancel`, data);++ return res;++ },++};diff --cc project/aitoearn-web/src/api/statistics.tsindex 00000000,92e24f6b..92e24f6bmode 000000,100644..100644--- a/project/aitoearn-web/src/api/statistics.ts+++ b/project/aitoearn-web/src/api/statistics.tsdiff --cc project/aitoearn-web/src/api/task.tsindex 00000000,00000000..cfe7ca0cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/task.ts@@@ -1,0 -1,0 +1,107 @@@++import http from "@/utils/request";++import { AccountType } from "./types/account.type";++++export enum TaskOpportunityStatus {++ PENDING = 'pending', // 待接取++ ACCEPTED = 'accepted', // 已接取++ EXPIRED = 'expired', // 已过期++}++++export interface TaskOpportunity {++ _id: string;++ id: string;++ taskId: string++ accountId: string++ userId: string++ accountType: AccountType++ uid: string++ status: TaskOpportunityStatus++ expiredAt: Date++ metadata?: Record<string, any> // 额外信息,如匹配得分等++}++++export enum UserTaskStatus {++ DOING = 'doing', // 进行中++ PENDING = 'pending', // 待审核++ APPROVED = 'approved', // 已通过++ REJECTED = 'rejected', // 已拒绝++ CANCELLED = 'cancelled', // 已取消++ DEL = 'del', // 已删除或回退++}++++interface UserTaskAutoData {++ status: -1 | 0 | 1++ message?: string++}++++export interface UserTask {++ _id: string;++ id: string;++ userId: string++ taskId: string++ accountId: string++ accountType: AccountType++ uid: string++ status: UserTaskStatus++ keepTime: number // 保持时间(秒)++ submissionUrl?: string // 提交的视频、文章或截图URL++ submissionTime?: Date // 提交时间++ taskMaterialId?: string // 任务的素材ID++ screenshotUrls?: string[] // 任务完成截图++ qrCodeScanResult?: string // 二维码扫描结果++ completionTime?: Date // 完成时间++ rejectionReason?: string // 拒绝原因++ metadata?: Record<string, any> // 额外信息,如审核反馈等++ isFirstTimeSubmission: boolean // 是否首次提交,用于确定是否给予首次奖励++ verificationNote?: string // 人工核查备注++ reward: number // 奖励金额++ rewardTime?: Date // 奖励发放时间++ verifiedBy?: string // 核查人员ID++ autoData?: UserTaskAutoData // 自动任务数据++}++++// 获取待接受的任务列表++export const apiGetTaskOpportunityList = (params: {++ page?: number;++ pageSize?: number;++}) => {++ return http.get<{list: TaskOpportunity[]}>(`task/opportunity/list/${params.page}/${params.pageSize}` );++};++++/**++ * 接取任务++ * @param opportunityId++ * @returns++ */++export const apiAcceptTask = (opportunityId: string) => {++ return http.post<any>(`task/accept`, { opportunityId });++};++++++// 获取已接受的任务列表++export const apiGetUserTaskList = (params: {++ page?: number;++ pageSize?: number;++}) => {++ return http.get<{list: UserTask[]}>(`task/userTask/list/${params.page}/${params.pageSize}` );++++};++++++/**++ * 已接受的任务详情++ * @param id++ * @returns++ */++export const apiGetUserTaskDetail = (id: string) => {++ return http.get<any>(`task/userTask/info/${id}`);++};++++/**++ * 接取任务++ * @param userTaskId++ * @returns++ */++export const apiSubmitTask = (userTaskId: string, submissionUrl: string) => {++ return http.post<any>(`task/submit`, { userTaskId, submissionUrl });++};diff --cc project/aitoearn-web/src/api/tools.tsindex 00000000,00000000..86dc6e76new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/tools.ts@@@ -1,0 -1,0 +1,82 @@@++/*++ * @Author: nevin++ * @Date: 2025-02-22 12:02:55++ * @LastEditTime: 2025-03-02 22:21:01++ * @LastEditors: nevin++ * @Description: 工具++ */++import http, { request } from "@/utils/request";++import { AiCreateType } from "./types/tools";++++export const toolsApi = {++ /**++ * 获取智能标题++ * @param url++ * @param type 1=标题 2=描述++ * @param max++ */++ async apiVideoAiTitle(url: string, type: AiCreateType, max: number) {++ const res = await http.post<string>("tools/ai/video/title", {++ url,++ type,++ max: max - 10,++ });++ return res!.data;++ },++++ /**++ * 智能图文++ */++ async apiReviewImgAi(data: {++ imgUrl: string;++ title?: string;++ desc?: string;++ max?: number;++ }) {++ const res = await http.post<string>("tools/ai/reviewImg", data);++ return res!.data;++ },++++ /**++ * 智能评论++ */++ async apiReviewAi(data: { title: string; desc?: string; max?: number }) {++ const res = await http.post<string>("tools/ai/review", data);++ return res!.data;++ },++++ /**++ * 智能评论回复++ */++ async apiReviewAiRecover(data: {++ content: string;++ title?: string;++ desc?: string;++ max?: number;++ }) {++ const res = await http.post<string>("tools/ai/recover/review", data);++ return res!.data;++ },++++ /**++ * 生成AI的html图文 弃用: 时间太长得走sse++ */++ async aiArticleHtml(content: string) {++ const res = await http.post<string>("tools/ai/article/html", {++ content,++ });++ return res!.data;++ },++++ // TODO: sse生成AI的html图文++++ /**++ * 文本内容安全++ */++ async textModeration(content: string) {++ const res = await http.post<string>("aliGreen/textGreen", {++ content,++ });++ return res;++ },++};diff --cc project/aitoearn-web/src/api/twitter.tsindex 00000000,00000000..ec4eb758new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/twitter.ts@@@ -1,0 -1,0 +1,29 @@@++import http from "@/utils/request";++import { request } from "@/utils/request";++++// 获取 Twitter 授权 URL++export const getTwitterAuthUrlApi = (mail: string, spaceId?: string) => {++ const data: any = {};++ if (spaceId) {++ data.spaceId = spaceId;++ }++ return request({++ url: 'plat/twitter/auth/url',++ method: 'POST',++ data,++ });++};++++++/**++ * 获取youtube授权状态++ * @param taskId 任务ID++ * @returns++ */++export const apiCheckTwitterAuth = (taskId: string) => {++ return http.get<{ code: number; data: any }>(++ `plat/twitter/auth/info/${taskId}`,++ );++};++++diff --cc project/aitoearn-web/src/api/types/account.type.tsindex 00000000,00000000..2c1fc7ffnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/account.type.ts@@@ -1,0 -1,0 +1,67 @@@++import { PlatType } from "@/app/config/platConfig";++++export enum AccountType {++ Douyin = 'douyin', // 抖音++ Xhs = 'xhs', // 小红书++ WxSph = 'wxSph', // 微信视频号++ KWAI = 'KWAI', // 快手++ YOUTUBE = 'youtube', // youtube++ WxGzh = 'wxGzh', // 微信公众号++ BILIBILI = 'bilibili', // B站++ Twitter = 'twitter', // 推特++ TikTok = 'tiktok', // TikTok++ Facebook = 'facebook', // Facebook++ Instagram = 'instagram', // Instagram++ Threads = 'threads', // Threads++}++++// 三方账户类型定义++export interface SocialAccount {++ id: string;++ type: PlatType;++ loginCookie?: string;++ access_token?: string;++ refresh_token?: string;++ loginTime: string;++ uid: string;++ account: string;++ avatar: string;++ nickname: string;++ fansCount: number;++ readCount: number;++ likeCount: number;++ collectCount: number;++ forwardCount: number;++ commentCount: number;++ lastStatsTime: string;++ workCount: number;++ income: number;++ status: number;++ createTime: string;++ updateTime: string;++ rank: number;++ groupId: string;++}++++// 更新账户统计数据++export interface UpdateAccountStatisticsParams {++ id: number;++ fansCount: number;++ readCount: number;++ likeCount: number;++ collectCount: number;++ commentCount: number;++ income: number;++ workCount: number;++}++++// 账户组 item 数据++export interface AccountGroupItem {++ id: string;++ name: string;++ rank: number;++ isDefault: boolean;++ proxyIp?: string;++ ip?: string;++ location?: string;++}diff --cc project/aitoearn-web/src/api/types/dataStatistics.tsindex 00000000,00000000..31438ad5new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/dataStatistics.ts@@@ -1,0 -1,0 +1,72 @@@++// getStatisticsPeriodApi 入参++import { PlatType } from "@/app/config/platConfig";++++export interface StatisticsPeriodApiParams {++ startDate: string;++ endDate: string;++ queries: {++ platform: string;++ uid: string;++ }[];++}++++export interface StatisticsPeriodModel {++ items?: StatisticsPeriodItems[];++ queryCount: number;++ successCount: number;++ groupedByDate: GroupedByDate[];++}++++export interface StatisticsPeriodItems {++ platform: PlatType;++ uid: string;++ items?: StatisticsPeriodItems2[];++}++++export interface StatisticsPeriodItems2 {++ id: string;++ platform: string;++ snapshotDate: string;++ uid: string;++ accountId: string;++ commentCount?: number;++ createdAt: string;++ followingCount?: number;++ likeCount?: number;++ status: number;++ updatedAt: string;++ userId: string;++ snapshotDateAsDate: string;++ fansCount: number;++ readCount?: number;++ collectCount?: number;++ forwardCount?: number;++ workCount: number;++}++++export interface GroupedByDate {++ date: string;++ records: Records[];++ count: number;++}++++export interface Records {++ id: string;++ platform: string;++ snapshotDate: string;++ uid: string;++ accountId: string;++ commentCount: number;++ createdAt: string;++ followingCount: number;++ likeCount: number;++ status: number;++ updatedAt: string;++ userId: string;++ snapshotDateAsDate: string;++ fansCount: number;++ readCount: number;++ collectCount: number;++ forwardCount: number;++ workCount: number;++}diff --cc project/aitoearn-web/src/api/types/engagement.tsindex 00000000,00000000..6f328ff7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/engagement.ts@@@ -1,0 -1,0 +1,148 @@@++export type EngagementPlatform =++ | 'bilibili'++ | 'douyin'++ | 'facebook'++ | 'wxGzh'++ | 'instagram'++ | 'KWAI'++ | 'pinterest'++ | 'threads'++ | 'tiktok'++ | 'twitter'++ | 'xhs'++ | 'youtube';++++export type EngagementMediaType = 'video' | 'image' | 'article';++++export interface EngagementPostsParams {++ platform: EngagementPlatform;++ uid: string;++ page: number;++ pageSize: number;++}++++export interface EngagementPostItem {++ postId: string;++ platform: EngagementPlatform;++ title: string;++ content: string;++ thumbnail: string;++ mediaType: EngagementMediaType;++ permaLink: string;++ publishTime: number; // ms timestamp++ viewCount: number;++ commentCount: number;++ likeCount: number;++ shareCount: number;++ clickCount: number;++ impressionCount: number;++ favoriteCount: number;++}++++export interface EngagementPostsResponse {++ total: number;++ posts: EngagementPostItem[];++ hasMore: boolean;++}++++export interface EngagementCommentItem {++ id: string;++ postId: string;++ userId: string;++ userName?: string;++ userAvatar?: string;++ content: string;++ likeCount: number;++ createdAt: number; // ms timestamp++ parentId?: string; // 回复时存在++}++++export interface EngagementCommentsParams {++ postId: string;++ page: number;++ pageSize: number;++}++++export interface EngagementCommentsResponse {++ total: number;++ comments: EngagementCommentItem[];++ hasMore: boolean;++}++++export interface EngagementReplyParams {++ postId: string;++ parentId?: string;++ content: string;++}++++// 新版:平台一级评论(支持 keyset/offset 分页)++export type PostCommentPlatform = 'facebook' | 'instagram' | 'twitter' | 'youtube' | 'tiktok';++++export interface PostCommentsAuthor {++ id?: string;++ name?: string;++ avatar?: string;++}++++export interface PostCommentItemV2 {++ id: string;++ message: string;++ author: PostCommentsAuthor;++ createdAt: string; // ISO 8601++ hasReplies: boolean;++}++++export interface PostCommentsParamsV2 {++ accountId: string;++ platform: PostCommentPlatform;++ postId: string;++ pagination?: {++ before?: string;++ after?: string;++ limit?: number;++ };++}++++export interface PostCommentsResponseV2 {++ comments: PostCommentItemV2[];++ total?: number; // offset 模式才会返回++ cursor?: {++ before?: string;++ after?: string;++ };++}++++export interface PublishPostCommentParams {++ accountId: string;++ platform: PostCommentPlatform;++ postId: string;++ message: string; // 1-500 chars++}++++export interface PublishCommentReplyParams {++ accountId: string;++ platform: PostCommentPlatform;++ commentId: string;++ message: string; // 1-500 chars++}++++export interface CommentRepliesParams {++ accountId: string;++ platform: PostCommentPlatform;++ commentId: string;++ pagination?: {++ before?: string;++ after?: string;++ limit?: number;++ };++}++++export interface CommentRepliesResponse {++ comments: PostCommentItemV2[];++ cursor?: {++ before?: string;++ after?: string;++ };++}++++diff --cc project/aitoearn-web/src/api/types/finance.tsindex 00000000,00000000..e865be33new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/finance.ts@@@ -1,0 -1,0 +1,34 @@@++/*++ * @Author: nevin++ * @Date: 2025-03-02 21:06:59++ * @LastEditTime: 2025-03-02 22:12:36++ * @LastEditors: nevin++ * @Description: 财务相关++ */++import { UserWalletAccount } from './userWalletAccount';++++export enum UserWalletRecordType {++ TASK_COMMISSION = 'TASK_COMMISSION', // 任务佣金++ WITHDRAW = 'WITHDRAW', // 提现++}++++export enum UserWalletRecordStatus {++ FAIL = -1,++ WAIT = 0,++ SUCCESS = 1,++}++++export interface UserWalletRecord {++ id: string;++ userId: string;++ account: UserWalletAccount;++ dataId: string; // 关联数据的ID++ type: UserWalletRecordType;++ balance: number;++ status: UserWalletRecordStatus;++ payTime?: string;++ des?: string;++ imgUrl?: string; // 反馈截图++ createdAt: string;++ updatedAt: string;++}diff --cc project/aitoearn-web/src/api/types/hotTopic.tsindex 00000000,00000000..d233a9e0new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/hotTopic.ts@@@ -1,0 -1,0 +1,21 @@@++import { Platform } from '../hot';++++export interface HotValueHistory {++ updateTime: string; // 记录时间++ hotValue: number; // 热度值++}++++export interface HotTopic {++ _id: string;++ platformId: Platform; // 关联平台ID++ title: string; // 话题标题++ hotValue: number; // 当前热度值++ url: string; // 话题链接++ rank: number; // 当前排名++ rankChange: number; // 排名变化值(正数表示上升,负数表示下降)++ isRising: boolean; // 是否上升趋势++ hotValueHistory: HotValueHistory[]; // 热度值历史记录++ fetchTime: Date; // 数据抓取时间++ createTime: Date;++ updateTime: Date;++}diff --cc project/aitoearn-web/src/api/types/income.tsindex 00000000,00000000..fd7465a0new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/income.ts@@@ -1,0 -1,0 +1,21 @@@++export enum IncomeType {++ TASK = 'task', // 任务++ TASK_BACK = 'task_back', // 任务回退++ REWARD_BACK = 'reward_back', // 奖励回退++}++++// 订单类型 (根据实际API返回结构)++export interface IncomeRecord {++ _id: string;++ id: string;++ userId: string;++ amount: number;++ relId?: string++ type: IncomeType++ desc?: string++ metadata?: Record<string, unknown>++ // 提现状态:1=可提现,0=已申请++ status?: number++ createdAt: Date++ updatedAt: Date++}diff --cc project/aitoearn-web/src/api/types/index.tsindex 00000000,00000000..2a0d72dfnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/index.ts@@@ -1,0 -1,0 +1,29 @@@++/*++ * @Author: nevin++ * @Date: 2025-02-22 12:07:07++ * @LastEditTime: 2025-02-22 12:07:24++ * @LastEditors: nevin++ * @Description:++ */++export interface ApiCorrectQuery {++ pageSize: number;++ pageNo: number;++}++++export interface IPaginationMeta {++ itemCount: number;++ totalItems?: number;++ itemsPerPage: number;++ totalPages?: number;++ currentPage: number;++}++++export class Pagination<T> {++ constructor(++ public readonly items: T[],++ public readonly meta: IPaginationMeta,++ ) {}++}++++// 导出支付相关类型++export * from './payment';diff --cc project/aitoearn-web/src/api/types/operate.tsindex 00000000,00000000..6781404dnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/operate.ts@@@ -1,0 -1,0 +1,12 @@@++export interface Banner {++ _id: string;++ id: string;++ dataId: string;++ desc: string;++ url: string;++ imgUrl: string;++ tag: string;++ isPublish: 0 | 1;++ createTime: string;++ updateTime: string;++}diff --cc project/aitoearn-web/src/api/types/payment.tsindex 00000000,00000000..e35bf160new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/payment.ts@@@ -1,0 -1,0 +1,81 @@@++// 订单状态枚举 (根据实际API返回的数字状态)++export enum OrderStatus {++ SUCCEEDED = 1, // 支付成功++ CREATED = 2, // 订单创建成功等待支付++ REFUNDED = 3, // 退款成功++ EXPIRED = 4 // 订单取消/过期++}++++// 套餐类型枚举++export enum PaymentType {++ MONTH = 'month', // 月度订阅++ YEAR = 'year', // 年度订阅++ ONCE_MONTH = 'onceMonth', // 一次性月度++ ONCE_YEAR = 'onceYear' // 一次性年度++}++++// 订单类型 (根据实际API返回结构)++export interface Order {++ _id: string;++ amount: number;++ amount_refunded: number;++ created: number; // 时间戳++ currency: string;++ customer: any;++ customer_details: any;++ expires_at: number;++ id: string; // stripe checkout session id++ info: any;++ metadata: {++ userId: string;++ payment: string;++ mode: string;++ };++ mode: string;++ payment_intent: string | null;++ price: string;++ status: OrderStatus;++ subscription: any;++ success_url: string;++ url: string;++ userId: string;++}++++// 订单查询参数++export interface OrderListParams {++ price?: string;++ page: number;++ size: number;++}++++// 订阅列表查询参数++export interface SubscriptionListParams {++ page: number;++ size: number;++}++++// 退款参数++export interface RefundParams {++ charge: string;++ payment_intent: string;++ userId: string;++}++++// 退订参数++export interface UnsubscribeParams {++ id: string;++ userId: string;++}++++// API响应类型++export interface PaymentApiResponse<T> {++ code: number;++ message: string;++ data: T;++}++++// 分页响应 (根据实际API返回结构: data.count 和 data.list)++export interface PaginatedResponse<T> {++ count: number;++ list: T[];++}diff --cc project/aitoearn-web/src/api/types/pinterest.tsindex 00000000,00000000..79053287new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/pinterest.ts@@@ -1,0 -1,0 +1,1 @@@++// Pinterest API 相关类型定义 - 最少化类型使用,多使用anydiff --cc project/aitoearn-web/src/api/types/platform.type.tsindex 00000000,00000000..fcfd5604new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/platform.type.ts@@@ -1,0 -1,0 +1,61 @@@++export type AiToolsRankingItemType = {++ _id: string;++ rankingId: string;++ col_name: string;++ status: number;++ videoDuration: number;++ anaAdd: null | string;++ url: string;++ category: string;++ subCategory: string;++ type: null | string;++ shareCount: number;++ collectCount: null | number;++ cover: string;++ description: string;++ title: string;++ createTime: string;++ updateTime: string;++ author: {++ id: null | string;++ name: null | string;++ fansCount: null | number;++ avatar: null | string;++ };++ stats: {++ viewCount: string;++ likeCount: number;++ commentCount: number;++ };++ publishTime: string;++ rankingPosition: number;++ spider_time: null | string;++ platformId: string;++ originalId: string;++ downCount: string;++ referCount: number;++ volumeCount: number;++ exponentCount: number;++ intro: string;++ rankChange: number;++ detail: {++ 公众号: number;++ 抖音: number;++ 视频号: number;++ 小红书: number;++ 快手: number;++ 哔哩哔哩: number;++ };++ area: number;++ id: string;++};++++export interface GetAiToolsRankingApiRes {++ items: AiToolsRankingItemType[];++}++++export interface GetAiToolsRankingApiParams {++ dateType: string;++ startDate: string;++ area: string;++}diff --cc project/aitoearn-web/src/api/types/sent.types.tsindex 00000000,00000000..68d62460new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/sent.types.ts@@@ -1,0 -1,0 +1,37 @@@++// Sent界面相关的类型定义++++export interface SentPost {++ postId: string;++ platform: string;++ title: string;++ content: string;++ thumbnail: string;++ mediaType: 'video' | 'image' | 'article';++ permaLink: string;++ publishTime: number; // 时间戳,毫秒级++ viewCount: number;++ commentCount: number;++ likeCount: number;++ shareCount: number;++ clickCount: number;++ impressionCount: number;++ favoriteCount: number;++}++++export interface SentPostsResponse {++ code: number;++ message: string;++ url: string;++ data: {++ total: number;++ posts: SentPost[];++ hasMore: boolean;++ };++}++++export interface SentPostsParams {++ platform: string;++ uid: string;++ page: number;++ pageSize: number;++}diff --cc project/aitoearn-web/src/api/types/tools.tsindex 00000000,00000000..97f701d1new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/tools.ts@@@ -1,0 -1,0 +1,7 @@@++// AI生成类型++export enum AiCreateType {++ // 标题++ TITLE = 1,++ // 描述++ DESC = 2,++}diff --cc project/aitoearn-web/src/api/types/topic.tsindex 00000000,00000000..74c98dcdnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/topic.ts@@@ -1,0 -1,0 +1,25 @@@++export interface Topic {++ _id: string;++ title: string; // 话题标题++ description?: string;++ category: string;++ subCategory: string;++ url: string; // 作品链接++ author?: string; // 作者++ topics: string[]; // 话题标签++ rank: number;++ coverUrl?: string;++ shareCount: number;++ likeCount: number;++ watchingCount: number;++ commentCount: number;++ collectCount: number;++ readCount: number;++ publishTime?: string;++ fans: number;++ cover: string;++ avatar: string;++ createTime: Date;++ authorUrl: string;++ updateTime: Date;++}diff --cc project/aitoearn-web/src/api/types/user-t.tsindex 00000000,00000000..aa0edeadnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/user-t.ts@@@ -1,0 -1,0 +1,24 @@@++export interface PhoneLoginParams {++ phone: string;++ code: string;++ openId?: string; // 微信公众号的openId++ inviteCode?: string;++}++++export interface IUserInfo {++ _id: string;++ id: string;++ name: string;++ phone?: string;++ gender?: number;++ avatar?: string;++ desc?: string;++ wxOpenId?: string;++}++++export interface IRefreshToken {++ token: string;++ userInfo: IUserInfo;++ // 过期时间。秒++ exp: number;++}diff --cc project/aitoearn-web/src/api/types/userWalletAccount.tsindex 00000000,00000000..58bd9c1cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/userWalletAccount.ts@@@ -1,0 -1,0 +1,35 @@@++/*++ * @Author: nevin++ * @Date: 2025-03-01 19:27:35++ * @LastEditTime: 2025-03-01 19:39:02++ * @LastEditors: nevin++ * @Description: 用户钱包账户++ */++export enum WalletAccountType {++ ZFB = 'ZFB',++ WX_PAY = 'WX_PAY',++}++++export interface UserWallet {++ userId: string;++ balance: number;++ income: number;++}++++export interface UserWalletAccount {++ id: string;++ account: string; // 账户号++ userId: string;++ userName: string; // 真实姓名++ cardNum: string; // 身份证号++ phone: string; // 绑定的手机号++ type: WalletAccountType;++}++++export interface CreateUserWalletAccountParams {++ account: string; // 账户号++ userName: string; // 真实姓名++ cardNum: string; // 身份证号++ phone: string; // 绑定的手机号++ type: WalletAccountType;++}diff --cc project/aitoearn-web/src/api/types/viralTitles.tsindex 00000000,00000000..25e41c17new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/viralTitles.ts@@@ -1,0 -1,0 +1,15 @@@++import { Platform } from "@/api/hot";++++export interface ViralTitle {++ _id: string;++ platformId: Platform;++ category: string;++ title: string;++ url: string; // 链接++ rank: number; // 排名++ engagement: number; // 互动量++ publishTime?: Date;++ createTime: Date;++ updateTime: Date;++ timeType: string;++}diff --cc project/aitoearn-web/src/api/types/withdraw.tsindex 00000000,00000000..f27882b8new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/types/withdraw.ts@@@ -1,0 -1,0 +1,27 @@@++export enum WithdrawRecordType {++ TASK = 'task', // 任务++ REWARD = 'reward', // 奖励++}++++export enum WithdrawRecordStatus {++ WAIT = 0,++ SUCCESS = 1,++ FAIL = -1,++ TASK_WITHDRAW = 2, // 任务提现++}++++export interface WithdrawRecord {++ _id: string;++ id: string;++ userId: string;++ flowId?: string++ type: WithdrawRecordType++ amount: number;++ incomeRecordId?: string++ relId?: string++ desc?: string++ screenshotUrls?: string[] // 发放截图列表++ status: WithdrawRecordStatus++ createdAt: Date++ updatedAt: Date++}diff --cc project/aitoearn-web/src/api/userWalletAccount.tsindex 00000000,00000000..dbabbb0cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/userWalletAccount.ts@@@ -1,0 -1,0 +1,43 @@@++import http from "@/utils/request";++++export type WalletType = "ZFB" | "WX_PAY";++++export interface UserWalletAccountCreateDto {++ userId: string;++ mail: string; // email++ userName?: string;++ account: string;++ cardNum?: string;++ phone?: string;++ type: WalletType;++}++++export interface UserWalletAccount extends UserWalletAccountCreateDto {++ _id: string;++ createdAt?: string;++ updatedAt?: string;++}++++export function createUserWalletAccount(data: UserWalletAccountCreateDto) {++ return http.post<UserWalletAccount>("userWalletAccount", data);++}++++export function updateUserWalletAccount(id: string, data: Partial<UserWalletAccountCreateDto>) {++ return http.put<UserWalletAccount>("userWalletAccount", { id, ...data });++}++++export function deleteUserWalletAccount(id: string) {++ return http.delete<null>(`userWalletAccount/${id}`);++}++++export function getUserWalletAccountInfo(id: string) {++ return http.get<UserWalletAccount>(`userWalletAccount/info/${id}`);++}++++export function getUserWalletAccountList(pageNo: number, pageSize: number) {++ return http.get<{ list: UserWalletAccount[]; total: number }>(`userWalletAccount/list/${pageNo}/${pageSize}`);++}++++export const EMAIL_REGEX = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;++++diff --cc project/aitoearn-web/src/api/vip.tsindex 00000000,00000000..ec285452new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/vip.ts@@@ -1,0 -1,0 +1,47 @@@++import { request } from '@/utils/request';++++// 会员类型枚举++export enum VipCycleType {++ MONTH = 1, // 月卡会员++ YEAR = 2, // 年卡会员++}++++// 支付类型枚举++export enum PaymentType {++ MONTH = 'month', // 月度订阅++ YEAR = 'year', // 年度订阅++ ONCE_MONTH = 'onceMonth', // 一次性月度++ ONCE_YEAR = 'onceYear', // 一次性年度++ POINTS = 'points' // 积分购买++}++++// 创建支付订单参数接口++export interface CreatePaymentOrderParams {++ success_url?: string;++ mode: string;++ payment: PaymentType;++ quantity?: number; // 购买数量,用于积分购买++ metadata: {++ userId: string;++ };++}++++// 创建支付订单++export const createPaymentOrderApi = (params: CreatePaymentOrderParams) => {++ return request({++ url: 'payment/checkout',++ method: 'POST',++ data: params++ });++};++++// 设置会员类型++export const setVipApi = (cycleType: VipCycleType) => {++ return request({++ url: 'user/vip/set',++ method: 'PUT',++ data: {++ cycleType++ }++ });++};diff --cc project/aitoearn-web/src/api/withdraw.tsindex 00000000,00000000..62a57159new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/api/withdraw.ts@@@ -1,0 -1,0 +1,13 @@@++import { request } from '@/utils/request';++import { WithdrawRecord } from './types/withdraw';++++/**++ * 获取提现列表++ */++export const apiGetWithdrawRecordList = (page: {pageNo: number, pageSize: number}, params: { status?: number }) => {++ return request<{list: WithdrawRecord[], total: number}>({++ url: `withdraw/list/${page.pageNo}/${page.pageSize}`,++ method: 'GET',++ params++ });++};diff --cc project/aitoearn-web/src/app/[lng]/accounts/accountCore.tsxindex 00000000,00000000..92725958new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/accountCore.tsx@@@ -1,0 -1,0 +1,300 @@@++"use client";++++import styles from "./accounts.module.scss";++import { useAccountStore } from "@/store/account";++import { useShallow } from "zustand/react/shallow";++import { useEffect, useState } from "react";++import { NoSSR } from "@kwooshung/react-no-ssr";++import AccountSidebar from "@/app/[lng]/accounts/components/AccountSidebar/AccountSidebar";++import CalendarTiming from "@/app/[lng]/accounts/components/CalendarTiming";++import AddAccountModal from "@/app/[lng]/accounts/components/AddAccountModal";++import { PlatType } from "@/app/config/platConfig";++import { SocialAccount } from "@/api/types/account.type";++import AllPlatIcon from "@/app/[lng]/accounts/components/CalendarTiming/AllPlatIcon";++import { useTransClient } from "@/app/i18n/client";++import { useUserStore } from "@/store/user";++import Image from "next/image";++++import rightArrow from "@/assets/images/jiantou.png";++++interface AccountPageCoreProps {++ searchParams?: {++ platform?: string;++ spaceId?: string;++ };++}++++export default function AccountPageCore({++ searchParams,++}: AccountPageCoreProps) {++ const { accountInit, accountActive, setAccountActive, accountGroupList } =++ useAccountStore(++ useShallow((state) => ({++ accountInit: state.accountInit,++ setAccountActive: state.setAccountActive,++ accountActive: state.accountActive,++ accountGroupList: state.accountGroupList,++ })),++ );++++ // 添加账号弹窗状态++ const [addAccountModalOpen, setAddAccountModalOpen] = useState(false);++ const [targetPlatform, setTargetPlatform] = useState<PlatType | undefined>();++ const [targetSpaceId, setTargetSpaceId] = useState<string | undefined>();++ const { t } = useTransClient("account");++ const userStore = useUserStore();++++ // 移动端下载提示弹窗开关++ const [showMobileDownload, setShowMobileDownload] = useState(false);++ // 微信浏览器提示弹窗开关++ const [showWechatBrowserTip, setShowWechatBrowserTip] = useState(false);++++ useEffect(() => {++ accountInit();++ }, []);++++ // 处理URL参数++ useEffect(() => {++ if (searchParams?.platform || searchParams?.spaceId) {++ // 验证平台类型是否有效++ const platform = searchParams.platform as PlatType;++ const validPlatforms = Object.values(PlatType);++++ if (searchParams.platform && validPlatforms.includes(platform)) {++ setTargetPlatform(platform);++ }++++ if (searchParams.spaceId) {++ setTargetSpaceId(searchParams.spaceId);++ }++++ // 打开添加账号弹窗++ setAddAccountModalOpen(true);++ }++ }, [searchParams]);++++ /**++ * 检测是否为微信浏览器++ */++ const isWechatBrowser = () => {++ if (typeof window === "undefined") return false;++ const ua = window.navigator.userAgent.toLowerCase();++ return ua.includes('micromessenger');++ };++++ /**++ * 在移动端首次进入 accounts 页面时,展示下载提示弹窗++ * - 条件:屏幕宽度 <= 768++ * - 只在当前会话展示一次(使用 sessionStorage 标记)++ * - 如果是微信浏览器,先显示微信浏览器提示++ */++ useEffect(() => {++ if (typeof window === "undefined") return;++ const isMobile = window.innerWidth <= 768;++ const hasShown = sessionStorage.getItem("accountsMobileDownloadShown");++ const hasShownWechatTip = sessionStorage.getItem("accountsWechatTipShown");++++ if (isMobile) {++ // 如果是微信浏览器且未显示过微信提示,先显示微信提示++ if (isWechatBrowser() && !hasShownWechatTip) {++ setShowWechatBrowserTip(true);++ sessionStorage.setItem("accountsWechatTipShown", "1");++ } else if (!hasShown) {++ // 非微信浏览器或已显示过微信提示,显示下载提示++ setShowMobileDownload(true);++ sessionStorage.setItem("accountsMobileDownloadShown", "1");++ }++++++ }++ }, []);++++ /**++ * 关闭下载提示弹窗++ */++ const closeMobileDownload = () => setShowMobileDownload(false);++++ /**++ * 关闭微信浏览器提示弹窗++ */++ const closeWechatBrowserTip = () => {++ setShowWechatBrowserTip(false);++ // 关闭微信提示后,显示下载提示++ const hasShown = sessionStorage.getItem("accountsMobileDownloadShown");++ if (!hasShown) {++ setShowMobileDownload(true);++ sessionStorage.setItem("accountsMobileDownloadShown", "1");++ }++ };++++ /**++ * 生成下载链接(根据语言)++ */++ const getDownloadHref = () => {++ const lang = userStore.lang;++ return lang === "en"++ ? "https://docs.aitoearn.ai/en/downloads"++ : "https://docs.aitoearn.ai/zh/downloads";++ };++++ const downloadTexts = (() => {++ const lang = userStore.lang;++ if (lang === "zh-CN") {++ return {++ title: "欢迎使用 AitoEarn",++ desc: "为了获得完整体验,请在设备上下载 App",++ cta: "下载 App",++ };++ }++ return {++ title: "Welcome to AitoEarn",++ desc: "To enjoy the full experience, please download the app on your device",++ cta: "Download App",++ };++ })();++++ const wechatBrowserTexts = (() => {++ const lang = userStore.lang;++ if (lang === "zh-CN") {++ return {++ title: "请在浏览器中打开",++ desc: "请点击右上角,通过浏览器打开",++ cta: "我知道了",++ };++ }++ return {++ title: "Please open in browser",++ desc: "Please click the top-right corner to open via browser",++ cta: "I understand",++ };++ })();++++ const handleAddAccountSuccess = (accountInfo: SocialAccount) => {++ setAddAccountModalOpen(false);++ // 可以在这里添加成功提示或其他逻辑++ };++++ const handleAddAccountClose = () => {++ setAddAccountModalOpen(false);++ // 清除URL参数(可选)++ if (typeof window !== "undefined") {++ const url = new URL(window.location.href);++ url.searchParams.delete("platform");++ url.searchParams.delete("spaceId");++ window.history.replaceState({}, "", url.toString());++ }++ };++++ return (++ <NoSSR>++ <div className={styles.accounts}>++ <AccountSidebar++ activeAccountId={accountActive?.id || ""}++ onAccountChange={(account) => {++ setAccountActive(account);++ }}++ sidebarTopExtra={++ <>++ <div++ className={[++ "accountList-item",++ `${!accountActive?.id ? "accountList-item--active" : ""}`,++ ].join(" ")}++ style={{++ border: "1px solid #d9d9d9",++ borderRight: "none",++ borderLeft: "none",++ }}++ onClick={async () => {++ setAccountActive(undefined);++ }}++ >++ <AllPlatIcon size={38} />++ <div className="accountList-item-right">++ <div className="accountList-item-right-name">++ {t("allPlatforms")}++ </div>++ </div>++ </div>++ </>++ }++ />++ <CalendarTiming />++++ {/* 添加账号弹窗 */}++ <AddAccountModal++ open={addAccountModalOpen}++ onClose={handleAddAccountClose}++ onAddSuccess={handleAddAccountSuccess}++ targetGroupId={targetSpaceId}++ showSpaceSelector={!targetSpaceId}++ autoTriggerPlatform={targetPlatform}++ />++++ {/* 微信浏览器提示(遮罩 + 箭头指向右上角) */}++ {showWechatBrowserTip && (++ <>++ <div className={styles.mobileDownloadOverlay} onClick={closeWechatBrowserTip} />++ <Image src={rightArrow} alt="rightArrow" width={120} height={120} className={styles.rightArrow} />++ <div className={styles.wechatTipContainer}>++ <div className={styles.wechatTipContent}>++ <div className={styles.wechatTipTitle}>{wechatBrowserTexts.title}</div>++ <div className={styles.wechatTipSteps}>++ <div className={styles.wechatTipStep}>++ <span className={styles.stepNumber}>1</span>++ <span className={styles.stepText}>++ {userStore.lang === "zh-CN" ? "点击右上角的" : "Click the top-right corner's"}++ <span className={styles.dotsButton}>⋯</span>++ {userStore.lang === "zh-CN" ? "按钮" : "button"}++ </span>++ </div>++ <div className={styles.wechatTipStep}>++ <span className={styles.stepNumber}>2</span>++ <span className={styles.stepText}>++ {userStore.lang === "zh-CN" ? "选择" : "Select"}++ <span className={styles.browserButton}>🌐</span>++ {userStore.lang === "zh-CN" ? "在浏览器中打开" : "Open in browser"}++ </span>++ </div>++ </div>++ <button className={styles.wechatTipClose} onClick={closeWechatBrowserTip}>++ {wechatBrowserTexts.cta}++ </button>++ </div>++++ </div>++ </>++ )}++++ {/* 移动端下载提示(遮罩 + 底部弹窗) */}++ {showMobileDownload && (++ <>++ <div className={styles.mobileDownloadOverlay} />++ <div className={styles.mobileDownloadSheet} role="dialog" aria-modal="true">++ <div className={styles.sheetHeader}>++ <div className={styles.sheetTitle}>{downloadTexts.title} 👋</div>++ <button className={styles.sheetClose} aria-label="Close" onClick={closeMobileDownload}>++ ×++ </button>++ </div>++ <div className={styles.sheetBody}>++ <p className={styles.sheetDesc}>{downloadTexts.desc}</p>++ </div>++ <div className={styles.sheetFooter}>++ <a++ className={styles.sheetCta}++ href={getDownloadHref()}++ target="_blank"++ rel="noopener noreferrer"++ onClick={closeMobileDownload}++ >++ {downloadTexts.cta}++ </a>++ </div>++ </div>++ </>++ )}++ </div>++ </NoSSR>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/accounts.module.scssindex 00000000,00000000..341fae9dnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/accounts.module.scss@@@ -1,0 -1,0 +1,236 @@@++.accounts {++ display: flex;++ height: 100%;++ min-height: 0;++ overflow: auto;++}++++// 移动端下载提示:遮罩++.mobileDownloadOverlay {++ position: fixed;++ inset: 0;++ background: rgba(0, 0, 0, 0.85);++ z-index: 1000;++ animation: fadeIn 0.2s ease-out;++}++++// 移动端下载提示:底部弹窗++.mobileDownloadSheet {++ position: fixed;++ left: 0;++ right: 0;++ bottom: 0;++ background: #fff;++ border-radius: 16px 16px 0 0;++ box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);++ z-index: 1001;++ animation: slideUp 0.25s ease-out;++ padding: 16px 16px 20px;++}++++.sheetHeader {++ display: flex;++ align-items: center;++ justify-content: space-between;++ gap: 8px;++}++++.sheetTitle {++ font-size: 18px;++ font-weight: 700;++ color: #111827;++}++++.sheetClose {++ background: transparent;++ border: none;++ font-size: 22px;++ color: #6b7280;++ cursor: pointer;++ padding: 4px 8px;++ border-radius: 6px;++ transition: background 0.2s ease;++++ &:hover {++ background: #f3f4f6;++ }++}++++.sheetBody {++ padding: 12px 4px 4px;++}++++.sheetDesc {++ margin: 0;++ color: #4b5563;++ font-size: 14px;++ line-height: 1.6;++}++++.sheetFooter {++ padding-top: 12px;++ display: flex;++ justify-content: center;++}++++.sheetCta {++ display: inline-block;++ background: #4f46e5;++ color: #fff;++ text-decoration: none;++ padding: 10px 18px;++ border-radius: 8px;++ font-weight: 600;++ box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);++}++++@keyframes slideUp {++ from {++ transform: translateY(20px);++ opacity: 0.6;++ }++ to {++ transform: translateY(0);++ opacity: 1;++ }++}++++@keyframes fadeIn {++ from { opacity: 0; }++ to { opacity: 1; }++}++++// 微信浏览器提示:容器++.wechatTipContainer {++ position: fixed;++ inset: 0;++ z-index: 1001;++ display: flex;++ align-items: center;++ justify-content: center;++ pointer-events: none;++}++++// 微信浏览器提示:内容区域++.wechatTipContent {++ background: rgba(255, 255, 255, 0.95);++ border-radius: 16px;++ padding: 24px;++ margin: 20px;++ max-width: 320px;++ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);++ backdrop-filter: blur(10px);++ pointer-events: auto;++ animation: tipFadeIn 0.3s ease-out;++}++++.wechatTipTitle {++ font-size: 18px;++ font-weight: 700;++ color: #111827;++ text-align: center;++ margin-bottom: 20px;++}++++.wechatTipSteps {++ margin-bottom: 20px;++}++++.wechatTipStep {++ display: flex;++ align-items: center;++ gap: 12px;++ margin-bottom: 12px;++ font-size: 14px;++ color: #374151;++ line-height: 1.5;++}++++.stepNumber {++ background: #4f46e5;++ color: white;++ width: 24px;++ height: 24px;++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 12px;++ font-weight: 600;++ flex-shrink: 0;++}++++.stepText {++ flex: 1;++}++++.dotsButton {++ background: #374151;++ color: white;++ padding: 2px 8px;++ border-radius: 4px;++ font-size: 12px;++ margin: 0 4px;++ display: inline-block;++}++++.browserButton {++ background: #374151;++ color: white;++ padding: 2px 6px;++ border-radius: 4px;++ font-size: 12px;++ margin: 0 4px;++ display: inline-block;++}++++.wechatTipClose {++ width: 100%;++ background: #4f46e5;++ color: white;++ border: none;++ padding: 12px;++ border-radius: 8px;++ font-weight: 600;++ cursor: pointer;++ transition: background 0.2s ease;++++ &:hover {++ background: #4338ca;++ }++}++++// 微信浏览器提示:箭头指向右上角++.rightArrow {++ position: fixed;++ top: 10%;++ right: 20px;++ z-index: 1002;++ pointer-events: none;++ background-color: #E9F6FF;++ animation: arrowPulse 2s ease-in-out infinite;++ border-radius: 50%;++ padding: 10px;++}++++@keyframes arrowPulse {++ 0%, 100% {++ opacity: 0.8;++ transform: translateY(-50%) scale(1);++ }++ 50% {++ opacity: 1;++ transform: translateY(-50%) scale(1.1);++ }++}++++@keyframes tipFadeIn {++ from {++ opacity: 0;++ transform: scale(0.9);++ }++ to {++ opacity: 1;++ transform: scale(1);++ }++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/auth/page.tsxindex 00000000,00000000..a1c4411cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/auth/page.tsx@@@ -1,0 -1,0 +1,3 @@@++export default function Page() {++ return <p>Hello, auth res</p>;++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.module.scssindex 00000000,00000000..a343b6e9new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.module.scss@@@ -1,0 -1,0 +1,561 @@@++.accountSidebar {++ border-right: 1px solid var(--grayColor3);++ width: 200px;++ height: 100%;++ min-height: 0;++ flex-shrink: 0;++ display: flex;++ flex-direction: column;++++ p {++ margin: 0;++ }++++ :global {++ .accountSidebar-content {++ height: 100%;++ display: flex;++ flex-direction: column;++ min-height: 0;++ overflow-y: auto;++ }++++ .ant-collapse {++ height: 100%;++ }++++ .ant-skeleton-paragraph {++ margin-top: 15px !important;++ }++++ .ant-skeleton {++ display: flex !important;++ align-items: center !important;++ padding: 0 10px;++ margin-bottom: 10px;++ }++++ .accountSidebar-userCount {++ display: inline-block;++ margin-left: 10px;++ color: var(--grayColor6);++ }++++ .accountSidebar-groupLabel {++ display: flex;++ align-items: center;++ flex-wrap: wrap;++ gap: 8px;++ width: 100%;++ position: relative;++ }++++ .accountSidebar-groupSort {++ position: absolute;++ right: -15px;++ top: 50%;++ transform: translateY(-50%);++ opacity: 0;++ transition: opacity 0.2s;++ display: flex;++ flex-direction: column;++ gap: 2px;++ }++++ .accountSidebar-groupLabel:hover .accountSidebar-groupSort {++ opacity: 1;++ }++++ .accountSidebar-ipType {++ display: inline-block;++ background-color: var(--grayColor2);++ color: #8A5BF2;++ padding: 1px 2px;++ border-radius: 4px;++ font-size: 10px;++ font-weight: 500;++ margin-right: 4px;++ }++++ .accountSidebar-ipType[data-type="direct"] {++ background-color: #e6f7ff;++ color: #1890ff;++ // border: 1px solid #91d5ff;++ }++++ .accountSidebar-ipType[data-type="proxy"] {++ background-color: #fff7e6;++ color: #fa8c16;++ // border: 1px solid #ffd591;++ }++++ .accountSidebar-groupName {++ font-weight: 500;++ }++++ .accountSidebar-ipInfo {++ font-size: var(--fs-xs);++ color: var(--grayColor6);++ max-width: 130px;++ overflow: hidden;++ text-overflow: ellipsis;++ white-space: nowrap;++ }++++ .accountSidebar-ipLoading {++ color: var(--colorPrimary5);++ font-style: italic;++ }++++ .accountSidebar-ipText {++ cursor: help;++ padding: 2px 6px;++ background: var(--grayColor2);++ border-radius: 4px;++ transition: all 0.2s ease;++++ &:hover {++ background: var(--grayColor3);++ color: var(--grayColor7);++ }++ }++++ .accountSidebar-ipError {++ color: var(--errorColor);++ font-style: italic;++ }++++ .accountSidebar-top {++ flex-shrink: 0;++ padding: 0 10px;++ button {++ width: 100%;++ }++ &-box {++ display: flex;++ margin: 10px 0;++ }++ &-addUser {++ margin-left: 10px;++ width: 60px !important;++ }++ }++++ .accountSidebar-footer {++ padding: 10px;++ border-top: 1px solid var(--grayColor3);++ text-align: center;++ }++++ .accountList {++ width: 100%;++ height: 100%;++ min-width: 0;++ display: flex;++ flex-direction: column;++ white-space: nowrap;++ text-overflow: ellipsis;++ overflow: auto;++ &-item {++ width: 100%;++ min-width: 0;++ display: flex;++ align-items: center;++ padding: 10px 15px;++ box-sizing: border-box;++ cursor: pointer;++ background: #fff;++ transition: 0.3s;++ color: #333;++ position: relative;++++ .accountList-item-dragHandle {++ display: flex;++ align-items: center;++ justify-content: center;++ width: 20px;++ height: 20px;++ margin-right: 8px;++ cursor: grab;++ color: var(--grayColor5);++ opacity: 0;++ transition: opacity 0.2s;++ flex-shrink: 0;++++ &:active {++ cursor: grabbing;++ }++++ &:hover {++ color: var(--grayColor7);++ }++ }++++ &:hover .accountList-item-dragHandle {++ opacity: 1;++ }++++ &--dragging {++ transform: rotate(5deg);++ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);++ z-index: 1000;++ }++ .ant-avatar {++ flex-shrink: 0;++ }++ &-right {++ margin-left: 10px;++ box-sizing: border-box;++ width: 100%;++ overflow: hidden;++ &-name {++ text-align: left;++ margin-bottom: 5px;++ font-size: var(--fs-sm);++ overflow: hidden;++ text-overflow: ellipsis;++ }++ &-footer {++ display: flex;++ justify-content: space-between;++ font-size: var(--fs-sm);++ }++ &-plat {++ display: flex;++ align-items: center;++ img {++ width: 15px;++ margin-right: 5px;++ }++ span {++ font-size: var(--fs-xs);++ }++ }++ }++++ &:hover {++ color: var(--colorPrimary5);++ background: var(--colorPrimary1);++ }++++ &--active {++ background: var(--colorPrimary1);++ }++++ &--abnormal {++ color: red !important;++ }++++ &--disable {++ filter: grayscale(100%) !important;++ opacity: 0.5 !important;++ }++++ &--mobile-only {++ position: relative;++ filter: grayscale(100%) !important;++ opacity: 0.6 !important;++ }++ }++ }++++ .accountList-item-overlay {++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: rgba(0, 0, 0, 0.3);++ display: flex;++ align-items: center;++ justify-content: center;++ z-index: 10;++ cursor: pointer;++++ &-text {++ color: white;++ font-size: 12px;++ font-weight: 500;++ text-align: center;++ background: rgba(0, 0, 0, 0.6);++ padding: 4px 8px;++ border-radius: 4px;++ white-space: nowrap;++ }++ }++++ .ant-collapse {++ border: none;++ background: transparent;++ .ant-collapse-content-box {++ padding: 0 !important;++ }++ .ant-collapse-header {++ background: transparent;++ padding: 10px;++ }++ }++ }++}++++.accountPopoverInfo {++ padding: 10px;++ width: 250px;++ :global {++ .accountPopoverInfo_top {++ display: flex;++ font-size: var(--fs-sm);++ padding: 5px 0 10px 0;++ border-bottom: 1px solid #dedede;++ margin-bottom: 15px;++ color: var(--grayColor7);++ &-right {++ margin-left: 10px;++ }++ }++ .accountPopoverInfo-item {++ display: flex;++ align-items: center;++ margin-bottom: 5px;++ p {++ display: flex;++ align-items: center;++ &:nth-of-type(1) {++ color: var(--grayColor7);++ }++ img {++ width: 15px;++ margin-right: 5px;++ }++++ .anticon {++ margin-right: 3px;++ }++ }++ }++ }++}++++.userManageDeleteHitModal {++ .userManageDeleteHitModal-users {++ display: grid;++ gap: 15px;++ grid-template-columns: repeat(7, 1fr);++ margin-top: 10px;++ li {++ display: flex;++ align-items: center;++ justify-content: center;++ flex-direction: column;++ white-space: nowrap;++ & > span {++ text-overflow: ellipsis;++ display: block;++ margin-top: 5px;++ overflow: hidden;++ width: 100%;++ text-align: center;++ font-size: var(--fs-xs);++ color: var(--grayColor9);++ }++ }++ }++}++.userManageModal {++ :global {++ .ant-modal-header {++ margin-bottom: 0;++ }++ .ant-modal-content {++ padding: 0 !important;++ .ant-modal-title {++ padding: 15px;++ border-bottom: 1px solid var(--grayColor3);++ }++ }++ }++}++.userManage {++ display: flex;++ min-width: 0;++ height: 500px;++ :global {++ @include table-flex-container-with-selectors;++++ .ant-table-cell {++ padding: 10px !important;++ }++++ .userManage-sidebar {++ width: 200px;++ height: 100%;++ border-right: 1px solid var(--grayColor3);++ flex-shrink: 0;++ display: flex;++ flex-direction: column;++ justify-content: space-between;++ box-sizing: border-box;++ padding-top: 10px;++ &-top {++ display: flex;++ flex-direction: column;++ min-height: 0;++ }++ &-bottom {++ padding: 0 12px;++ margin-bottom: 15px;++ button {++ width: 100%;++ }++ }++ &-allUser, .userManage-sidebar-list-item {++ display: flex;++ justify-content: space-between;++ padding-right: 10px;++ padding-left: 10px;++ background: transparent;++ &:hover {++ background: var(--colorPrimary2);++ cursor: pointer;++ }++ }++ &-allUser {++ padding-top: 5px;++ padding-bottom: 5px;++ }++ &-sortHandle {++ cursor: move;++ margin-right: 10px;++ }++ &-left {++ display: flex;++ align-items: center;++ flex: 1;++ min-width: 0;++ }++ &-name {++ font-weight: 500;++ }++ &-count {++ color: var(--grayColor8);++ }++ &-list {++ display: flex;++ flex-direction: column;++ min-height: 0;++ height: 100%;++++ &-title {++ margin: 10px 0 10px 10px;++ font-size: var(--fs-xs);++ color: var(--grayColor8);++ }++++ &-item {++ padding-top: 10px;++ padding-bottom: 10px;++ }++++ &-sortable {++ height: 100%;++ overflow: auto;++ padding-bottom: 15px;++ }++ }++ &--active {++ background: var(--colorPrimary2) !important;++ }++ }++++ .userManage-content {++ width: 100%;++ overflow: hidden;++ position: relative;++ padding: 10px;++ display: flex;++ flex-direction: column;++++ &-head {++ display: flex;++ justify-content: space-between;++ margin-bottom: 10px;++ &-proxy {++++ }++ }++++ .ant-drawer-header {++ height: 40px;++ .ant-drawer-close {++ position: absolute;++ right: 10px;++ }++ }++++ .ant-drawer-content-wrapper {++ border: 1px solid var(--grayColor3);++ border-radius: 20px 20px 0 0;++ overflow: hidden;++ .ant-drawer-content {++ }++ .ant-drawer-body {++ overflow: hidden;++ }++ }++++ &-multiple {++ display: flex;++ gap: 40px;++ justify-content: center;++ &-item {++ cursor: pointer;++ display: flex;++ flex-direction: column;++ align-items: center;++ &-icon {++ background: var(--grayColor1);++ width: 36px;++ height: 36px;++ font-size: var(--fs-md);++ border-radius: 50%;++ display: flex;++ justify-content: center;++ align-items: center;++ margin-bottom: 5px;++ }++ &:hover {++ opacity: 0.6;++ }++ }++ }++++ &-user {++ overflow: hidden;++ white-space: nowrap;++ text-overflow: ellipsis;++ display: flex;++ align-items: center;++ &-name {++ margin-left: 15px;++ }++ &--disable {++ filter: grayscale(100%);++ opacity: 0.5;++ }++ .ant-avatar {++ margin-right: 5px;++ }++ }++ }++ }++}++++.createGroup {++ display: flex;++ align-items: center;++ margin: 30px 0 50px 0;++ label {++ white-space: nowrap;++ margin-right: 10px;++ }++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsxindex 00000000,5bda1762..5bda1762mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsxdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/DeleteUserConfirmModal.tsxindex 00000000,00000000..df9afe35new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/DeleteUserConfirmModal.tsx@@@ -1,0 -1,0 +1,81 @@@++import { ForwardedRef, forwardRef, memo, useState } from "react";++import styles from "@/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.module.scss";++import { Button, Modal } from "antd";++import { deleteAccountsApi } from "@/api/account";++import AvatarPlat from "@/components/AvatarPlat";++import { SocialAccount } from "@/api/types/account.type";++import { useTransClient } from "@/app/i18n/client";++++export interface IDeleteUserConfirmModalRef {}++++export interface IDeleteUserConfirmModalProps {++ open: boolean;++ onClose: () => void;++ onDeleteSuccess: () => void;++ deleteUsers: SocialAccount[];++}++++const DeleteUserConfirmModal = memo(++ forwardRef(++ (++ {++ open,++ onClose,++ deleteUsers,++ onDeleteSuccess,++ }: IDeleteUserConfirmModalProps,++ ref: ForwardedRef<IDeleteUserConfirmModalRef>,++ ) => {++ const [deleteLoading, setDeleteLoading] = useState(false);++ const { t } = useTransClient("account");++++ return (++ <Modal++ open={open}++ title={t("deleteConfirm.title" as any)}++ width={500}++ zIndex={1002}++ onCancel={() => onClose()}++ rootClassName={styles.userManageDeleteHitModal}++ footer={++ <>++ <Button onClick={() => onClose()}>{t("deleteConfirm.cancel" as any)}</Button>++ <Button++ type="primary"++ loading={deleteLoading}++ onClick={async () => {++ setDeleteLoading(true);++ const res = await deleteAccountsApi(++ deleteUsers.map((v) => v.id),++ );++ setDeleteLoading(false);++ if (!res) return setDeleteLoading(false);++ onDeleteSuccess();++ onClose();++ }}++ >++ {t("deleteConfirm.confirm" as any)}++ </Button>++ </>++ }++ >++ <p>++ {t("deleteConfirm.content" as any, { count: deleteUsers.length } as any)}++ </p>++ <div className={styles["userManageDeleteHitModal-users"]}>++ {deleteUsers.map((v) => {++ return (++ <li key={v.id}>++ <AvatarPlat account={v} size="large" />++ <span>{v.nickname}</span>++ </li>++ );++ })}++ </div>++ </Modal>++ );++ },++ ),++);++++export default DeleteUserConfirmModal;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/MCPKeyDetailModal.module.scssindex 00000000,00000000..c2126a81new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/MCPKeyDetailModal.module.scss@@@ -1,0 -1,0 +1,77 @@@++.mcpKeyDetailModal {++ .keyInfo {++ margin-bottom: 24px;++ padding: 16px;++ background: #f8f9fa;++ border-radius: 8px;++++ .keyHeader {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 12px;++++ .keyName {++ .label {++ font-weight: 500;++ color: #666;++ margin-right: 8px;++ }++++ .value {++ font-weight: 600;++ color: #333;++ }++ }++ }++++ .keyValue {++ margin-bottom: 12px;++++ .label {++ font-weight: 500;++ color: #666;++ margin-right: 8px;++ }++++ .value {++ font-family: 'Courier New', monospace;++ background: #fff;++ padding: 4px 8px;++ border-radius: 4px;++ border: 1px solid #d9d9d9;++ color: #333;++ }++ }++++ .keyMeta {++ display: flex;++ gap: 24px;++++ .metaItem {++ .label {++ font-weight: 500;++ color: #666;++ margin-right: 8px;++ }++ }++ }++ }++++ .refList {++ .sectionTitle {++ display: flex;++ align-items: center;++ gap: 8px;++ font-weight: 600;++ font-size: 16px;++ margin-bottom: 16px;++ color: #333;++ }++++ .emptyState {++ padding: 40px 0;++ text-align: center;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/MCPKeyDetailModal.tsxindex 00000000,00000000..a37084d8new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/MCPKeyDetailModal.tsx@@@ -1,0 -1,0 +1,295 @@@++import React, { forwardRef, memo, useImperativeHandle, useState, useEffect } from "react";++import { Modal, Button, List, Avatar, Tag, Space, message, Empty, Pagination, Popconfirm } from "antd";++import { CopyOutlined, DeleteOutlined, KeyOutlined, UserOutlined } from "@ant-design/icons";++import { SocialAccount } from "@/api/types/account.type";++import { apiGetMCPRefList, apiDeleteMCPRef } from "@/api/mcp";++import { getAccountListApi } from "@/api/account";++import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";++import styles from "./MCPKeyDetailModal.module.scss";++import { useTransClient } from "@/app/i18n/client";++++export interface IMCPKeyDetailModalRef {++ open: (keyInfo: any) => void;++ close: () => void;++}++++export interface IMCPKeyDetailModalProps {++ open: boolean;++ onClose: (open: boolean) => void;++ keyInfo?: any;++}++++const MCPKeyDetailModal = memo(++ forwardRef<IMCPKeyDetailModalRef, IMCPKeyDetailModalProps>(++ ({ open, onClose, keyInfo: propKeyInfo }, ref) => {++ const { t } = useTransClient("account");++ const [keyInfo, setKeyInfo] = useState<any>(null);++ const [refList, setRefList] = useState<any[]>([]);++ const [loading, setLoading] = useState(false);++ const [currentPage, setCurrentPage] = useState(1);++ const [pageSize, setPageSize] = useState(10);++ const [total, setTotal] = useState(0);++ const [accountList, setAccountList] = useState<SocialAccount[]>([]);++++ // 获取平台信息++ const getPlatformInfo = (platformType: string) => {++ const platInfo = AccountPlatInfoMap.get(platformType as PlatType);++ return {++ name: platInfo?.name || t("unknownPlatform"),++ icon: platInfo?.icon || '',++ themeColor: platInfo?.themeColor || '#999'++ };++ };++++ // 获取所有账户列表++ const fetchAccountList = async () => {++ try {++ const res: any = await getAccountListApi();++ if (res?.code === 0) {++ setAccountList(res.data || []);++ }++ } catch (error) {++ console.error('获取账户列表失败:', error);++ }++ };++++ // 获取关联账户列表++ const fetchRefList = async () => {++ if (!keyInfo?.key) return;++++ try {++ setLoading(true);++ const res: any = await apiGetMCPRefList(currentPage, pageSize, keyInfo.key);++ if (res?.code === 0) {++ const refListData = res.data.list || [];++++ // 将账户ID映射到完整的账户信息++ const enrichedRefList = refListData.map((refItem: any) => {++ const accountInfo = accountList.find(account => account.id === refItem);++ return {++ ...refItem,++ account: accountInfo || null++ };++ });++++ setRefList(enrichedRefList);++ setTotal(res.data.total || 0);++ }++ } catch (error) {++ message.error('获取关联账户列表失败');++ } finally {++ setLoading(false);++ }++ };++++ useEffect(() => {++ if (open) {++ fetchAccountList();++ }++ }, [open]);++++ useEffect(() => {++ if (open && keyInfo && accountList.length > 0) {++ fetchRefList();++ }++ }, [open, keyInfo, currentPage, pageSize, accountList]);++++ const handleCopyKey = (key: string) => {++ navigator.clipboard.writeText(key);++ message.success('Key已复制到剪贴板');++ };++++ const handleUnlinkAccount = async (accountId: string) => {++ console.log(accountId);++ try {++ const res = await apiDeleteMCPRef({++ key: keyInfo.key,++ accountId: accountId++ });++ if (res?.code === 0) {++ message.success('解除关联成功');++ fetchRefList(); // 刷新列表++ } else {++ message.error('解除关联失败');++ }++ } catch (error) {++ message.error('解除关联失败');++ }++ };++++ // 当props中的keyInfo变化时,更新内部状态++ useEffect(() => {++ if (propKeyInfo) {++ setKeyInfo(propKeyInfo);++ setCurrentPage(1);++ setRefList([]);++ setTotal(0);++ }++ }, [propKeyInfo]);++++ useImperativeHandle(ref, () => ({++ open: (keyInfo: any) => {++ setKeyInfo(keyInfo);++ setCurrentPage(1);++ setRefList([]);++ setTotal(0);++ },++ close: () => {++ setKeyInfo(null);++ setRefList([]);++ setTotal(0);++ },++ }));++++ return (++ <Modal++ title={++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>++ <KeyOutlined style={{ color: '#625BF2' }} />++ MCP Key 详情++ </div>++ }++ open={open}++ onCancel={() => onClose(false)}++ footer={null}++ width={800}++ className={styles.mcpKeyDetailModal}++ >++ {keyInfo && (++ <>++ {/* Key基本信息 */}++ <div className={styles.keyInfo}>++ <div className={styles.keyHeader}>++ <div className={styles.keyName}>++ <span className={styles.label}>Key名称:</span>++ <span className={styles.value}>{keyInfo.desc}</span>++ </div>++ <Space>++ <Tag color={keyInfo.status === 1 ? 'green' : 'red'}>++ {keyInfo.status === 1 ? '可用' : '不可用'}++ </Tag>++ <Button++ type="link"++ icon={<CopyOutlined />}++ onClick={() => handleCopyKey(keyInfo.key)}++ >++ 复制Key++ </Button>++ </Space>++ </div>++++ <div className={styles.keyValue}>++ <span className={styles.label}>Key值:</span>++ <span className={styles.value}>{keyInfo.key}</span>++ </div>++++ <div className={styles.keyMeta}>++ <div className={styles.metaItem}>++ <span className={styles.label}>创建时间:</span>++ <span>{keyInfo.createdAt}</span>++ </div>++ <div className={styles.metaItem}>++ <span className={styles.label}>关联账户:</span>++ <span>{total} 个</span>++ </div>++ </div>++ </div>++++ {/* 关联账户列表 */}++ <div className={styles.refList}>++ <div className={styles.sectionTitle}>++ <UserOutlined />++ 关联账户列表++ </div>++++ {refList.length === 0 && !loading ? (++ <div className={styles.emptyState}>++ <Empty description="暂无关联账户" />++ </div>++ ) : (++ <>++ <List++ className={styles.refList}++ dataSource={refList}++ loading={loading}++ renderItem={(item) => {++ const platformInfo = getPlatformInfo(item.account?.type);++ return (++ <List.Item++ actions={[++ <Popconfirm++ title="确定要解除关联吗?"++ onConfirm={() => handleUnlinkAccount(item.account.id)}++ okText="确定"++ cancelText="取消"++ >++ <Button++ key="unlink"++ type="link"++ danger++ icon={<DeleteOutlined />}++ >++ 解除关联++ </Button>++ </Popconfirm>++ ]}++ >++ <List.Item.Meta++ avatar={<Avatar src={item.account?.avatar} />}++ title={item.account?.nickname || t("unknownAccount")}++ description={++ <div>++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>++ {platformInfo.icon && (++ <img++ src={platformInfo.icon}++ alt={platformInfo.name}++ style={{++ width: '16px',++ height: '16px',++ borderRadius: '2px'++ }}++ />++ )}++ <span style={{ color: platformInfo.themeColor }}>++ {platformInfo.name}++ </span>++ </div>++ </div>++ }++ />++ </List.Item>++ );++ }}++ />++++ {total > 0 && (++ <div style={{ marginTop: 16, textAlign: 'right' }}>++ <Pagination++ current={currentPage}++ pageSize={pageSize}++ total={total}++ showSizeChanger++ showQuickJumper++ showTotal={(total, range) => `第 ${range[0]}-${range[1]} 条,共 ${total} 条`}++ onChange={(page, size) => {++ setCurrentPage(page);++ setPageSize(size);++ }}++ />++ </div>++ )}++ </>++ )}++ </div>++ </>++ )}++ </Modal>++ );++ }++ )++);++++MCPKeyDetailModal.displayName = "MCPKeyDetailModal";++++export default MCPKeyDetailModal;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/MCPManagerModal.module.scssindex 00000000,00000000..2b3aef25new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/MCPManagerModal.module.scss@@@ -1,0 -1,0 +1,114 @@@++.mcpManagerModal {++ .mcpKeyList {++ .ant-list-item {++ border-radius: 8px;++ margin-bottom: 8px;++ border: 1px solid #f0f0f0;++ transition: all 0.3s ease;++++ &:hover {++ border-color: #625BF2;++ box-shadow: 0 2px 8px rgba(98, 91, 242, 0.1);++ }++++ .ant-list-item-meta {++ .ant-list-item-meta-avatar {++ .ant-avatar {++ background: linear-gradient(90deg, #625BF2 0%, #925BF2 100%);++ }++ }++++ .ant-list-item-meta-content {++ .ant-list-item-meta-title {++ font-weight: 500;++ margin-bottom: 4px;++ }++++ .ant-list-item-meta-description {++ .keyDisplay {++ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;++ background: #f5f5f5;++ padding: 4px 8px;++ border-radius: 4px;++ border: 1px solid #e8e8e8;++ font-size: 12px;++ color: #666;++ word-break: break-all;++ }++++ .keyInfo {++ margin-top: 8px;++ font-size: 12px;++ color: #999;++++ .infoItem {++ display: flex;++ align-items: center;++ margin-bottom: 2px;++++ .label {++ margin-right: 8px;++ min-width: 60px;++ }++ }++ }++ }++ }++ }++++ .ant-list-item-actions {++ .ant-btn-link {++ color: #625BF2;++++ &:hover {++ color: #925BF2;++ }++++ &.ant-btn-dangerous {++ color: #ff4d4f;++++ &:hover {++ color: #ff7875;++ }++ }++ }++ }++ }++ }++++ .createButton {++ background: linear-gradient(90deg, #625BF2 0%, #925BF2 100%);++ border: none;++ border-radius: 6px;++ height: 40px;++ font-weight: 500;++++ &:hover {++ background: linear-gradient(90deg, #5a54e8 0%, #8a54e8 100%);++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(98, 91, 242, 0.3);++ }++ }++++ .emptyState {++ text-align: center;++ padding: 40px 20px;++ color: #999;++++ .emptyIcon {++ font-size: 48px;++ color: #d9d9d9;++ margin-bottom: 16px;++ }++++ .emptyText {++ font-size: 14px;++ margin-bottom: 8px;++ }++++ .emptyDesc {++ font-size: 12px;++ color: #ccc;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/MCPManagerModal.tsxindex 00000000,00000000..ae093d2bnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/MCPManagerModal.tsx@@@ -1,0 -1,0 +1,382 @@@++import React, { forwardRef, memo, useImperativeHandle, useRef, useState, useEffect } from "react";++import { Modal, Button, List, Avatar, Tag, Space, message, Empty, Input, Form, Pagination } from "antd";++import { PlusOutlined, CopyOutlined, DeleteOutlined, KeyOutlined, EditOutlined } from "@ant-design/icons";++import ChooseAccountModule from "@/components/ChooseAccountModule/ChooseAccountModule";++import { SocialAccount } from "@/api/types/account.type";++import {++ apiCreateMCPKey,++ apiDeleteMCPKey,++ apiGetMCPKeyList,++ apiCreateMCPRef,++} from "@/api/mcp";++import MCPKeyDetailModal from "./MCPKeyDetailModal";++import styles from "./MCPManagerModal.module.scss";++import dayjs from "dayjs";++++export interface IMCPManagerModalRef {++ open: () => void;++ close: () => void;++}++++export interface IMCPManagerModalProps {++ open: boolean;++ onClose: (open: boolean) => void;++}++++const MCPManagerModal = memo(++ forwardRef<IMCPManagerModalRef, IMCPManagerModalProps>(++ ({ open, onClose }, ref) => {++ const [mcpKeys, setMcpKeys] = useState<any[]>([]);++ const [isCreateModalOpen, setIsCreateModalOpen] = useState(false);++ const [selectedAccounts, setSelectedAccounts] = useState<SocialAccount[]>([]);++ const [newKeyName, setNewKeyName] = useState('');++ const [loading, setLoading] = useState(false);++ const [currentPage, setCurrentPage] = useState(1);++ const [pageSize, setPageSize] = useState(10);++ const [total, setTotal] = useState(0);++ const [createForm] = Form.useForm();++ const [showAccountSelector, setShowAccountSelector] = useState(false);++ const [showDetailModal, setShowDetailModal] = useState(false);++ const [selectedKeyInfo, setSelectedKeyInfo] = useState<any>(null);++++ // 获取MCP Key列表++ const fetchMCPKeys = async () => {++ try {++ setLoading(true);++ const res:any = await apiGetMCPKeyList(currentPage, pageSize);++ if (res?.code === 0) {++ setMcpKeys(res.data.list || []);++ setTotal(res.data.total || 0);++ }++ } catch (error) {++ message.error('获取MCP Key列表失败');++ } finally {++ setLoading(false);++ }++ };++++ // 初始化数据++ useEffect(() => {++ if (open) {++ fetchMCPKeys();++ }++ }, [open, currentPage, pageSize]);++++ const handleCreateKey = () => {++ setIsCreateModalOpen(true);++ };++++ const handleAccountConfirm = async (accounts: SocialAccount[]) => {++ try {++ setLoading(true);++++ // 创建MCP Key++ const createParams: any = {++ desc: newKeyName,++ accounts: accounts.map(account => account.id)++ };++++ const createRes = await apiCreateMCPKey(createParams);++ if (createRes?.code !== 0) {++ message.error('创建MCP Key失败');++ return;++ }++++ // 创建关联(如果选择了多个账户,需要多次请求)++ const createdKey = (createRes.data as any)?.key;++ if (createdKey) {++ for (const account of accounts) {++ try {++ await apiCreateMCPRef({++ key: createdKey,++ accountId: account.id++ });++ } catch (error) {++ console.error(`创建关联失败: ${account.account}`, error);++ }++ }++ }++++ setSelectedAccounts([]);++ setIsCreateModalOpen(false);++ setNewKeyName('');++ message.success('MCP Key创建成功!');++ fetchMCPKeys(); // 刷新列表++ } catch (error) {++ message.error('创建MCP Key失败');++ } finally {++ setLoading(false);++ }++ };++++ const handleCopyKey = (key: string) => {++ navigator.clipboard.writeText(key);++ message.success('Key已复制到剪贴板');++ };++++ const handleDeleteKey = async (key: string) => {++ try {++ const res = await apiDeleteMCPKey(key);++ if (res?.code === 0) {++ message.success('MCP Key已删除');++ fetchMCPKeys(); // 刷新列表++ } else {++ message.error('删除MCP Key失败');++ }++ } catch (error) {++ message.error('删除MCP Key失败');++ }++ };++++ useImperativeHandle(ref, () => ({++ open: () => onClose(true),++ close: () => onClose(false),++ }));++++ return (++ <>++ <Modal++ title={++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>++ <KeyOutlined style={{ color: '#625BF2' }} />++ MCP 管理器++ </div>++ }++ open={open}++ onCancel={() => onClose(false)}++ footer={null}++ width={800}++ className={styles.mcpManagerModal}++ >++ <div style={{ marginBottom: 16 }}>++ <Button++ type="primary"++ icon={<PlusOutlined />}++ onClick={handleCreateKey}++ className={styles.createButton}++ loading={loading}++ >++ 创建新Key++ </Button>++ </div>++++ {mcpKeys.length === 0 && !loading ? (++ <div className={styles.emptyState}>++ <div className="emptyIcon">++ <KeyOutlined />++ </div>++ <div className="emptyText">暂无MCP Key</div>++ <div className="emptyDesc">点击上方按钮创建您的第一个MCP Key</div>++ </div>++ ) : (++ <>++ <List++ className={styles.mcpKeyList}++ dataSource={mcpKeys}++ loading={loading}++ renderItem={(item) => (++ <List.Item++ actions={[++ <Button++ key="copy"++ type="link"++ icon={<CopyOutlined />}++ onClick={() => handleCopyKey(item.key)}++ >++ 复制++ </Button>,++ <Button++ key="detail"++ type="link"++ icon={<KeyOutlined />}++ onClick={() => {++ setSelectedKeyInfo(item);++ setShowDetailModal(true);++ }}++ >++ 详情++ </Button>,++ <Button++ key="delete"++ type="link"++ danger++ icon={<DeleteOutlined />}++ onClick={() => handleDeleteKey(item.key)}++ loading={loading}++ >++ 删除++ </Button>++ ]}++ >++ <List.Item.Meta++ avatar={<Avatar style={{ background: 'linear-gradient(90deg, #625BF2 0%, #925BF2 100%)' }}>MCP</Avatar>}++ title={++ <Space>++ <span>{item.desc}</span>++ <Tag color={item.status === 1 ? 'green' : 'red'}>++ {item.status === 1 ? '可用' : '不可用'}++ </Tag>++ </Space>++ }++ description={++ <div>++ <div className="keyDisplay">++ {item.key}++ </div>++ <div className="keyInfo">++ <div className="infoItem">++ <span className="label">创建时间: </span>++ <span> {dayjs(item.createdAt).format('YYYY-MM-DD HH:mm:ss')}</span>++ </div>++ <div className="infoItem">++ <span className="label">关联账户: </span>++ <span> {item.accountNum} 个</span>++ </div>++ </div>++ </div>++ }++ />++ </List.Item>++ )}++ />++++ {total > 0 && (++ <div style={{ marginTop: 16, textAlign: 'right' }}>++ <Pagination++ current={currentPage}++ pageSize={pageSize}++ total={total}++ showSizeChanger++ showQuickJumper++ showTotal={(total, range) => `第 ${range[0]}-${range[1]} 条,共 ${total} 条`}++ onChange={(page, size) => {++ setCurrentPage(page);++ setPageSize(size);++ }}++ />++ </div>++ )}++ </>++ )}++ </Modal>++++ <Modal++ title="创建MCP Key"++ open={isCreateModalOpen}++ onCancel={() => {++ setIsCreateModalOpen(false);++ setSelectedAccounts([]);++ setNewKeyName('');++ createForm.resetFields();++ }}++ footer={null}++ width={600}++ >++ <Form++ form={createForm}++ layout="vertical"++ onFinish={(values) => {++ if (selectedAccounts.length === 0) {++ message.warning('请选择至少一个账户');++ return;++ }++ handleAccountConfirm(selectedAccounts);++ }}++ >++ <Form.Item++ label="Key名称"++ name="name"++ rules={[{ required: true, message: '请输入Key名称' }]}++ >++ <Input++ placeholder="请输入Key名称"++ value={newKeyName}++ onChange={(e) => setNewKeyName(e.target.value)}++ />++ </Form.Item>++++ <Form.Item label="选择账户">++ <div style={{ minHeight: 100, border: '1px dashed #d9d9d9', padding: 16, borderRadius: 6 }}>++ {selectedAccounts.length === 0 ? (++ <div style={{ textAlign: 'center', color: '#999' }}>++ 请选择要关联的账户++ </div>++ ) : (++ <div>++ <div style={{ marginBottom: 8, fontWeight: 500 }}>已选择 {selectedAccounts.length} 个账户:</div>++ {selectedAccounts.map(account => (++ <Tag key={account.id} style={{ marginBottom: 4 }}>++ {account.nickname}++ </Tag>++ ))}++ </div>++ )}++ <Button++ type="dashed"++ onClick={() => {++ setShowAccountSelector(true);++ }}++ style={{ marginTop: 8 }}++ >++ 选择账户++ </Button>++ </div>++ </Form.Item>++++ <Form.Item>++ <Space>++ <Button++ type="primary"++ htmlType="submit"++ loading={loading}++ >++ 创建++ </Button>++ <Button++ onClick={() => {++ setIsCreateModalOpen(false);++ setSelectedAccounts([]);++ setNewKeyName('');++ createForm.resetFields();++ }}++ >++ 取消++ </Button>++ </Space>++ </Form.Item>++ </Form>++ </Modal>++++ <ChooseAccountModule++ open={showAccountSelector}++ onClose={() => setShowAccountSelector(false)}++ onAccountConfirm={(accounts) => {++ setSelectedAccounts(accounts);++ setShowAccountSelector(false);++ }}++ simpleAccountChooseProps={{++ choosedAccounts: selectedAccounts,++ disableAllSelect: false,++ isCancelChooseAccount: true,++ }}++ />++++ <MCPKeyDetailModal++ open={showDetailModal}++ onClose={(open) => {++ setShowDetailModal(open);++ if (!open) {++ setSelectedKeyInfo(null);++ }++ }}++ keyInfo={selectedKeyInfo}++ />++ </>++ );++ }++ )++);++++MCPManagerModal.displayName = "MCPManagerModal";++++export default MCPManagerModal;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/UserManageModal.tsxindex 00000000,00000000..21b1c2a4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/UserManageModal.tsx@@@ -1,0 -1,0 +1,534 @@@++import {++ ForwardedRef,++ forwardRef,++ memo,++ useImperativeHandle,++ useMemo,++ useRef,++ useState,++ useEffect,++} from "react";++import {++ Button,++ Drawer,++ message,++ Modal,++ Select,++ Spin,++ Table,++ TableProps,++ Tooltip,++ Card,++ Space,++} from "antd";++import styles from "./AccountSidebar.module.scss";++import { useAccountStore } from "@/store/account";++import { useShallow } from "zustand/react/shallow";++import {++ CheckCircleOutlined,++ DeleteOutlined,++ WarningOutlined,++ GlobalOutlined,++ EnvironmentOutlined,++} from "@ant-design/icons";++import UserManageSidebar from "./UserManageSidebar";++import { SocialAccount } from "@/api/types/account.type";++import { AccountPlatInfoMap } from "@/app/config/platConfig";++import { AccountStatus } from "@/app/config/accountConfig";++import AvatarPlat from "@/components/AvatarPlat";++import { deleteAccountsApi, updateAccountApi } from "@/api/account";++import { useTransClient } from "@/app/i18n/client";++import AddAccountModal from "../AddAccountModal";++import { getIpLocation, IpLocationInfo, formatLocationInfo, extractCountry } from "@/utils/ipLocation";++import DeleteUserConfirmModal from "@/app/[lng]/accounts/components/AccountSidebar/DeleteUserConfirmModal";++++export interface IUserManageModalRef {++ setActiveGroup: (groupId: string) => void;++}++++export interface IUserManageModalProps {++ open: boolean;++ onCancel: () => void;++}++++const UserGroupSelect = ({++ account,++ onChange,++}: {++ account: SocialAccount;++ onChange: (groupId: string) => void;++}) => {++ const { accountGroupList } = useAccountStore(++ useShallow((state) => ({++ accountGroupList: state.accountGroupList,++ })),++ );++++ return (++ <Select++ // @ts-ignore++ value={account.groupId}++ style={{ width: "160px" }}++ fieldNames={{++ value: "id",++ label: "name",++ }}++ options={accountGroupList}++ onChange={onChange}++ />++ );++};++++// 空间信息展示组件++const SpaceInfoCard = ({++ activeGroup,++ accountGroupList,++ allUser++}: {++ activeGroup: string;++ accountGroupList: any[];++ allUser: string;++}) => {++ const { t } = useTransClient("account");++ const [ipLocationInfo, setIpLocationInfo] = useState<IpLocationInfo | null>(null);++ const [ipLocationLoading, setIpLocationLoading] = useState(false);++++ // 获取IP地理位置信息++ useEffect(() => {++ const fetchIpLocation = async () => {++ try {++ setIpLocationLoading(true);++ const info = await getIpLocation();++ setIpLocationInfo(info);++ } catch (error) {++ console.error('获取IP地理位置信息失败:', error);++ } finally {++ setIpLocationLoading(false);++ }++ };++++ // 只在组件挂载时获取一次IP信息++ fetchIpLocation();++ }, []);++++ // 如果是全部账号,不显示信息卡片++ if (activeGroup === allUser) {++ return null;++ }++++ // 获取当前选中的空间信息++ const currentSpace = accountGroupList.find(group => group.id === activeGroup);++ if (!currentSpace) return null;++++ return (++ <Card++ size="small"++ style={{++ marginBottom: '16px',++ backgroundColor: 'var(--grayColor1)',++ border: '1px solid var(--grayColor3)'++ }}++ >++ <Space direction="vertical" size="small" style={{ width: '100%' }}>++ {/* <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>++ <span style={{++ fontSize: 'var(--fs-xs)',++ color: 'var(--grayColor6)',++ backgroundColor: 'var(--grayColor2)',++ padding: '2px 8px',++ borderRadius: '12px'++ }}>++ {currentSpace.children?.length || 0} 个账号++ </span>++ </div> */}++++ {/* 根据proxyIp判断显示IP和属地信息 */}++ {(!currentSpace.proxyIp || currentSpace.proxyIp === "") ? (++ // 本地IP显示++ <div style={{++ display: 'flex',++ alignItems: 'center',++ gap: '8px',++ padding: '8px',++ backgroundColor: 'var(--grayColor2)',++ borderRadius: '6px'++ }}>++ <GlobalOutlined style={{ color: 'var(--colorPrimary5)' }} />++ <span style={{ fontSize: 'var(--fs-xs)', color: 'var(--grayColor7)' }}>++ {t("ipInfo.loading")}++ </span>++ {ipLocationLoading ? (++ <span style={{ color: 'var(--colorPrimary5)', fontStyle: 'italic' }}>++ {t("ipInfo.loading")}++ </span>++ ) : ipLocationInfo ? (++ <Tooltip title={t("ipInfo.tooltip", { asn: ipLocationInfo.asn, org: ipLocationInfo.org })}>++ <span style={{++ color: 'var(--grayColor7)',++ cursor: 'help',++ fontWeight: '500'++ }}>++ {formatLocationInfo(ipLocationInfo)}++ </span>++ </Tooltip>++ ) : (++ <span style={{ color: 'var(--errorColor)', fontStyle: 'italic' }}>++ {t("ipInfo.error")}++ </span>++ )}++ </div>++ ) : (++ // 数据中的IP显示++ currentSpace.ip && currentSpace.location && (++ <div style={{++ display: 'flex',++ alignItems: 'center',++ gap: '8px',++ padding: '8px',++ backgroundColor: 'var(--grayColor2)',++ borderRadius: '6px'++ }}>++ <GlobalOutlined style={{ color: 'var(--colorPrimary5)' }} />++ <Tooltip title={`IP: ${currentSpace.ip}\n位置: ${currentSpace.location}`}>++ <span style={{++ color: 'var(--grayColor7)',++ cursor: 'help',++ fontWeight: '500'++ }}>++ {extractCountry(currentSpace.location)} | {currentSpace.ip}++ </span>++ </Tooltip>++ </div>++ )++ )}++++ {/* 空间创建时间等信息 */}++ <div style={{++ fontSize: 'var(--fs-xs)',++ color: 'var(--grayColor6)',++ display: 'flex',++ alignItems: 'center',++ gap: '4px'++ }}>++ <EnvironmentOutlined />++ <span>空间ID: {currentSpace.id}</span>++ {currentSpace.isDefault && (++ <span style={{++ color: 'var(--colorPrimary5)',++ backgroundColor: 'var(--colorPrimary1)',++ padding: '1px 6px',++ borderRadius: '10px',++ fontSize: 'var(--fs-xs)'++ }}>++ defaultSpace++ </span>++ )}++ </div>++ </Space>++ </Card>++ );++};++++const UserManageModal = memo(++ forwardRef(++ (++ { open, onCancel }: IUserManageModalProps,++ ref: ForwardedRef<IUserManageModalRef>,++ ) => {++ const { t } = useTransClient("account");++ const { accountList, getAccountList, accountGroupList, accountMap } =++ useAccountStore(++ useShallow((state) => ({++ accountList: state.accountList,++ getAccountList: state.getAccountList,++ accountGroupList: state.accountGroupList,++ accountMap: state.accountMap,++ })),++ );++ const [deleteHitOpen, setDeleteHitOpen] = useState(false);++ const [selectedRows, setSelectedRows] = useState<SocialAccount[]>([]);++ // 全部账号++ const allUser = useRef("-1");++ // -1=全部账号,不然为对应分组 ID++ const [activeGroup, setActiveGroup] = useState(allUser.current);++ // 是否改变了顺序++ const isUpdateRank = useRef(false);++ const [deleteLoading, setDeleteLoading] = useState(false);++ const [cutLoading, setCutLoading] = useState(false);++ const [isAddAccountOpen, setIsAddAccountOpen] = useState(false);++ const [targetGroupIdForModal, setTargetGroupIdForModal] = useState<string | undefined>(undefined);++++ const columns = useMemo(() => {++ const columns: TableProps<SocialAccount>["columns"] = [++ {++ title: t("userManageModal.account"),++ render: (text, am) => {++ return (++ <div++ className={`userManage-content-user ${am.status === AccountStatus.DISABLE ? "userManage-content-user--disable" : ""}`}++ >++ {/*<Avatar src={am.avatar} />*/}++ <AvatarPlat account={am} size="large" />++ <span++ className="userManage-content-user-name"++ title={am.nickname}++ >++ {am.nickname}++ </span>++ </div>++ );++ },++ width: 200,++ key: "nickname",++ },++ {++ title: t("userManageModal.platform"),++ render: (text, am) => {++ const platInfo = AccountPlatInfoMap.get(am.type)!;++ return (++ <div className="userManage-content-plat">++ <Tooltip title={platInfo?.name}>++ <img src={platInfo?.icon} style={{++ width: "20px",++ height: "20px",++ }} />++ </Tooltip>++ </div>++ );++ },++ width: 80,++ key: "nickname",++ },++ {++ title: t("accountStatus"),++ render: (text, am) => {++ return (++ <>++ {am.status === AccountStatus.USABLE ? (++ <>++ <CheckCircleOutlined++ style={{++ color: "var(--successColor)",++ marginRight: "3px",++ }}++ />++ {t("online")}++ </>++ ) : (++ <>++ <WarningOutlined++ style={{++ color: "var(--warningColor)",++ marginRight: "3px",++ }}++ />++ {t("offline")}++ </>++ )}++ </>++ );++ },++ width: 100,++ key: "nickname",++ },++ {++ title: t("userManageModal.space"),++ render: (text, am) => {++ return (++ <UserGroupSelect++ account={am}++ onChange={async (groupId) => {++ setCutLoading(true);++ await updateAccountGroupRank();++ await updateAccountApi({++ id: am.id,++ groupId,++ });++ await getAccountList();++ setCutLoading(false);++ }}++ />++ );++ },++ width: 200,++ key: "groupId",++ },++ ];++ return columns;++ }, []);++++ const rowSelection: TableProps<SocialAccount>["rowSelection"] = {++ onChange: (++ selectedRowKeys: React.Key[],++ selectedRows: SocialAccount[],++ ) => {++ setSelectedRows(selectedRows);++ },++ getCheckboxProps: (record: SocialAccount) => ({++ name: record.nickname,++ }),++ selectedRowKeys: selectedRows.map((v) => v.id),++ };++++ const close = () => {++ onCancel();++ setSelectedRows([]);++ updateAccountGroupRank();++ };++++ // 更新账户组顺序++ const updateAccountGroupRank = async () => {++ if (isUpdateRank.current) {++ const accountGroupList = useAccountStore.getState().accountGroupList;++ for (let i = 0; i < accountGroupList.length; i++) {++ const v = accountGroupList[i];++ // 这里不需要更新数据,因为在排序完成后已经更新了全局的sotre,引用sotre的所有位置都会发生更改++ // TODO 排序更新++ // await icpEditDeleteAccountGroup({++ // id: v.id,++ // rank: i,++ // });++ }++ isUpdateRank.current = false;++ }++ };++++ const accountListLast = useMemo(() => {++ if (activeGroup === allUser.current) {++ return accountList;++ }++ return accountGroupList.find((v) => v.id === activeGroup)?.children;++ }, [accountMap, activeGroup, accountGroupList]);++++ const imperativeHandle: IUserManageModalRef = {++ setActiveGroup,++ };++ useImperativeHandle(ref, () => imperativeHandle);++++ const openAddAccountFlow = async () => {++ const currentGroupId = activeGroup;++ close();++ if (currentGroupId === allUser.current) {++ // 如果选择的是"全部账号",需要用户选择空间++ setIsAddAccountOpen(true);++ } else {++ // 如果选择的是具体空间,直接使用该空间++ setTargetGroupIdForModal(currentGroupId);++ setIsAddAccountOpen(true);++ }++ };++++++ return (++ <>++ <DeleteUserConfirmModal++ deleteUsers={selectedRows}++ open={deleteHitOpen}++ onClose={() => setDeleteHitOpen(false)}++ onDeleteSuccess={async () => {++ await getAccountList();++ setSelectedRows([]);++ message.success("删除成功");++ }}++ />++++ <Modal++ open={open}++ title={t("accountManager")}++ zIndex={1001}++ footer={null}++ width={1000}++ onCancel={close}++ rootClassName={styles.userManageModal}++ >++ <Spin spinning={cutLoading}>++ <div className={styles.userManage}>++ <UserManageSidebar++ allUser={allUser.current}++ activeGroup={activeGroup}++ onChange={setActiveGroup}++ onSortEnd={() => {++ isUpdateRank.current = true;++ }}++ />++++ <div className="userManage-content">++ {/* 空间信息卡片 - 显示在右侧上方 */}++ <SpaceInfoCard++ activeGroup={activeGroup}++ accountGroupList={accountGroupList}++ allUser={allUser.current}++ />++++ <div className="userManage-content-head" style={{ marginBottom: "8px", display: "flex", justifyContent: "flex-end" }}>++ <Button type="primary" onClick={openAddAccountFlow}>{t("addAccount")}</Button>++ </div>++ <Table<SocialAccount>++ columns={columns}++ dataSource={accountListLast}++ rowKey="id"++ scroll={{ y: "100%" }}++ rowSelection={{ type: "checkbox", ...rowSelection }}++ />++++ <Drawer++ title={++ <>++ 已选择++ <span style={{ color: "var(--successColor)" }}>++ {selectedRows.length}++ </span>++ 个账号++ </>++ }++ placement="bottom"++ mask={false}++ height={150}++ closable={true}++ onClose={() => {++ setSelectedRows([]);++ }}++ open={selectedRows.length !== 0}++ getContainer={false}++ >++ <div className="userManage-content-multiple">++ <div++ className="userManage-content-multiple-item"++ onClick={() => {++ setDeleteHitOpen(true);++ }}++ >++ <div className="userManage-content-multiple-item-icon">++ <DeleteOutlined />++ </div>++ <span>删除账号</span>++ </div>++ </div>++ </Drawer>++ </div>++ </div>++ </Spin>++ </Modal>++++++ <AddAccountModal++ open={isAddAccountOpen}++ onClose={async () => {++ setIsAddAccountOpen(false);++ setTargetGroupIdForModal(undefined);++ }}++ onAddSuccess={async (acc) => {++ // 账号已经在授权时直接添加到指定空间,无需额外移动++ await getAccountList();++ }}++ targetGroupId={targetGroupIdForModal}++ showSpaceSelector={activeGroup === allUser.current}++ />++ </>++ );++ },++ ),++);++UserManageModal.displayName = "UserManageModal";++++export default UserManageModal;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/UserManageSidebar.tsxindex 00000000,00000000..264f1586new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/UserManageSidebar.tsx@@@ -1,0 -1,0 +1,255 @@@++import { ForwardedRef, forwardRef, memo, useRef, useState } from "react";++import { Button, Input, message, Modal } from "antd";++import {++ ExclamationCircleFilled,++ PlusOutlined,++ UnorderedListOutlined,++} from "@ant-design/icons";++import { useAccountStore } from "@/store/account";++import { useShallow } from "zustand/react/shallow";++import styles from "./AccountSidebar.module.scss";++import { ReactSortable } from "react-sortablejs";++import { ControlledMenu, MenuItem } from "@szhsin/react-menu";++import "@szhsin/react-menu/dist/index.css";++import {++ createAccountGroupApi,++ deleteAccountGroupApi,++ updateAccountGroupApi,++} from "@/api/account";++import { AccountGroupItem } from "@/api/types/account.type";++import { useTransClient } from "@/app/i18n/client";++++export interface IUserManageSidebarRef {}++++export interface IUserManageSidebarProps {++ activeGroup: string;++ allUser: string;++ onChange: (id: string) => void;++ onSortEnd: () => void;++}++++const { confirm } = Modal;++++const MENU_ID = "userManageSidebar";++++const UserManageSidebar = memo(++ forwardRef(++ (++ { activeGroup, allUser, onChange, onSortEnd }: IUserManageSidebarProps,++ ref: ForwardedRef<IUserManageSidebarRef>,++ ) => {++ const { t } = useTransClient("account");++ const {++ accountGroupList,++ accountList,++ setAccountGroupList,++ getAccountGroup,++ getAccountList,++ } = useAccountStore(++ useShallow((state) => ({++ accountGroupList: state.accountGroupList,++ accountList: state.accountList,++ getAccountGroup: state.getAccountGroup,++ getAccountList: state.getAccountList,++ setAccountGroupList: state.setAccountGroupList,++ })),++ );++ const [openCreateGroup, setOpenCreateGroup] = useState(false);++ const [groupName, setGroupName] = useState("");++ const [createGroupLoading, setCreateGroupLoading] = useState(false);++ // -1=新建 不然为重命名,值为要重命名的id++ const [createGroupId, setCreateGroupId] = useState("-1");++ const srcollEl = useRef<HTMLElement>(undefined);++ const [isOpen, setOpen] = useState(false);++ const [anchorPoint, setAnchorPoint] = useState({ x: 0, y: 0 });++ // 右键操作的数据++ const [rightClickOperateData, setRightClickOperateData] =++ useState<AccountGroupItem>();++++ const createGroupCancel = () => {++ setOpenCreateGroup(false);++ setGroupName("");++ };++++ return (++ <>++ <ControlledMenu++ anchorPoint={anchorPoint}++ state={isOpen ? "open" : "closed"}++ direction="right"++ onClose={() => setOpen(false)}++ >++ <MenuItem++ onClick={() => {++ setCreateGroupId(rightClickOperateData!.id);++ setOpenCreateGroup(true);++ setGroupName(rightClickOperateData!.name);++ }}++ >++ {t("userManageSidebar.rename")}++ </MenuItem>++ <MenuItem++ onClick={() => {++ confirm({++ title: t("userManageSidebar.confirmDelete"),++ icon: <ExclamationCircleFilled />,++ content: (++ <>++ {t("userManageSidebar.confirmDeleteContent")}++ <span++ style={{++ color: "var(--colorPrimary6)",++ }}++ >++ {rightClickOperateData?.name}++ </span>++ ?++ </>++ ),++ onOk: async () => {++ await deleteAccountGroupApi([rightClickOperateData!.id]);++ await getAccountGroup();++ message.success(t("userManageSidebar.deleteSuccess"));++ },++ });++ }}++ >++ {t("userManageSidebar.delete")}++ </MenuItem>++ </ControlledMenu>++++ <Modal++ open={openCreateGroup}++ title={createGroupId === "-1" ? t("userManageSidebar.createSpaceTitle") : t("userManageSidebar.renameSpaceTitle")}++ onCancel={createGroupCancel}++ footer={++ <>++ <Button onClick={createGroupCancel}>{t("userManageSidebar.cancel")}</Button>++ <Button++ type="primary"++ onClick={async () => {++ setCreateGroupLoading(true);++ if (createGroupId === "-1") {++ await createAccountGroupApi({++ name: groupName,++ });++ } else {++ await updateAccountGroupApi({++ name: groupName,++ id: createGroupId,++ });++ }++++ await getAccountGroup();++ setCreateGroupLoading(false);++ createGroupCancel();++ }}++ loading={createGroupLoading}++ >++ {t("userManageSidebar.save")}++ </Button>++ </>++ }++ >++ <div className={styles.createGroup}>++ <label>{t("userManageSidebar.spaceName")}</label>++ <Input++ value={groupName}++ placeholder={t("userManageSidebar.spaceNamePlaceholder")}++ onChange={(e) => setGroupName(e.target.value)}++ />++ </div>++ </Modal>++++ <div className="userManage-sidebar">++ <div className="userManage-sidebar-top">++ <div++ className={[++ "userManage-sidebar-allUser",++ activeGroup === allUser && "userManage-sidebar--active",++ ].join(" ")}++ onClick={() => {++ onChange(allUser);++ }}++ >++ <span className="userManage-sidebar-name">{t("userManageSidebar.allAccounts")}</span>++ <span className="userManage-sidebar-count">++ {accountList.length}++ </span>++ </div>++ <div className="userManage-sidebar-list">++ <p className="userManage-sidebar-list-title">{t("userManageSidebar.spaces")}</p>++++ <ReactSortable++ className="userManage-sidebar-list-sortable"++ list={accountGroupList}++ animation={250}++ onEnd={async () => {++ onSortEnd();++ }}++ setList={setAccountGroupList}++ scrollSensitivity={100}++ scroll={srcollEl.current}++ scrollSpeed={15}++ handle=".userManage-sidebar-sortHandle"++ id="id"++ >++ {accountGroupList.map((v) => {++ return (++ <div++ className={[++ "userManage-sidebar-list-item",++ activeGroup === v.id && "userManage-sidebar--active",++ ].join(" ")}++ key={v.id}++ onClick={() => {++ onChange(v.id);++ }}++ onContextMenu={(e) => {++ e.preventDefault();++ if (v.isDefault) {++ return message.error(t("userManageSidebar.cannotOperateDefault"));++ }++ setAnchorPoint({ x: e.clientX, y: e.clientY });++ setOpen(true);++ setRightClickOperateData(v);++ }}++ >++ <div className="userManage-sidebar-left">++ <div className="userManage-sidebar-sortHandle">++ <UnorderedListOutlined />++ </div>++ <span className="userManage-sidebar-name">++ {v.name}++ </span>++ </div>++ <span className="userManage-sidebar-count">++ {v.children.length}++ </span>++ </div>++ );++ })}++ </ReactSortable>++ </div>++ </div>++ <div className="userManage-sidebar-bottom">++ <Button++ type="primary"++ icon={<PlusOutlined />}++ onClick={() => {++ setCreateGroupId("-1");++ setOpenCreateGroup(true);++ }}++ >++ {t("userManageSidebar.createSpace")}++ </Button>++ </div>++ </div>++ </>++ );++ },++ ),++);++UserManageSidebar.displayName = "UserManageSidebar";++++export default UserManageSidebar;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AddAccountModal/AddAccountModal.module.scssindex 00000000,00000000..25dbbad6new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AddAccountModal/AddAccountModal.module.scss@@@ -1,0 -1,0 +1,47 @@@++/*++ * 添加账号弹窗样式++ * 平台按钮区域:当空间不足时自动换行,禁止出现横向滚动条++ */++.addAccountModal {++ :global {++ h1 {++ font-size: var(--fs-sm);++ margin-bottom: 15px;++ }++ .addAccountModal_plats {++ display: grid;++ /* 自适应列数:根据可用宽度自动换行 */++ grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));++ gap: 12px;++ overflow-y: auto;++ overflow-x: hidden;++ margin-bottom: 20px;++ &-item {++ padding: 8px;++ border-radius: 8px;++ height: 90px;++ /* 允许内容换行,避免撑出横向滚动条 */++ white-space: normal;++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ &-con {++ display: flex;++ flex-direction: column;++ align-items: center;++ gap: 8px;++ width: 100%;++ img {++ width: 40px;++ height: 40px;++ }++ }++ span {++ font-size: 12px;++ text-align: center;++ }++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/AddAccountModal/index.tsxindex 00000000,00000000..49bbb1d3new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/AddAccountModal/index.tsx@@@ -1,0 -1,0 +1,404 @@@++import { ForwardedRef, forwardRef, memo, useEffect, useMemo, useState } from "react";++import styles from "./AddAccountModal.module.scss";++import { Button, Modal, Tooltip, Select, Space, Typography } from "antd";++import { AccountPlatInfoArr, PlatType } from "@/app/config/platConfig";++import { SocialAccount } from "@/api/types/account.type";++import { useTransClient } from "@/app/i18n/client";++import { kwaiSkip } from "@/app/[lng]/accounts/plat/kwaiLogin";++import { bilibiliSkip } from "../../plat/BilibiliLogin";++import { youtubeSkip } from "../../plat/YoutubeLogin";++import { twitterSkip } from "../../plat/TwtterLogin";++import { tiktokSkip } from "../../plat/TiktokLogin";++import { facebookSkip, FacebookPagesModal } from "../../plat/FacebookLogin";++import { instagramSkip } from "../../plat/InstagramLogin";++import { threadsSkip } from "../../plat/ThreadsLogin";++import { wxGzhSkip } from "../../plat/WxGzh";++import { pinterestSkip } from "../../plat/PinterestLogin";++import { linkedinSkip } from "../../plat/LinkedinLogin";++import { useAccountStore } from "@/store/account";++import { useShallow } from "zustand/react/shallow";++import { getIpLocation, IpLocationInfo } from "@/utils/ipLocation";++import DownloadAppModal from "@/components/common/DownloadAppModal";++++const { Text } = Typography;++++export interface IAddAccountModalRef {}++++export interface IAddAccountModalProps {++ open: boolean;++ onClose: () => void;++ onAddSuccess: (accountInfo: SocialAccount) => void;++ // 目标空间ID,用于根据空间属地(CN)过滤可添加平台++ targetGroupId?: string;++ // 是否显示空间选择器(当从AccountSidebar的"添加账号"按钮打开时显示)++ showSpaceSelector?: boolean;++ // 自动触发平台,用于在打开时直接尝试跳转授权++ autoTriggerPlatform?: PlatType;++}++++const AddAccountModal = memo(++ forwardRef(++ (++ { open, onClose, onAddSuccess, targetGroupId, showSpaceSelector = false, autoTriggerPlatform }: IAddAccountModalProps,++ ref: ForwardedRef<IAddAccountModalRef>,++ ) => {++ const { t } = useTransClient('account');++ const [showFacebookPagesModal, setShowFacebookPagesModal] = useState(false);++ const { accountGroupList, getAccountList } = useAccountStore(++ useShallow((state) => ({++ accountGroupList: state.accountGroupList,++ getAccountList: state.getAccountList,++ }))++ );++ const [downloadVisible, setDownloadVisible] = useState(false);++ const [downloadPlatform, setDownloadPlatform] = useState<string>("");++ const aitoearnDownloadUrl = process.env.NEXT_PUBLIC_AITOEARN_APP_DOWNLOAD_URL || "";++++ // 空间选择相关状态++ const [selectedSpaceId, setSelectedSpaceId] = useState<string | undefined>(targetGroupId);++ const [spaceSelectionRequired, setSpaceSelectionRequired] = useState(false);++++ // 判断location是否属于中国(CN)++ const isLocationCN = (location?: string | null): boolean => {++ if (!location) return false;++ const upper = location.toUpperCase();++ return upper.startsWith('CN') || upper.includes('CHINA') || location.includes('中国');++ };++++ // 当前目标空间是否视为中国属地++ const [isCnSpace, setIsCnSpace] = useState<boolean | null>(null);++ const [isLocLoading, setIsLocLoading] = useState(false);++++ // 初始化空间选择 - 简化版本++ useEffect(() => {++ if (!open) {++ setSpaceSelectionRequired(false);++ setSelectedSpaceId(undefined);++ return;++ }++++ if (showSpaceSelector) {++ setSpaceSelectionRequired(true);++ // 默认选择第一个默认空间++ const defaultSpace = accountGroupList.find(group => group.isDefault);++ if (defaultSpace && !selectedSpaceId) {++ setSelectedSpaceId(defaultSpace.id);++ }++ } else {++ setSpaceSelectionRequired(false);++ if (targetGroupId) {++ setSelectedSpaceId(targetGroupId);++ }++ }++ }, [open, showSpaceSelector, targetGroupId, accountGroupList, selectedSpaceId]);++++++++ useEffect(() => {++ if (!open || !selectedSpaceId) {++ setIsCnSpace(null);++ setIsLocLoading(false);++ return;++ }++++ const currentSpace = (accountGroupList || []).find((g: any) => g.id === selectedSpaceId);++ if (!currentSpace) {++ setIsCnSpace(null);++ return;++ }++++ const shouldUseLocal = !currentSpace.proxyIp || currentSpace.proxyIp === '';++ if (!shouldUseLocal && currentSpace.ip && currentSpace.location) {++ setIsCnSpace(isLocationCN(currentSpace.location));++ return;++ }++++ let cancelled = false;++ const fetchLocal = async () => {++ try {++ setIsLocLoading(true);++ const info: IpLocationInfo = await getIpLocation();++ if (!cancelled) setIsCnSpace(isLocationCN(info.location));++ } catch {++ if (!cancelled) setIsCnSpace(null);++ } finally {++ if (!cancelled) setIsLocLoading(false);++ }++ };++ fetchLocal();++++ return () => {++ cancelled = true;++ };++ }, [open, selectedSpaceId]);++++ // 自动触发平台授权++ useEffect(() => {++ if (open && autoTriggerPlatform && selectedSpaceId) {++ // 延迟一下确保弹窗完全打开++ const timer = setTimeout(() => {++ const platformInfo = AccountPlatInfoArr.find(([key]) => key === autoTriggerPlatform);++ if (platformInfo) {++ handlePlatformClick(autoTriggerPlatform, platformInfo[1]);++ }++ }, 500);++++ return () => clearTimeout(timer);++ }++ }, [open, autoTriggerPlatform, selectedSpaceId]);++++ // 判断平台是否在当前属地可用++ const isPlatformAvailable = (platType: PlatType): boolean => {++ // TODO: 暂时屏蔽国内平台 @@.@@++ return true;++ if (isCnSpace === null) return true; // 未确定属地时显示所有平台++++ const cnOnlyPlatforms = new Set<PlatType>([++ PlatType.Douyin,++ PlatType.KWAI,++ PlatType.WxGzh,++ PlatType.WxSph,++ PlatType.BILIBILI,++ ]);++++ // 小红书是全球平台,不受IP限制++ if (platType === PlatType.Xhs) {++ return true;++ }++++ if (isCnSpace === true) {++ // 中国属地:仅国内平台可用++ return cnOnlyPlatforms.has(platType);++ } else {++ // 非中国属地:国内平台不可用++ return !cnOnlyPlatforms.has(platType);++ }++ };++++ const handleOk = () => {++ onClose();++ };++++ const handleCancel = () => {++ onClose();++ };++++ // 处理Facebook授权成功后的页面选择++ const handleFacebookAuthSuccess = () => {++ setShowFacebookPagesModal(true);++ };++++ // 处理Facebook页面选择成功++ const handleFacebookPagesSuccess = () => {++ setShowFacebookPagesModal(false);++ onClose();++ // 可以在这里添加成功提示或其他逻辑++ };++++ // 处理平台点击++ const handlePlatformClick = async (key: PlatType, value: any) => {++ // 如果需要选择空间但未选择,提示用户++ if (spaceSelectionRequired && !selectedSpaceId) {++ return;++ }++++ // 如果平台在当前属地不可用,则提示++ if (!isPlatformAvailable(key)) {++ return;++ }++++ // 如果该平台在PC端不可用,则提示下载Aitoearn App++ if (value.pcNoThis) {++ setDownloadPlatform(value.name);++ setDownloadVisible(true);++ return;++ }++++ // 记录授权前的账号数量,用于后续识别新账号++ const beforeAuthCount = accountGroupList.reduce((total, group) => total + group.children.length, 0);++++ switch (key) {++ case PlatType.KWAI:++ await kwaiSkip(key, selectedSpaceId);++ break;++ case PlatType.BILIBILI:++ await bilibiliSkip(key, selectedSpaceId);++ break;++ case PlatType.YouTube:++ await youtubeSkip(key, selectedSpaceId);++ break;++ case PlatType.Twitter:++ await twitterSkip(key, selectedSpaceId);++ break;++ case PlatType.Tiktok:++ await tiktokSkip(key, selectedSpaceId);++ break;++ case PlatType.Facebook:++ try {++ await facebookSkip(key, selectedSpaceId);++ // Facebook授权成功后显示页面选择弹窗++ handleFacebookAuthSuccess();++ } catch (error) {++ console.error('Facebook授权失败:', error);++ }++ break;++ case PlatType.Instagram:++ await instagramSkip(key, selectedSpaceId);++ break;++ case PlatType.Threads:++ await threadsSkip(key, selectedSpaceId);++ break;++ case PlatType.WxGzh:++ await wxGzhSkip(key, selectedSpaceId);++ break;++ case PlatType.Pinterest:++ await pinterestSkip(key, selectedSpaceId);++ break;++ case PlatType.LinkedIn:++ await linkedinSkip(key, selectedSpaceId);++ break;++ }++++ // 授权完成后刷新账号列表++ setTimeout(async () => {++ try {++ await getAccountList();++ console.log('账号列表已刷新');++ } catch (error) {++ console.error('刷新账号列表失败:', error);++ }++ }, 2000); // 等待3秒让授权完成++ };++++ return (++ <>++ <Modal++ title={t('addAccountModal.title')}++ open={open}++ onOk={handleOk}++ onCancel={handleCancel}++ footer={null}++ width={650}++ >++ <div className={styles.addAccountModal}>++ <h1>{t('addAccountModal.subtitle')}</h1>++++ {/* 空间选择器 */}++ {spaceSelectionRequired && (++ <div style={{++ marginBottom: '20px',++ paddingBottom: '16px',++ borderBottom: '1px solid var(--grayColor3)'++ }}>++ <Space align="center" style={{ width: '100%' }}>++ <Text strong style={{ fontSize: '14px', minWidth: '80px' }}>{t('addAccountModal.addTo')}</Text>++ <Select++ style={{ width: '200px' }}++ placeholder={t('pleaseChooseSpace')}++ value={selectedSpaceId}++ onChange={setSelectedSpaceId}++ options={accountGroupList.map((g) => ({ value: g.id, label: g.name }))}++ />++ </Space>++ </div>++ )}++++ {/* 当前选择的空间信息 */}++ {selectedSpaceId && !spaceSelectionRequired && (++ <div style={{++ marginBottom: '20px',++ padding: '12px',++ backgroundColor: 'var(--grayColor1)',++ borderRadius: '6px',++ border: '1px solid var(--grayColor3)',++ fontSize: 'var(--fs-xs)',++ color: 'var(--grayColor6)'++ }}>++ <Text>{t('addAccountModal.currentSpace')}: {accountGroupList.find(g => g.id === selectedSpaceId)?.name}</Text>++ </div>++ )}++++ <div className="addAccountModal_plats">++ {AccountPlatInfoArr.map(([key, value]) => {++ const isAvailable = isPlatformAvailable(key as PlatType);++ return (++ <Tooltip title={value.tips?.account} key={key}>++ <Button++ type="text"++ style={{ width: '84px', }}++ className={`addAccountModal_plats-item ${!isAvailable ? 'disabled' : ''}`}++ disabled={!isAvailable || (spaceSelectionRequired && !selectedSpaceId)}++ onClick={() => handlePlatformClick(key as PlatType, value)}++++ >++ <div className="addAccountModal_plats-item-con">++ <img++ src={value.icon}++ style={{ opacity: isAvailable ? 1 : 0.5 }}++ />++ <span style={{ opacity: isAvailable ? 1 : 0.5 }}>{value.name}</span>++ </div>++ </Button>++ </Tooltip>++ );++ })}++ </div>++++ {/* 属地限制提示 */}++ {isCnSpace !== null && (++ <div style={{++ marginTop: '16px',++ padding: '12px',++ backgroundColor: 'var(--grayColor1)',++ borderRadius: '6px',++ fontSize: 'var(--fs-xs)',++ color: 'var(--grayColor6)',++ textAlign: 'center'++ }}>++ {isCnSpace ?++ t('locationRestriction.cnSpace') :++ t('locationRestriction.nonCnSpace')++ }++ </div>++ )}++++ {/* 空间选择提示 */}++ {spaceSelectionRequired && !selectedSpaceId && (++ <div style={{++ marginTop: '16px',++ padding: '12px',++ backgroundColor: 'var(--warningColor1)',++ borderRadius: '6px',++ fontSize: 'var(--fs-xs)',++ color: 'var(--warningColor)',++ textAlign: 'center'++ }}>++ {t('addAccountModal.pleaseChooseSpaceFirst')}++ </div>++ )}++ </div>++ </Modal>++++ {/* Facebook页面选择弹窗 */}++ <FacebookPagesModal++ open={showFacebookPagesModal}++ onClose={() => setShowFacebookPagesModal(false)}++ onSuccess={handleFacebookPagesSuccess}++ />++++ {/* 下载Aitoearn App提示弹窗 */}++ <DownloadAppModal++ visible={downloadVisible}++ onClose={() => setDownloadVisible(false)}++ platform={downloadPlatform}++ appName={"Aitoearn App"}++ downloadUrl={aitoearnDownloadUrl}++ />++ </>++ );++ },++ ),++);++AddAccountModal.displayName = "AddAccountModal";++++export default AddAccountModal;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/AllPlatIcon.tsxindex 00000000,00000000..abe7f316new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/AllPlatIcon.tsx@@@ -1,0 -1,0 +1,47 @@@++import { ForwardedRef, forwardRef, memo, useMemo } from "react";++import styles from "./calendarTiming.module.scss";++++export interface IAllPlatIconRef {}++++export interface IAllPlatIconProps {++ size?: number;++ style?: React.CSSProperties;++}++++const AllPlatIcon = memo(++ forwardRef(++ (++ { size = 50, style = {} }: IAllPlatIconProps,++ ref: ForwardedRef<IAllPlatIconRef>,++ ) => {++ const widthChild = useMemo(() => {++ return size / 5;++ }, [size]);++++ const childStyle = useMemo(() => {++ return {++ width: widthChild + "px",++ height: widthChild + "px",++ };++ }, [widthChild]);++++ return (++ <div++ className={styles.allPlatIcon}++ style={{ width: size + "px", height: size + "px", ...style }}++ >++ <ul>++ <li style={childStyle}></li>++ <li style={childStyle}></li>++ </ul>++ <ul>++ <li style={childStyle}></li>++ <li style={childStyle}></li>++ </ul>++ </div>++ );++ },++ ),++);++++export default AllPlatIcon;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/BoxDragPreview.tsxindex 00000000,5bb8d6c4..5bb8d6c4mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/BoxDragPreview.tsx+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/BoxDragPreview.tsxdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/CalendarRecord.tsxindex 00000000,dcce8235..dcce8235mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/CalendarRecord.tsx+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/CalendarRecord.tsxdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/CustomDragLayer.tsxindex 00000000,2a0a4db2..2a0a4db2mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/CustomDragLayer.tsx+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/CustomDragLayer.tsxdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/RecordCore.tsxindex 00000000,140d85ab..140d85abmode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/RecordCore.tsx+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/RecordCore.tsxdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/calendarRecord.module.scssindex 00000000,00000000..b2a17263new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/calendarRecord.module.scss@@@ -1,0 -1,0 +1,3 @@@++.calendarRecord {++++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/calendarTimingItem.module.scssindex 00000000,00000000..976c4d76new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/calendarTimingItem.module.scss@@@ -1,0 -1,0 +1,66 @@@++.calendarTimingItem {++ box-sizing: border-box;++ padding: 10px;++ display: flex;++ flex-direction: column;++ font-weight: 600;++ min-height: 200px;++ height: 100%;++ :global {++ .calendarTimingItem-top {++ display: flex;++ justify-content: space-between;++ margin-bottom: 5px;++ .calendarTimingItem-top-day {++ width: 24px;++ height: 24px;++ line-height: 24px;++ text-align: center;++ border-radius: 50%;++ margin-bottom: 3px;++ }++ button {++ font-size: var(--fs-xs);++ display: none;++ }++ }++ .calendarTimingItem-con {++ .calendarTimingItem-con-btn2 {++ display: none;++ }++ button {++ width: 100%;++ margin-bottom: 8px;++ font-size: var(--fs-xs);++ padding: 0;++ height: 34px;++ &:hover {++ .calendarTimingItem-con-btn2 {++ display: block;++ }++ .calendarTimingItem-con-btn1 {++ display: none;++ }++ }++ }++ }++ }++++ &:hover {++ :global {++ .calendarTimingItem-top {++ button {++ display: block !important;++ }++ }++ }++ }++}++++.calendarTimingItemPast {++ background: var(--grayColor1);++}++++.calendarTimingItem_over {++ background: var(--colorPrimary3);++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/recordCore.module.scssindex 00000000,e92dc5ba..e92dc5bamode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/recordCore.module.scss+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/recordCore.module.scssdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/index.tsxindex 00000000,682f0ead..682f0eadmode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/index.tsx+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/index.tsxdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/QueueItem.tsxindex 00000000,00000000..5d632cbfnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/QueueItem.tsx@@@ -1,0 -1,0 +1,223 @@@++import { memo } from "react";++import { Button, Tag } from "antd";++import {++ CheckCircleOutlined,++ ClockCircleOutlined,++ CloseCircleOutlined,++ LoadingOutlined,++ SendOutlined,++ MessageOutlined++} from "@ant-design/icons";++import { PublishRecordItem, PublishStatus } from "@/api/plat/types/publish.types";++import { AccountPlatInfoMap } from "@/app/config/platConfig";++import { useAccountStore } from "@/store/account";++import { useShallow } from "zustand/react/shallow";++import { getOssUrl } from "@/utils/oss";++import { getDays } from "@/app/[lng]/accounts/components/CalendarTiming/calendarTiming.utils";++import { useTransClient } from "@/app/i18n/client";++import styles from "./queueItem.module.scss";++++interface QueueItemProps {++ record: PublishRecordItem;++ onRetry?: (record: PublishRecordItem) => void;++ onEdit?: (record: PublishRecordItem) => void;++ onMore?: (record: PublishRecordItem) => void;++}++++const QueueItem = memo(({ record, onRetry, onEdit, onMore }: QueueItemProps) => {++ const { t } = useTransClient("publish");++ const { accountMap } = useAccountStore(++ useShallow((state) => ({++ accountMap: state.accountMap,++ })),++ );++++ const account = accountMap.get(record.accountId);++ const platInfo = AccountPlatInfoMap.get(record.accountType);++ const days = getDays(record.publishTime);++++ const getStatusInfo = () => {++ switch (record.status) {++ case PublishStatus.FAIL:++ return {++ color: "error",++ text: t("status.publishFailed"),++ icon: <CloseCircleOutlined />++ };++ case PublishStatus.PUB_LOADING:++ return {++ color: "cyan",++ text: t("status.publishing"),++ icon: <LoadingOutlined />++ };++ case PublishStatus.RELEASED:++ return {++ color: "success",++ text: t("status.publishSuccess"),++ icon: <CheckCircleOutlined />++ };++ case PublishStatus.UNPUBLISH:++ return {++ color: "processing",++ text: t("status.waitingPublish"),++ icon: <ClockCircleOutlined />++ };++ default:++ return {++ color: "default",++ text: t("status.unknown"),++ icon: null++ };++ }++ };++++ const statusInfo = getStatusInfo();++++ return (++ <div className={styles.queueItem}>++ {/* 状态头部 */}++ <div className={styles.statusHeader}>++ <div className={styles.statusInfo}>++++ <div className={styles.dateTime}>++ <span className={styles.date}>{days.format("MMM DD")}</span>++ <span className={styles.time}>{days.format("h:mm A")}</span>++ </div>++ <span className={styles.statusText}>{statusInfo.text}</span>++ </div>++ {/* <div className={styles.statusBadge}>++ <Tag color={statusInfo.color} icon={statusInfo.icon}>++ {statusInfo.text}++ </Tag>++ </div> */}++ <div className={styles.commentIcon}>++ {/* <MessageOutlined /> */}++ </div>++ </div>++++ {/* 错误信息横幅 */}++ {record.status === PublishStatus.FAIL && record.errorMsg && (++ <div className={styles.errorBanner}>++ <div className={styles.errorIcon}>++ <CloseCircleOutlined />++ </div>++ <div className={styles.errorMessage}>++ {record.errorMsg}++ </div>++ </div>++ )}++++ {/* 主要内容区域 */}++ <div className={styles.contentArea}>++++ <div style={{display: 'flex', flexDirection: 'row', justifyContent: 'space-between', gap: '12px'}}>++++ {/* 账户信息 */}++++ <div style={{display: 'flex', flexDirection: 'column', gap: '12px'}}>++++ <div className={styles.accountInfo}>++ <div className={styles.avatarContainer}>++ <img++ src={getOssUrl(account?.avatar || "")}++ alt="avatar"++ className={styles.avatar}++ />++ <div className={styles.platformIcon}>++ <img++ src={platInfo?.icon}++ alt="platform"++ className={styles.platIcon}++ />++ </div>++ </div>++ <div className={styles.accountDetails}>++ <div className={styles.accountName}>{account?.nickname}</div>++ <div className={styles.accountHandle}>@{account?.account}</div>++ </div>++++ </div>++++ <div className={styles.postText}>{record.desc}</div>++ </div>++++++ {/* 发布内容 */}++ <div className={styles.postContent}>++++++ {/* 媒体内容 */}++ {(record.coverUrl || record.imgUrlList?.length > 0) && (++ <div className={styles.mediaContainer}>++ {record.videoUrl ? (++ <div className={styles.videoThumbnail}>++ <img++ src={getOssUrl(record.coverUrl || "")}++ alt="video thumbnail"++ className={styles.mediaImage}++ />++ <div className={styles.playButton}>++ <div className={styles.playIcon}>▶</div>++ </div>++ </div>++ ) : (++ <div className={styles.imageContainer}>++ <img++ src={getOssUrl(record.coverUrl || record.imgUrlList?.[0] || "")}++ alt="post image"++ className={styles.mediaImage}++ />++ </div>++ )}++ </div>++ )}++++ </div>++++ </div>++++++++ </div>++++ {/* 底部信息 */}++ <div className={styles.footer}>++ <div className={styles.creationInfo}>++ {t("creationInfo", { date: days.format("YYYY-MM-DD") })}++ </div>++ <div className={styles.actionButtons}>++ {record.status === PublishStatus.FAIL && (++ <Button++ type="primary"++ icon={<SendOutlined />}++ onClick={() => onRetry?.(record)}++ className={styles.retryButton}++ >++ {t("buttons.publishNow")}++ </Button>++ )}++ {record.workLink && (++ <Button++ icon={<SendOutlined />}++ onClick={async () => {++ try {++ await navigator.clipboard.writeText(record.workLink);++ // 可以添加一个提示消息++ } catch (err) {++ console.error('复制链接失败:', err);++ }++ }}++ className={styles.copyButton}++ >++ {t("buttons.copyLink")}++ </Button>++ )}++ </div>++ </div>++ </div>++ );++});++++QueueItem.displayName = "QueueItem";++++export default QueueItem;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/SentList.tsxindex 00000000,00000000..04c525ednew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/SentList.tsx@@@ -1,0 -1,0 +1,274 @@@++import React, { useEffect, useState } from 'react';++import { List, Card, Avatar, Typography, Space, Tag, Button, Skeleton, Empty } from 'antd';++import { EyeOutlined, LikeOutlined, MessageOutlined, ShareAltOutlined, HeartOutlined, BarChartOutlined, AimOutlined, EyeInvisibleOutlined } from '@ant-design/icons';++import { useTransClient } from '@/app/i18n/client';++import { getSentPosts } from '@/api/sent';++import { SentPost } from '@/api/types/sent.types';++import styles from './listMode.module.scss';++++const { Text, Title } = Typography;++++interface SentListProps {++ platform: string;++ uid: string;++ onDataChange?: (count: number) => void;++ accountInfo?: {++ avatar: string;++ nickname: string;++ account: string;++ };++}++++const SentList: React.FC<SentListProps> = ({ platform, uid, onDataChange, accountInfo }) => {++ const { t } = useTransClient("account");++ const [posts, setPosts] = useState<SentPost[]>([]);++ const [loading, setLoading] = useState(false);++ const [hasMore, setHasMore] = useState(false);++ const [page, setPage] = useState(1);++++ const loadPosts = async (pageNum: number = 1, append: boolean = false) => {++ setLoading(true);++ try {++ const response = await getSentPosts({++ platform,++ uid,++ page: pageNum,++ pageSize: 20++ });++++ // 处理新的API响应格式++ const responseData = (response as any)?.data || response;++++ console.log('SentList API Response:', {++ code: (response as any)?.code,++ message: (response as any)?.message,++ data: responseData++ });++++ if (append) {++ setPosts(prev => [...prev, ...(responseData?.posts || [])]);++ } else {++ setPosts(responseData?.posts || []);++ }++ setHasMore(responseData?.hasMore || false);++++ // 通知父组件数据变化++ if (onDataChange) {++ onDataChange(responseData?.total || 0);++ }++ } catch (error) {++ console.error('Failed to load sent posts:', error);++ // 发生错误时重置数据++ if (!append) {++ setPosts([]);++ setHasMore(false);++ if (onDataChange) {++ onDataChange(0);++ }++ }++ } finally {++ setLoading(false);++ }++ };++++ useEffect(() => {++ if (platform && uid) {++ loadPosts(1, false);++ }++ }, [platform, uid]);++++ const loadMore = () => {++ const nextPage = page + 1;++ setPage(nextPage);++ loadPosts(nextPage, true);++ };++++ const formatTime = (timestamp: number) => {++ const date = new Date(timestamp);++ return {++ date: date.toLocaleDateString('zh-CN', { month: '2-digit', day: '2-digit' }),++ time: date.toLocaleTimeString('zh-CN', { hour: '2-digit', minute: '2-digit', hour12: false })++ };++ };++++ const getMediaTypeTag = (mediaType: string) => {++ const typeMap = {++ video: { color: 'red', text: '视频' },++ image: { color: 'blue', text: '图片' },++ article: { color: 'green', text: '文章' }++ };++ return typeMap[mediaType as keyof typeof typeMap] || { color: 'default', text: mediaType };++ };++++ const renderPostItem = (post: SentPost) => {++ const timeInfo = formatTime(post.publishTime);++ const daysAgo = Math.floor((Date.now() - post.publishTime) / (1000 * 60 * 60 * 24));++++ return (++ <div key={post.postId} className={styles.sentPostItem}>++ <div className={styles.postCard}>++ {/* 日期时间头部 */}++ <div className={styles.postDateHeader}>++ <div className={styles.dateTime}>++ <span className={styles.dateText}>{timeInfo.date}</span>++ <span className={styles.timeText}>{timeInfo.time}</span>++ </div>++ </div>++++ {/* 帖子内容 */}++ <div className={styles.postContent}>++ {/* 用户信息 */}++ <div className={styles.userInfo}>++ <Avatar++ size={40}++ src={accountInfo?.avatar}++ className={styles.userAvatar}++ >++ {accountInfo?.nickname?.charAt(0) || post.title.charAt(0)}++ </Avatar>++ <div className={styles.userDetails}>++ <div className={styles.username}>{accountInfo?.nickname || post.title}</div>++ <div className={styles.userSubtitle}>{accountInfo?.account || post.content}</div>++ </div>++ {/* <div className={styles.chatIcon}>💬</div> */}++ </div>++++ {/* 帖子文本 */}++ <div className={styles.postText}>++ {post.content}++ </div>++++++++ {/* 媒体内容 */}++ {post.thumbnail && (++ <div className={styles.mediaContainer}>++ <div className={styles.mediaWrapper}>++ <img++ src={post.thumbnail}++ alt={post.title || post.content}++ className={styles.mediaImage}++ />++ {post.mediaType === 'video' && (++ <div className={styles.playButton}>++ <div className={styles.playIcon}>▶</div>++ </div>++ )}++ </div>++ </div>++ )}++++ {/* 互动数据 */}++ <div className={styles.engagementMetrics}>++ <div className={styles.metricsRow}>++ <div className={styles.metricItem}>++ <div className={styles.metricIcon}><LikeOutlined /></div>++ <div className={styles.metricLabel}>Likes</div>++ <div className={styles.metricValue}>{post.likeCount}</div>++ </div>++ <div className={styles.metricItem}>++ <div className={styles.metricIcon}><ShareAltOutlined /></div>++ <div className={styles.metricLabel}>Shares</div>++ <div className={styles.metricValue}>{post.shareCount}</div>++ </div>++ <div className={styles.metricItem}>++ <div className={styles.metricIcon}><EyeOutlined /></div>++ <div className={styles.metricLabel}>Views</div>++ <div className={styles.metricValue}>{post.viewCount }</div>++ </div>++ <div className={styles.metricItem}>++ <div className={styles.metricIcon}><MessageOutlined /></div>++ <div className={styles.metricLabel}>Comments</div>++ <div className={styles.metricValue}>{post.commentCount }</div>++ </div>++ <div className={styles.metricItem}>++ <div className={styles.metricIcon}><HeartOutlined /></div>++ <div className={styles.metricLabel}>Favorites</div>++ <div className={styles.metricValue}>{post.favoriteCount}</div>++ </div>++ <div className={styles.metricItem}>++ <div className={styles.metricIcon}><AimOutlined /></div>++ <div className={styles.metricLabel}>Click</div>++ <div className={styles.metricValue}>{post.clickCount || 0}</div>++ </div>++ <div className={styles.metricItem}>++ <div className={styles.metricIcon}><EyeInvisibleOutlined /></div>++ <div className={styles.metricLabel}>Impression</div>++ <div className={styles.metricValue}>{post.impressionCount || 0}</div>++ </div>++ <div className={styles.chartIcon}><BarChartOutlined /></div>++ </div>++ </div>++++ {/* 底部信息 */}++ <div className={styles.postFooter}>++ <div className={styles.creationInfo}>++ {t('listMode.createdDaysAgo' as any, { days: daysAgo })}++ </div>++ <div className={styles.actionButtons}>++ <Button++ type="link"++ size="small"++ className={styles.viewPostBtn}++ onClick={() => window.open(post.permaLink, '_blank')}++ >++ {t('listMode.viewPost' as any)} ↗️++ </Button>++ <Button++ type="text"++ size="small"++ className={styles.moreBtn}++ >++ ⋮++ </Button>++ </div>++ </div>++ </div>++ </div>++ </div>++ );++ };++++ if (loading && posts.length === 0) {++ return (++ <div className={styles.sentList}>++ <div className={styles.loadingContainer}>++ <Skeleton active paragraph={{ rows: 3 }} />++ <Skeleton active paragraph={{ rows: 3 }} />++ <Skeleton active paragraph={{ rows: 3 }} />++ </div>++ </div>++ );++ }++++ return (++ <div className={styles.sentList}>++ {posts.length > 0 ? (++ <>++ <div className={styles.postsContainer}>++ {posts.map(renderPostItem)}++ </div>++ {hasMore && (++ <div className={styles.loadMoreContainer}>++ <Button++ loading={loading}++ onClick={loadMore}++ className={styles.loadMoreButton}++ >++ 加载更多++ </Button>++ </div>++ )}++ </>++ ) : (++ <div className={styles.emptyState}>++ <Empty++ description={t('listMode.noSentPosts' as any)}++ />++ </div>++ )}++ </div>++ );++};++++export default SentList;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/index.tsxindex 00000000,66c56b11..66c56b11mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/index.tsx+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/index.tsxdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/listMode.module.scssindex 00000000,048ff2e6..048ff2e6mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/listMode.module.scss+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/listMode.module.scssdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/queueItem.module.scssindex 00000000,00000000..a0eebac1new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/ListMode/queueItem.module.scss@@@ -1,0 -1,0 +1,370 @@@++.queueItem {++ background: white;++ border-radius: 12px;++ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);++ border: 1px solid #f0f0f0;++ overflow: hidden;++ transition: all 0.3s ease;++ margin-bottom: 16px;++++ &:hover {++ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);++ transform: translateY(-2px);++ }++++ &:last-child {++ margin-bottom: 0;++ }++}++++.statusHeader {++ display: flex;++ justify-content: space-between;++ align-items: flex-start;++ padding: 16px 20px 12px 20px;++ border-bottom: 1px solid #f5f5f5;++++ .statusInfo {++ display: flex;++ flex-direction: column;++ gap: 4px;++++ .statusText {++ font-size: 16px;++ font-weight: 600;++ color: #333;++ }++++ .dateTime {++ display: flex;++ align-items: center;++ gap: 8px;++++ .date {++ font-size: 14px;++ color: #666;++ font-weight: 500;++ }++++ .time {++ font-size: 14px;++ color: #666;++ font-weight: 500;++ }++ }++ }++++ .statusBadge {++ flex-shrink: 0;++ }++++ .commentIcon {++ font-size: 16px;++ color: #999;++ cursor: pointer;++ padding: 4px;++ border-radius: 4px;++ transition: all 0.2s ease;++++ &:hover {++ background: #f5f5f5;++ color: #666;++ }++ }++}++++.errorBanner {++ display: flex;++ align-items: center;++ gap: 12px;++ padding: 12px 20px;++ background: #fff2f0;++ border-bottom: 1px solid #ffccc7;++++ .errorIcon {++ color: #ff4d4f;++ font-size: 16px;++ flex-shrink: 0;++ }++++ .errorMessage {++ color: #ff4d4f;++ font-size: 14px;++ line-height: 1.4;++ flex: 1;++ }++}++++.contentArea {++ padding: 20px;++++ .accountInfo {++ display: flex;++ align-items: flex-start;++ gap: 12px;++ margin-bottom: 16px;++++ .avatarContainer {++ position: relative;++ flex-shrink: 0;++++ .avatar {++ width: 48px;++ height: 48px;++ border-radius: 50%;++ object-fit: cover;++ border: 2px solid #f0f0f0;++ }++++ .platformIcon {++ position: absolute;++ bottom: -2px;++ right: -2px;++ width: 20px;++ height: 20px;++ background: white;++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ border: 2px solid white;++ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);++++ .platIcon {++ width: 12px;++ height: 12px;++ object-fit: contain;++ }++ }++ }++++ .accountDetails {++ flex: 1;++ min-width: 0;++++ .accountName {++ font-size: 16px;++ font-weight: 600;++ color: #333;++ margin-bottom: 4px;++ line-height: 1.3;++ }++++ .accountHandle {++ font-size: 14px;++ color: #666;++ line-height: 1.4;++ }++ }++ }++++ .postContent {++ position: relative;++++ .postText {++ font-size: 16px;++ color: #333;++ line-height: 1.5;++ margin-bottom: 16px;++ word-wrap: break-word;++ }++++ .mediaContainer {++ margin-bottom: 16px;++++ .videoThumbnail {++ position: relative;++ border-radius: 8px;++ overflow: hidden;++ background: #f5f5f5;++ max-width: 300px;++++ .mediaImage {++ width: 100%;++ height: auto;++ display: block;++ border-radius: 8px;++ }++++ .playButton {++ position: absolute;++ top: 50%;++ left: 50%;++ transform: translate(-50%, -50%);++ width: 48px;++ height: 48px;++ background: rgba(0, 0, 0, 0.7);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ cursor: pointer;++ transition: all 0.2s ease;++++ &:hover {++ background: rgba(0, 0, 0, 0.8);++ transform: translate(-50%, -50%) scale(1.1);++ }++++ .playIcon {++ color: white;++ font-size: 16px;++ margin-left: 2px;++ }++ }++ }++++ .imageContainer {++ border-radius: 8px;++ overflow: hidden;++ background: #f5f5f5;++ max-width: 300px;++++ .mediaImage {++ width: 100%;++ height: auto;++ display: block;++ border-radius: 8px;++ }++ }++ }++++ .shareIcon {++ position: absolute;++ top: 0;++ right: 0;++ font-size: 16px;++ color: #999;++ cursor: pointer;++ padding: 4px;++ border-radius: 4px;++ transition: all 0.2s ease;++++ &:hover {++ background: #f5f5f5;++ color: #666;++ }++++ .shareSymbol {++ font-size: 14px;++ font-weight: bold;++ }++ }++ }++}++++.footer {++ display: flex;++ justify-content: space-between;++ align-items: center;++ padding: 16px 20px;++ border-top: 1px solid #f0f0f0;++ background: #fafafa;++++ .creationInfo {++ font-size: 14px;++ color: #999;++ }++++ .actionButtons {++ display: flex;++ align-items: center;++ gap: 8px;++++ .retryButton {++ font-size: 14px;++ height: 32px;++ border-radius: 6px;++ font-weight: 500;++ }++++ .copyButton {++ font-size: 14px;++ height: 32px;++ border-radius: 6px;++ font-weight: 500;++ border: 1px solid #d9d9d9;++ background: white;++ transition: all 0.2s ease;++++ &:hover {++ border-color: #1890ff;++ background: #f6ffed;++ }++ }++ }++}++++// 响应式设计++@media (max-width: 768px) {++ .queueItem {++ margin-bottom: 12px;++ }++++ .statusHeader {++ padding: 12px 16px 8px 16px;++ }++++ .contentArea {++ padding: 16px;++++ .accountInfo {++ margin-bottom: 12px;++++ .avatarContainer {++ .avatar {++ width: 40px;++ height: 40px;++ }++++ .platformIcon {++ width: 18px;++ height: 18px;++++ .platIcon {++ width: 10px;++ height: 10px;++ }++ }++ }++++ .accountDetails {++ .accountName {++ font-size: 15px;++ }++++ .accountHandle {++ font-size: 13px;++ }++ }++ }++++ .postContent {++ .postText {++ font-size: 15px;++ margin-bottom: 12px;++ }++++ .mediaContainer {++ margin-bottom: 12px;++ max-width: 250px;++ }++ }++ }++++ .footer {++ padding: 12px 16px;++ flex-direction: column;++ gap: 12px;++ align-items: flex-start;++++ .creationInfo {++ font-size: 13px;++ }++++ .actionButtons {++ width: 100%;++ justify-content: flex-end;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/calendarTiming.module.scssindex 00000000,e56afa90..e56afa90mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/calendarTiming.module.scss+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/calendarTiming.module.scssdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/calendarTiming.utils.tsindex 00000000,00000000..bb949674new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/calendarTiming.utils.ts@@@ -1,0 -1,0 +1,55 @@@++import styles from "./calendarTiming.module.scss";++import dayjs from "dayjs";++import utc from "dayjs/plugin/utc";++import timezone from "dayjs/plugin/timezone";++++dayjs.extend(utc);++dayjs.extend(timezone);++++// 日历国际化++export const getFullCalendarLang = (lang: string) => {++ switch (lang) {++ case "zh-CN":++ return "zh-cn";++ case "en":++ return "en-gb";++ }++ return "en-gb";++};++++// 封装classNames切换方法++export function getTransitionClassNames(direction: "left" | "right" | "fade") {++ if (direction === "left") {++ return {++ enter: styles.slideLeftEnter,++ enterActive: styles.slideLeftEnterActive,++ exit: styles.slideLeftExit,++ exitActive: styles.slideLeftExitActive,++ };++ } else if (direction === "right") {++ return {++ enter: styles.slideRightEnter,++ enterActive: styles.slideRightEnterActive,++ exit: styles.slideRightExit,++ exitActive: styles.slideRightExitActive,++ };++ } else {++ // fade 动画++ return {++ enter: styles.fadeEnter,++ enterActive: styles.fadeEnterActive,++ exit: styles.fadeExit,++ exitActive: styles.fadeExitActive,++ };++ }++}++++// 获取UTC days++export function getUtcDays(date: dayjs.ConfigType) {++ return dayjs(date).utc();++}++++// 获取当前时区的days++export function getDays(date?: dayjs.ConfigType) {++ return dayjs(date);++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/index.tsxindex 00000000,bd59fd19..bd59fd19mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/index.tsx+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/index.tsxdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.tsindex 00000000,726d8c4d..726d8c4dmode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.ts+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.tsdiff --cc project/aitoearn-web/src/app/[lng]/accounts/components/ProxyInput/index.tsxindex 00000000,00000000..48adafd0new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/ProxyInput/index.tsx@@@ -1,0 -1,0 +1,104 @@@++import { ForwardedRef, forwardRef, memo, useEffect, useState } from "react";++import styles from "./proxyInput.module.scss";++import { Button, Input, message } from "antd";++++export interface IProxyInputRef {}++++export interface IProxyInputProps {++ onChange: (name: string) => void;++}++++export interface ProxyInfo {++ // 协议: 如 http, socks5++ protocol: string;++ // IP+端口: 如 192.168.0.1:8000++ ipAndPort: string;++ // 代理账号: 可选++ username?: string;++ // 代理密码: 可选++ password?: string;++ // 刷新URL: 可选++ refreshUrl?: string;++ // 备注: 可选++ remark?: string;++}++++export function parseProxyString(proxyString: string): ProxyInfo | false {++ const regex =++ /^(?:(\w+):\/\/)?([\d.]+:\d+)(?::([^:]+):([^{}\s]+))?(?:\[(.*?)\])?(?:{(.*?)})?$/;++++ const match = proxyString.match(regex);++ if (!match) {++ return false; // 无法解析则返回 false++ }++++ const [, protocol, ipAndPort, username, password, refreshUrl, remark] = match;++++ return {++ protocol: protocol || "http", // 如果未提供协议,默认为 http++ ipAndPort,++ username,++ password,++ refreshUrl,++ remark,++ };++}++++// 验证代理地址++export async function verifyProxy(proxyName: string) {++ const proxyInfo = parseProxyString(proxyName);++ if (proxyInfo === false) return false;++ return true;++}++++const ProxyInput = memo(++ forwardRef(++ ({ onChange }: IProxyInputProps, ref: ForwardedRef<IProxyInputRef>) => {++ const [proxyLoading, setProxyLoading] = useState(false);++ const [proxyName, setProxyName] = useState("");++++ useEffect(() => {++ onChange(proxyName);++ }, [onChange, proxyName]);++++ return (++ <>++ <div++ className={`${styles.createGroup} ${styles.proxyInput}`}++ style={{ marginBottom: "20px" }}++ >++ <label>代理地址</label>++ <Input++ value={proxyName}++ placeholder="请输入代理地址"++ onChange={(e) => setProxyName(e.target.value)}++ />++ <Button++ disabled={proxyName.length === 0}++ loading={proxyLoading}++ onClick={async () => {++ const verifyRes = await verifyProxy(proxyName);++ if (verifyRes) {++ message.success("代理地址可用");++ } else {++ message.error("代理地址不可用");++ }++ }}++ >++ 验证连接++ </Button>++ </div>++ <div className={styles.proxyHint}>++ <p>1. 代理类型仅支持HTTP、HTTPS、Socks5;</p>++ <p>支持以下填写格式</p>++ <p>192.168.0.1:8000{`{备注}`}</p>++ <p>192.168.0.1:8000:代理账号:代理密码{`{备注}`}</p>++ <p>socks5://192.168.0.1:8000:代理账号:代理密码{`{备注}`}</p>++ </div>++ </>++ );++ },++ ),++);++++export default ProxyInput;diff --cc project/aitoearn-web/src/app/[lng]/accounts/components/ProxyInput/proxyInput.module.scssindex 00000000,00000000..27eb2c6fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/components/ProxyInput/proxyInput.module.scss@@@ -1,0 -1,0 +1,27 @@@++.proxyInput {++ input {++ border-top-right-radius: 0;++ border-bottom-right-radius: 0;++ }++ button {++ border-top-left-radius: 0;++ border-bottom-left-radius: 0;++ border-left: none;++ }++}++++.proxyHint {++ margin: 20px 0 30px 0;++ font-size: var(--fs-sm);++ color: var(--grayColor8);++}++++.createGroup {++ display: flex;++ align-items: center;++ margin: 30px 0 50px 0;++ label {++ white-space: nowrap;++ margin-right: 10px;++ }++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/page.tsxindex 00000000,00000000..cbc22f06new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/page.tsx@@@ -1,0 -1,0 +1,27 @@@++import AccountPageCore from "@/app/[lng]/accounts/accountCore";++import { PageParams } from "@/app/globals";++import { useTranslation } from "@/app/i18n";++import { getMetadata } from "@/utils/general";++++export async function generateMetadata({ params }: PageParams) {++ const { lng } = await params;++ const { t } = await useTranslation(lng, "account");++ return await getMetadata(++ {++ title: t("title"),++ description: t("describe"),++ },++ lng,++ );++}++++interface AccountsPageProps {++ searchParams: {++ platform?: string;++ spaceId?: string;++ };++}++++export default function Page({ searchParams }: AccountsPageProps) {++ return <AccountPageCore searchParams={searchParams} />;++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/BilibiliLogin.tsindex 00000000,00000000..7727dca2new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/BilibiliLogin.ts@@@ -1,0 -1,0 +1,84 @@@++import qs from "qs";++import { PlatType } from "@/app/config/platConfig";++import { apiGetBilibiliLoginUrl, apiCheckBilibiliAuth } from "@/api/plat/bilibili";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++++++/**++ * b站被点击++ * @param platType++ */++export async function bilibiliSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.BILIBILI) return;++++ const res: any = await apiGetBilibiliLoginUrl('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++ if (res?.code !== 0) return;++ const url = res.data.url;++ window.open(`${url}`);++++ const bilibiliLoginRes = await bilibiliLogin(res.data.taskId);++++}++++export function bilibiliLogin(taskId:any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30; // 最大轮询次数++++ // 开始轮询检查授权状态++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess:any = await apiCheckBilibiliAuth(taskId);++ let authRes = authRess;++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ // message.success('授权成功');++ // useAccountStore++ const accountStore = useAccountStore.getState();++ await accountStore.getAccountList();++ resolve(authRes);++ return true;++ }++++ // 检查是否达到最大轮询次数++ if (pollCount >= maxPollCount) {++ console.log('达到最大轮询次数,停止轮询');++ return true;++ }++++ // return false;++ } catch (error) {++ console.error('检查授权状态失败:', error);++ return false;++ }++ };++++ // 设置轮询间隔++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ // 5分钟后自动停止轮询++ setTimeout(() => {++ clearInterval(interval);++ // message.error('授权超时,请重试');++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++++ } catch (e) {++ reject(e);++ }++ });++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/FacebookLogin.tsindex 00000000,00000000..7cd6f037new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/FacebookLogin.ts@@@ -1,0 -1,0 +1,88 @@@++import qs from "qs";++import { PlatType } from "@/app/config/platConfig";++import { getFacebookAuthUrlApi, checkMetaAuthApi } from "@/api/platAuth";++import { useAccountStore } from "@/store/account";++++// 导入Facebook页面选择弹窗++import FacebookPagesModal from "@/components/FacebookPagesModal";++import { useUserStore } from "@/store/user";++++/**++ * Facebook被点击++ * @param platType++ */++export async function facebookSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.Facebook) return;++++ const res: any = await getFacebookAuthUrlApi('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++ if (res?.code !== 0) return;++ const url = res.data.url;++ window.open(`${url}`);++++ const facebookLoginRes = await facebookLogin(res.data.taskId);++++}++++export function facebookLogin(taskId: any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30; // 最大轮询次数++++ // 开始轮询检查授权状态++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess: any = await checkMetaAuthApi(taskId);++ let authRes = authRess;++ console.log('authRes', authRes)++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ // 授权成功,不再直接刷新账户列表++ // 而是触发页面选择弹窗++ resolve(authRes);++ return true;++ }++++ // 检查是否达到最大轮询次数++ if (pollCount >= maxPollCount) {++ console.log('达到最大轮询次数,停止轮询');++ return true;++ }++++ // return false;++ } catch (error) {++ console.error('检查授权状态失败:', error);++ return false;++ }++ };++++ // 设置轮询间隔++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ // 5分钟后自动停止轮询++ setTimeout(() => {++ clearInterval(interval);++ // message.error('授权超时,请重试');++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++++ } catch (e) {++ reject(e);++ }++ });++}++++// 导出Facebook页面选择弹窗组件,供外部使用++export { FacebookPagesModal };diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/InstagramLogin.tsindex 00000000,00000000..c230a450new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/InstagramLogin.ts@@@ -1,0 -1,0 +1,85 @@@++import qs from "qs";++import { PlatType } from "@/app/config/platConfig";++import { getInstagramAuthUrlApi, checkMetaAuthApi } from "@/api/platAuth";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++++++/**++ * b站被点击++ * @param platType++ */++export async function instagramSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.Instagram) return;++++ const res: any = await getInstagramAuthUrlApi('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++ if (res?.code !== 0) return;++ const url = res.data.url;++ window.open(`${url}`);++++ const instagramLoginRes = await instagramLogin(res.data.taskId);++++}++++export function instagramLogin(taskId:any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30; // 最大轮询次数++++ // 开始轮询检查授权状态++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess:any = await checkMetaAuthApi(taskId);++ let authRes = authRess;++ console.log('authRes', authRes)++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ // message.success('授权成功');++ // useAccountStore++ const accountStore = useAccountStore.getState();++ await accountStore.getAccountList();++ resolve(authRes);++ return true;++ }++++ // 检查是否达到最大轮询次数++ if (pollCount >= maxPollCount) {++ console.log('达到最大轮询次数,停止轮询');++ return true;++ }++++ // return false;++ } catch (error) {++ console.error('检查授权状态失败:', error);++ return false;++ }++ };++++ // 设置轮询间隔++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ // 5分钟后自动停止轮询++ setTimeout(() => {++ clearInterval(interval);++ // message.error('授权超时,请重试');++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++++ } catch (e) {++ reject(e);++ }++ });++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/LinkedinLogin.tsindex 00000000,00000000..479917a2new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/LinkedinLogin.ts@@@ -1,0 -1,0 +1,74 @@@++import { PlatType } from "@/app/config/platConfig";++import { getLinkedInAuthUrlApi, checkMetaAuthApi } from "@/api/platAuth";++import { useUserStore } from "@/store/user";++import { useAccountStore } from "@/store/account";++++/**++ * LinkedIn 被点击++ * @param platType 平台类型++ */++export async function linkedinSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.LinkedIn) return;++++ const res: any = await getLinkedInAuthUrlApi('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return;++ }++ if (res?.code !== 0) return;++ const url = res.data.url;++ window.open(`${url}`);++++ await linkedinLogin(res.data.taskId);++}++++/**++ * LinkedIn 轮询登录结果++ * @param taskId 任务ID++ */++export function linkedinLogin(taskId: any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30;++++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess: any = await checkMetaAuthApi(taskId);++ const authRes = authRess;++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ const accountStore = useAccountStore.getState();++ await accountStore.getAccountList();++ resolve(authRes);++ return true;++ }++ if (pollCount >= maxPollCount) {++ return true;++ }++ } catch (error) {++ return false;++ }++ };++++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ setTimeout(() => {++ clearInterval(interval);++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++ } catch (e) {++ reject(e);++ }++ });++}++++diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/PinterestLogin.tsindex 00000000,00000000..21b5e110new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/PinterestLogin.ts@@@ -1,0 -1,0 +1,85 @@@++import qs from "qs";++import { PlatType } from "@/app/config/platConfig";++import { getPinterestAuthUrlApi, checkPinterestAuthApi } from "@/api/platAuth";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++++++/**++ * Pinterest被点击++ * @param platType++ */++export async function pinterestSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.Pinterest) return;++++ const res: any = await getPinterestAuthUrlApi('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++ if (res?.code !== 0) return;++ const url = res.data.uri;++ window.open(`${url}`);++++ const pinterestLoginRes = await pinterestLogin(res.data.taskId);++++}++++export function pinterestLogin(taskId:any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30; // 最大轮询次数++++ // 开始轮询检查授权状态++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess:any = await checkPinterestAuthApi(taskId);++ let authRes = authRess;++ console.log('authRes', authRes)++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ // message.success('授权成功');++ // useAccountStore++ const accountStore = useAccountStore.getState();++ await accountStore.getAccountList();++ resolve(authRes);++ return true;++ }++++ // 检查是否达到最大轮询次数++ if (pollCount >= maxPollCount) {++ console.log('达到最大轮询次数,停止轮询');++ return true;++ }++++ // return false;++ } catch (error) {++ console.error('检查授权状态失败:', error);++ return false;++ }++ };++++ // 设置轮询间隔++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ // 5分钟后自动停止轮询++ setTimeout(() => {++ clearInterval(interval);++ // message.error('授权超时,请重试');++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++++ } catch (e) {++ reject(e);++ }++ });++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/ThreadsLogin.tsindex 00000000,00000000..07ee17b4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/ThreadsLogin.ts@@@ -1,0 -1,0 +1,86 @@@++import qs from "qs";++import { PlatType } from "@/app/config/platConfig";++import { getThreadsAuthUrlApi, checkMetaAuthApi } from "@/api/platAuth";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++++++/**++ * b站被点击++ * @param platType++ */++export async function threadsSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.Threads) return;++++ const res: any = await getThreadsAuthUrlApi('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++++ if (res?.code !== 0) return;++ const url = res.data.url;++ window.open(`${url}`);++++ const threadsLoginRes = await threadsLogin(res.data.taskId);++++}++++export function threadsLogin(taskId:any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30; // 最大轮询次数++++ // 开始轮询检查授权状态++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess:any = await checkMetaAuthApi(taskId);++ let authRes = authRess;++ console.log('authRes', authRes)++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ // message.success('授权成功');++ // useAccountStore++ const accountStore = useAccountStore.getState();++ await accountStore.getAccountList();++ resolve(authRes);++ return true;++ }++++ // 检查是否达到最大轮询次数++ if (pollCount >= maxPollCount) {++ console.log('达到最大轮询次数,停止轮询');++ return true;++ }++++ // return false;++ } catch (error) {++ console.error('检查授权状态失败:', error);++ return false;++ }++ };++++ // 设置轮询间隔++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ // 5分钟后自动停止轮询++ setTimeout(() => {++ clearInterval(interval);++ // message.error('授权超时,请重试');++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++++ } catch (e) {++ reject(e);++ }++ });++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/TiktokLogin.tsindex 00000000,00000000..dbab29fanew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/TiktokLogin.ts@@@ -1,0 -1,0 +1,85 @@@++import qs from "qs";++import { PlatType } from "@/app/config/platConfig";++import { checkTiktokAuthApi, getTiktokAuthUrlApi } from "@/api/platAuth";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++++++/**++ * Tiktok被点击++ * @param platType++ */++export async function tiktokSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.Tiktok) return;++++ const res: any = await getTiktokAuthUrlApi('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++ if (res?.code !== 0) return;++ const url = res.data.url;++ window.open(`${url}`);++++ const tiktokLoginRes = await tiktokLogin(res.data.taskId);++++}++++export function tiktokLogin(taskId:any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30; // 最大轮询次数++++ // 开始轮询检查授权状态++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess:any = await checkTiktokAuthApi(taskId);++ let authRes = authRess;++ console.log('authRes', authRes)++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ // message.success('授权成功');++ // useAccountStore++ const accountStore = useAccountStore.getState();++ await accountStore.getAccountList();++ resolve(authRes);++ return true;++ }++++ // 检查是否达到最大轮询次数++ if (pollCount >= maxPollCount) {++ console.log('达到最大轮询次数,停止轮询');++ return true;++ }++++ // return false;++ } catch (error) {++ console.error('检查授权状态失败:', error);++ return false;++ }++ };++++ // 设置轮询间隔++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ // 5分钟后自动停止轮询++ setTimeout(() => {++ clearInterval(interval);++ // message.error('授权超时,请重试');++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++++ } catch (e) {++ reject(e);++ }++ });++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/TwtterLogin.tsindex 00000000,00000000..c0b72fe8new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/TwtterLogin.ts@@@ -1,0 -1,0 +1,85 @@@++import qs from "qs";++import { PlatType } from "@/app/config/platConfig";++import { getTwitterAuthUrlApi, apiCheckTwitterAuth } from "@/api/twitter";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++++++/**++ * b站被点击++ * @param platType++ */++export async function twitterSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.Twitter) return;++++ const res: any = await getTwitterAuthUrlApi('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++ if (res?.code !== 0) return;++ const url = res.data.url;++ window.open(`${url}`);++++ const twitterLoginRes = await twitterLogin(res.data.taskId);++++}++++export function twitterLogin(taskId:any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30; // 最大轮询次数++++ // 开始轮询检查授权状态++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess:any = await apiCheckTwitterAuth(taskId);++ let authRes = authRess;++ console.log('authRes', authRes)++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ // message.success('授权成功');++ // useAccountStore++ const accountStore = useAccountStore.getState();++ await accountStore.getAccountList();++ resolve(authRes);++ return true;++ }++++ // 检查是否达到最大轮询次数++ if (pollCount >= maxPollCount) {++ console.log('达到最大轮询次数,停止轮询');++ return true;++ }++++ // return false;++ } catch (error) {++ console.error('检查授权状态失败:', error);++ return false;++ }++ };++++ // 设置轮询间隔++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ // 5分钟后自动停止轮询++ setTimeout(() => {++ clearInterval(interval);++ // message.error('授权超时,请重试');++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++++ } catch (e) {++ reject(e);++ }++ });++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/WxGzh.tsindex 00000000,00000000..12ce90e9new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/WxGzh.ts@@@ -1,0 -1,0 +1,85 @@@++import qs from "qs";++import { PlatType } from "@/app/config/platConfig";++import { checkWxGzAuthApi, getWxGzhAuthUrlApi } from "@/api/platAuth";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++++++/**++ * 微信被点击++ * @param platType++ */++export async function wxGzhSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.WxGzh) return;++++ const res: any = await getWxGzhAuthUrlApi('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++ if (res?.code !== 0) return;++ const url = res.data.url;++ window.open(`${url}`);++++ const wxGzhLoginRes = await wxGzhLogin(res.data.id);++++}++++export function wxGzhLogin(taskId:any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30; // 最大轮询次数++++ // 开始轮询检查授权状态++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess:any = await checkWxGzAuthApi(taskId);++ let authRes = authRess;++ console.log('authRes', authRes)++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ // message.success('授权成功');++ // useAccountStore++ const accountStore = useAccountStore.getState();++ await accountStore.getAccountList();++ resolve(authRes);++ return true;++ }++++ // 检查是否达到最大轮询次数++ if (pollCount >= maxPollCount) {++ console.log('达到最大轮询次数,停止轮询');++ return true;++ }++++ // return false;++ } catch (error) {++ console.error('检查授权状态失败:', error);++ return false;++ }++ };++++ // 设置轮询间隔++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ // 5分钟后自动停止轮询++ setTimeout(() => {++ clearInterval(interval);++ // message.error('授权超时,请重试');++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++++ } catch (e) {++ reject(e);++ }++ });++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/YoutubeLogin.tsindex 00000000,00000000..a3fc113anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/YoutubeLogin.ts@@@ -1,0 -1,0 +1,85 @@@++import qs from "qs";++import { PlatType } from "@/app/config/platConfig";++import { getYouTubeAuthUrlApi, apiCheckYoutubeAuth } from "@/api/platAuth";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++++++/**++ * b站被点击++ * @param platType++ */++export async function youtubeSkip(platType: PlatType, spaceId?: string) {++ if (platType !== PlatType.YouTube) return;++++ const res: any = await getYouTubeAuthUrlApi('pc', spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++ if (res?.code !== 0) return;++ const url = res.data.url;++ window.open(`${url}`);++++ const youtubeLoginRes = await youtubeLogin(res.data.taskId);++++}++++export function youtubeLogin(taskId:any): Promise<any> {++ return new Promise(async (resolve, reject) => {++ try {++ let pollCount = 0;++ const maxPollCount = 30; // 最大轮询次数++++ // 开始轮询检查授权状态++ const checkAuthStatus = async () => {++ try {++ pollCount++;++ const authRess:any = await apiCheckYoutubeAuth(taskId);++ let authRes = authRess;++ console.log('authRes', authRes)++ if (authRes?.code === 0 && authRes?.data.status == 1) {++ // message.success('授权成功');++ // useAccountStore++ const accountStore = useAccountStore.getState();++ await accountStore.getAccountList();++ resolve(authRes);++ return true;++ }++++ // 检查是否达到最大轮询次数++ if (pollCount >= maxPollCount) {++ console.log('达到最大轮询次数,停止轮询');++ return true;++ }++++ // return false;++ } catch (error) {++ console.error('检查授权状态失败:', error);++ return false;++ }++ };++++ // 设置轮询间隔++ const interval = setInterval(async () => {++ const isSuccess = await checkAuthStatus();++ if (isSuccess) {++ clearInterval(interval);++ if (pollCount >= maxPollCount) {++ reject(new Error('授权超时,已达到最大轮询次数'));++ }++ }++ }, 2000);++++ // 5分钟后自动停止轮询++ setTimeout(() => {++ clearInterval(interval);++ // message.error('授权超时,请重试');++ reject(new Error('授权超时'));++ }, 5 * 60 * 1000);++++ } catch (e) {++ reject(e);++ }++ });++}diff --cc project/aitoearn-web/src/app/[lng]/accounts/plat/kwaiLogin.tsindex 00000000,00000000..6e871b30new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/accounts/plat/kwaiLogin.ts@@@ -1,0 -1,0 +1,36 @@@++import { PlatType } from "@/app/config/platConfig";++import { createKwaiAuth, getKwaiAuthStatus } from "@/api/plat/kwai";++import { sleep } from "@/utils";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++++export async function kwaiSkip(platType: PlatType, spaceId?: string) {++ const res = await createKwaiAuth("pc", spaceId);++ if (res?.code == 1) {++ useUserStore.getState().logout();++ return++ }++ if (!res?.data) return;++ window.open(res?.data.url);++++ let queryCount = 0;++ const maxQueryCount = 30; // 最大轮询次数++++ while (queryCount < maxQueryCount) {++ const autoStatusRes = await getKwaiAuthStatus(res.data.taskId);++++ if (!autoStatusRes?.data) break;++ if (autoStatusRes.data.status === 1) {++ useAccountStore.getState().getAccountList();++ break;++ }++++ queryCount++;++ await sleep(1000);++ }++++ // 如果达到最大轮询次数仍未成功,记录日志++ if (queryCount >= maxQueryCount) {++ console.log('快手授权达到最大轮询次数,停止轮询');++ }++}diff --cc project/aitoearn-web/src/app/[lng]/aiRank/aiRank.module.scssindex 00000000,00000000..d1d4f291new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/aiRank.module.scss@@@ -1,0 -1,0 +1,16 @@@++.aiRank {++ height: 100%;++ min-height: 0;++ display: flex;++ :global {++ .ant-menu {++ height: 100%;++ box-sizing: border-box;++ flex-shrink: 0;++ padding-top: 20px;++ svg {++ font-size: 20px;++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/aiRank/aiRanking/aiRanking.module.scssindex 00000000,00000000..ff9566c4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/aiRanking/aiRanking.module.scss@@@ -1,0 -1,0 +1,134 @@@++.aiRanking {++ padding: 15px;++ width: 100%;++ min-width: 0;++ height: 100%;++ box-sizing: border-box;++ display: flex;++ flex-direction: column;++ min-height: 0;++ font-size: 14px;++ :global {++ .aiRanking-rank {++ width: 100%;++ display: flex;++ flex-direction: column;++ justify-content: center;++ align-items: center;++ height: 30px;++ text-align: center;++ line-height: 30px;++ font-size: var(--fs-md);++ .ant-tag {++ margin-top: 6px;++ }++ &-up, &-down {++ width: 100%;++ display: flex;++ align-items: center;++ justify-content: center;++ padding: 0;++ height: 20px;++ margin: 0;++ min-width: 40px;++ .anticon {++ margin: 0 2px 0 0 !important;++ }++ }++ &-up {++ background: var(red);++ }++ &-down {++ }++ }++ .ant-table-tbody {++ .ant-table-row {++ &:nth-child(odd) {++ background: #f2f5f6;++ }++ td {++ .anticon {++ margin-left: 5px;++ cursor: pointer;++ }++ }++ }++ }++ .aiRanking-topthree {++ width: 30px;++ color: #fff;++ background: url("../images/bg-rank-index.png") no-repeat center / cover;++ }++ .ant-table-thead {++ th {++ white-space: nowrap;++ color: #9a9a9a !important;++ padding-top: 10px !important;++ padding-bottom: 10px !important;++ font-weight: 400 !important;++ .anticon {++ margin-right: 3px;++ }++ }++ }++ .aiRanking-title {++ margin-bottom: 20px;++ font-weight: 900;++ font-size: 24px;++ }++ .aiRanking-productName {++ display: flex;++ align-items: center;++ overflow: hidden;++ label {++ font-size: var(--fs-md);++ margin-bottom: 6px;++ }++ .ant-avatar {++ white-space: nowrap;++ flex-shrink: 0;++ }++ &-con {++ overflow: hidden;++ margin-left: 10px;++ white-space: nowrap;++ text-overflow: ellipsis;++ &-des {++ overflow: hidden;++ text-overflow: ellipsis;++ width: 100%;++ color: var(--grayColor8);++ font-size: var(--fs-xs);++ }++ }++ }++ .aiRanking-head {++ width: 100%;++ margin-bottom: 10px;++ background: var(--grayColor0);++ border-radius: 6px;++ padding: 15px;++ box-sizing: border-box;++ .aiRanking-head-item {++ display: flex;++ align-items: center;++ margin-bottom: 15px;++ &:last-of-type {++ margin-bottom: 0;++ }++ .aiRanking-head-title {++ margin-right: 20px;++ color: var(--grayColor7);++ }++ }++ }++++ .aiRanking-content {++ height: 100%;++ min-width: 0;++ display: flex;++ min-height: 0;++ @include table-flex-container-with-selectors;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/aiRank/aiRanking/echarts-weekPie.tsindex 00000000,00000000..c59721fdnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/aiRanking/echarts-weekPie.ts@@@ -1,0 -1,0 +1,43 @@@++import * as echarts from "echarts";++++type EChartsOption = echarts.EChartsOption;++++const initWeepPie = (++ chartDom: HTMLDivElement,++ data: {++ value: number;++ name: string;++ }[],++) => {++ if (!chartDom) return;++ const myChart = echarts.init(chartDom);++++ const option: EChartsOption = {++ tooltip: {++ trigger: "item",++ formatter: (params: any) => {++ const total = data.reduce((sum, item) => sum + item.value, 0);++ const percent = (((params.value as number) / total) * 100).toFixed(2); // 计算百分比并保留两位小数++ return `${params.name}: ${params.value} (${percent}%)`; // 格式化显示文本++ },++ },++ series: [++ {++ type: "pie",++ radius: "60%",++ label: {++ formatter: (params: any) => {++ const total = data.reduce((sum, item) => sum + item.value, 0);++ const percent = ((params.value / total) * 100).toFixed(0); // 百分比++ return `${params.name} ${params.value}(${percent}%) `; // 自定义显示名称、数值和百分比++ },++ },++ data,++ },++ ],++ };++++ if (option) myChart.setOption(option);++};++++export default initWeepPie;diff --cc project/aitoearn-web/src/app/[lng]/aiRank/aiRanking/page.tsxindex 00000000,00000000..46d68257new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/aiRanking/page.tsx@@@ -1,0 -1,0 +1,344 @@@++"use client";++++import styles from "./aiRanking.module.scss";++import RankingTags from "../components/RankingTags";++import Cycleselects, { CycleTypeEnum } from "../components/CycleSelects";++import { useEffect, useMemo, useRef, useState } from "react";++import { Avatar, Popover, Table, TableProps, Tag, Tooltip } from "antd";++import {++ CaretDownOutlined,++ CaretUpOutlined,++ QuestionCircleOutlined,++ SearchOutlined,++} from "@ant-design/icons";++import initWeepPie from "./echarts-weekPie";++import {++ AiToolsRankingItemType,++ GetAiToolsRankingApiParams,++} from "@/api/types/platform.type";++import { platformApi } from "@/api/hot";++++const optionsTags = [++ {++ label: "总榜",++ value: "1",++ },++ {++ label: "国内榜",++ value: "2",++ },++ {++ label: "国外榜",++ value: "3",++ },++];++++function parseChineseNumber(input: string): number {++ if (!input) return 0;++ const units: { [key: string]: number } = {++ 千: 1000,++ 万: 10000,++ 亿: 100000000,++ };++++ let result = 0;++ let currentNumber = 0;++ let decimalPart = 0;++ let isDecimal = false;++ let decimalScale = 0.1;++++ for (const char of input) {++ if (char === ".") {++ isDecimal = true; // 标记进入小数部分++ continue;++ }++++ if (char in units) {++ if (isDecimal) {++ result += (currentNumber + decimalPart) * units[char];++ } else {++ result += currentNumber * units[char];++ }++ currentNumber = 0;++ decimalPart = 0;++ isDecimal = false;++ decimalScale = 0.1;++ } else {++ const num = parseInt(char, 10);++ if (!isNaN(num)) {++ if (isDecimal) {++ decimalPart += num * decimalScale;++ decimalScale *= 0.1;++ } else {++ currentNumber = currentNumber * 10 + num;++ }++ }++ }++ }++++ // 如果最后还有剩余的数字或小数部分,直接加到结果里++ result += currentNumber + decimalPart;++++ return result;++}++++export default function Page() {++ const [params, setParams] = useState<GetAiToolsRankingApiParams>({++ dateType: "",++ startDate: "",++ area: "1",++ });++ const [loading, setLoading] = useState(false);++ const [data, setData] = useState<AiToolsRankingItemType[]>([]);++ const aiRankingContentRef = useRef<HTMLDivElement>(null);++++ useEffect(() => {++ if (params.dateType === "" || params.startDate === "") return;++ if (loading) return;++ setLoading(true);++ platformApi++ .getAiToolsRankingApi(params)++ .then((res) => {++ setLoading(false);++ setData(res?.data.items ?? []);++ document.querySelector(".ant-table-body")!.scrollTo(0, 0);++ })++ .catch(() => setLoading(false));++ }, [params]);++++ const columns = useMemo(() => {++ const columns: TableProps<AiToolsRankingItemType>["columns"] = [++ {++ title: () => <p style={{ textAlign: "center" }}>#</p>,++ render: (text, prm, ind) => {++ return (++ <div className="aiRanking-rank">++ {ind <= 2 ? (++ <div className="aiRanking-topthree">{ind + 1}</div>++ ) : (++ <span>{ind + 1}</span>++ )}++ {prm.rankChange > 0 && (++ <Tag className="aiRanking-rank-up" color="error">++ <CaretUpOutlined />++ {prm.rankChange}++ </Tag>++ )}++ {prm.rankChange < 0 && (++ <Tag className="aiRanking-rank-down" color="success">++ <CaretDownOutlined />++ {Math.abs(prm.rankChange)}++ </Tag>++ )}++ </div>++ );++ },++ width: "40px",++ key: "序号",++ },++ {++ title: "产品名",++ render: (text, prm) => {++ return (++ <div className="aiRanking-productName">++ <Avatar src={prm.cover} size="large" />++ <div className="aiRanking-productName-con">++ <label style={{ marginBottom: "4px", display: "inline-block" }}>++ {prm.title}++ </label>++ <div++ className="aiRanking-productName-con-des"++ title={prm.description}++ >++ {prm.description}++ </div>++ </div>++ </div>++ );++ },++ width: 250,++ key: "title",++ },++ {++ title: "标签",++ render: (text, prm) => {++ return (++ <div className="aiRanking-productName">++ <div className="aiRanking-productName-con" title={prm.intro}>++ {prm.intro}++ </div>++ </div>++ );++ },++ width: 200,++ key: "title",++ },++ {++ title: "月访问量",++ render: (text, prm) => {++ return prm.stats.viewCount;++ },++ sorter: (a, b) =>++ parseChineseNumber(b.stats.viewCount) -++ parseChineseNumber(a.stats.viewCount),++ width: 80,++ key: "title",++ },++ {++ title: "月下载量",++ render: (text, prm) => {++ return prm.downCount;++ },++ sorter: (a, b) =>++ parseChineseNumber(b.downCount) - parseChineseNumber(a.downCount),++ width: 80,++ key: "月下载量",++ },++ {++ title: () => {++ return (++ <>++ <Tooltip title="统计AI工具排行榜的周提及作品数">++ <QuestionCircleOutlined />++ </Tooltip>++ 周提及量++ </>++ );++ },++ sorter: (a, b) => b.referCount - a.referCount,++ render: (text, prm, ind) => {++ return (++ <>++ {prm.referCount}++ <Popover++ content={() => {++ return (++ <>++ <div++ className={`weekChat${ind}`}++ style={{ width: "350px", height: "200px" }}++ />++ </>++ );++ }}++ onOpenChange={() => {++ setTimeout(() => {++ initWeepPie(++ document.querySelector(`.weekChat${ind}`)!,++ Object.keys(prm.detail).map((key) => {++ return {++ name: key,++ value: prm.detail[key as "抖音"],++ };++ }),++ );++ }, 10);++ }}++ >++ <SearchOutlined />++ </Popover>++ </>++ );++ },++ width: 90,++ key: "referCount",++ },++ {++ title: () => {++ return (++ <>++ <Tooltip title="统计AI工具排行榜的提及作品、传播范围等多维度数据分析做出的综合评分">++ <QuestionCircleOutlined />++ </Tooltip>++ 声望值++ </>++ );++ },++ sorter: (a, b) => b.volumeCount - a.volumeCount,++ render: (text, prm) => {++ return prm.volumeCount;++ },++ width: 80,++ key: "volumeCount",++ },++ {++ title: () => {++ return (++ <>++ <Tooltip title="统计AI工具排行榜的用户使用情况等多维度数据分析做出的综合评分">++ <QuestionCircleOutlined />++ </Tooltip>++ 综合评分++ </>++ );++ },++ sorter: (a, b) => b.exponentCount - a.exponentCount,++ render: (text, prm) => {++ return (++ <span style={{ color: "var(--colorPrimary6)" }}>++ {prm.exponentCount}++ </span>++ );++ },++ width: 90,++ key: "exponentCount",++ },++ ];++ return columns;++ }, []);++++ return (++ <div className={styles.aiRanking}>++ <div className="aiRanking-title">++ AI工具排行榜 · {optionsTags.find((v) => v.value === params.area)?.label}{" "}++ ·{params.dateType === CycleTypeEnum.Week ? "周榜" : "月榜"}++ </div>++ <div className="aiRanking-head">++ <div className="aiRanking-head-item">++ <div className="aiRanking-head-title">类型</div>++ <RankingTags++ options={optionsTags}++ defaultValue={optionsTags[0].value}++ onChange={(val) => {++ setParams((prevState) => {++ const newState = { ...prevState };++ newState.area = val;++ return newState;++ });++ }}++ />++ </div>++ <div className="aiRanking-head-item">++ <div className="aiRanking-head-title">周期</div>++ <div className="aiRanking-head-cycleselects">++ <Cycleselects++ defaultType={CycleTypeEnum.Week}++ onChange={(v) => {++ setParams((prevState) => {++ const newState = { ...prevState };++ newState.dateType = v.type;++ newState.startDate = v.value;++ return newState;++ });++ }}++ />++ </div>++ </div>++ </div>++++ <div className="aiRanking-content" ref={aiRankingContentRef}>++ <Table<AiToolsRankingItemType>++ columns={columns}++ dataSource={data}++ rowKey="id"++ loading={loading}++ pagination={false}++ scroll={{++ // 高度通过css flex设置为自适应++ y: 0,++ }}++ />++ </div>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/aiRank/components/CycleSelects/cycleSelects.module.scssindex 00000000,00000000..f76f73fcnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/components/CycleSelects/cycleSelects.module.scss@@@ -1,0 -1,0 +1,24 @@@++.cycleSelects {++ display: flex;++ :global {++ .cycleSelects-item {++ display: flex;++ align-items: center;++ height: 32px;++ margin-right: 30px;++ &-label {++ height: 100%;++ display: flex;++ align-items: center;++ padding: 0 10px;++ border-radius: 8px 0 0 8px;++ background: var(--colorPrimary3);++ color: var(--colorPrimary8);++ }++ .ant-select-selector {++ border-bottom-left-radius: 0;++ border-top-left-radius: 0;++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/aiRank/components/CycleSelects/index.tsxindex 00000000,00000000..fb1074f8new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/components/CycleSelects/index.tsx@@@ -1,0 -1,0 +1,195 @@@++import { ForwardedRef, forwardRef, memo, useEffect, useState } from "react";++import styles from "./cycleSelects.module.scss";++import { Button, Select } from "antd";++import dayjs from "dayjs";++import isoWeek from "dayjs/plugin/isoWeek";++++dayjs.extend(isoWeek);++++export enum CycleTypeEnum {++ Week = "week",++ Month = "month",++}++++type CycleItemType = {++ value: string;++ label: string;++};++++export interface ICycleselectsRef {}++++export interface ICycleselectsProps {++ onChange: (params: { type: CycleTypeEnum; value: string }) => void;++ defaultType: CycleTypeEnum;++ disable?: boolean;++}++++const CycleseCore = ({++ title,++ options,++ onChange,++ onActiveClick,++ isActive,++ value,++}: {++ onChange: (value: string) => void;++ title: string;++ options: CycleItemType[];++ onActiveClick: () => void;++ isActive: boolean;++ value: string;++}) => {++ return (++ <div className="cycleSelects-item">++ {isActive}++ {isActive ? (++ <>++ <div className="cycleSelects-item-label">{title}</div>++ <Select options={options} value={value} onChange={onChange}></Select>++ </>++ ) : (++ <Button onClick={onActiveClick}>{title}</Button>++ )}++ </div>++ );++};++++/**++ * 获取指定数量的月份++ * @param {number} skipMonths 跳过的月份数(当前月不算)++ * @param {number} numberOfMonths 获取的月份数++ */++function getMonths(skipMonths: number, numberOfMonths: number) {++ const currentMonth = dayjs().startOf("month"); // 当前月的开始时间++ const months: CycleItemType[] = [];++++ for (let i = 0; i < numberOfMonths; i++) {++ const month = currentMonth.subtract(skipMonths + i + 1, "month");++ months.push({++ label: month.format("YYYY年MM月"),++ value: month.format("YYYY-MM-DD"),++ });++ }++++ return months;++}++++/**++ * 获取指定周范围的周++ * @param {number} skipWeeks 跳过的周数(当前周不算)++ * @param {number} numberOfWeeks 获取的周数++ */++function getWeekRanges(skipWeeks: number, numberOfWeeks: number) {++ const currentWeekStart = dayjs().startOf("isoWeek"); // 当前周的开始时间(周一)++ const ranges: CycleItemType[] = [];++++ for (let i = 0; i < numberOfWeeks; i++) {++ const startOfWeek = currentWeekStart++ .subtract(skipWeeks + i + 1, "week")++ .startOf("isoWeek");++ const endOfWeek = startOfWeek.endOf("isoWeek");++ ranges.push({++ label: `${startOfWeek.format("MM月DD日")} - ${endOfWeek.format("MM月DD日")}`,++ value: startOfWeek.format("YYYY-MM-DD"),++ });++ }++++ return ranges;++}++++/**++ * 获取指定数量的日期++ * @param {number} skipDays 跳过的天数(当前日不算)++ * @param {number} numberOfDays 获取的天数++ */++function getDays(skipDays: number, numberOfDays: number) {++ const currentDay = dayjs().startOf("day"); // 当前天的起始时间++ const days: CycleItemType[] = [];++++ for (let i = 0; i < numberOfDays; i++) {++ const day = currentDay.subtract(skipDays + i + 1, "day");++ days.push({++ value: day.format("YYYY年MM月DD日"),++ label: day.format("YYYY-MM-DD"),++ });++ }++++ return days;++}++++const Cycleselects = memo(++ forwardRef(++ (++ { onChange, defaultType, disable }: ICycleselectsProps,++ ref: ForwardedRef<ICycleselectsRef>,++ ) => {++ // 1周榜 2=月榜++ const [active, setActive] = useState<CycleTypeEnum>(defaultType);++ const [value, setValue] = useState("");++ const [weekOptions, setWeekOptions] = useState<CycleItemType[]>([]);++ const [monthsOptions, setMonthsOptions] = useState<CycleItemType[]>([]);++++ useEffect(() => {++ const weekOptions = getWeekRanges(1, 3);++ setWeekOptions(weekOptions);++++ const monthsOptions = getMonths(0, 3);++ setMonthsOptions(monthsOptions);++++ if (defaultType === CycleTypeEnum.Week) {++ setValue(weekOptions[0].value);++ }++ }, []);++++ useEffect(() => {++ if (!value) return;++ onChange({++ type: active,++ value,++ });++ }, [value]);++++ useEffect(() => {++ if (active === CycleTypeEnum.Week) {++ if (weekOptions[0]?.value) setValue(weekOptions[0]?.value);++ return;++ }++ if (active === CycleTypeEnum.Month) {++ if (monthsOptions[0]?.value) setValue(monthsOptions[0]?.value);++ return;++ }++ }, [active]);++++ return (++ <div className={styles.cycleSelects}>++ <CycleseCore++ value={value}++ isActive={active === CycleTypeEnum.Week}++ onActiveClick={() => {++ if (disable) return;++ setActive(CycleTypeEnum.Week);++ }}++ onChange={setValue}++ title="周榜"++ options={weekOptions}++ />++++ <CycleseCore++ value={value}++ isActive={active === CycleTypeEnum.Month}++ onActiveClick={() => {++ if (disable) return;++ setActive(CycleTypeEnum.Month);++ }}++ onChange={setValue}++ title="月榜"++ options={monthsOptions}++ />++ </div>++ );++ },++ ),++);++Cycleselects.displayName = "Cycleselects";++++export default Cycleselects;diff --cc project/aitoearn-web/src/app/[lng]/aiRank/components/RankingTags/index.tsxindex 00000000,00000000..882c9819new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/components/RankingTags/index.tsx@@@ -1,0 -1,0 +1,51 @@@++import { ForwardedRef, forwardRef, memo, useState } from "react";++import styles from "./rankingTags.module.scss";++++export interface IRankingtagsRef {}++++export interface IRankingtagsProps {++ options: {++ label: string;++ value: string;++ }[];++ defaultValue: string;++ disable?: boolean;++ onChange: (value: string) => void;++}++++const Rankingtags = memo(++ forwardRef(++ (++ { options, defaultValue, disable, onChange }: IRankingtagsProps,++ ref: ForwardedRef<IRankingtagsRef>,++ ) => {++ const [activeValue, setActiveValue] = useState(defaultValue);++++ return (++ <div className={styles.rankingTags}>++ {options.map((v) => {++ return (++ <div++ className={[++ "rankingTags-tag",++ activeValue === v.value ? "rankingTags-tag--active" : "",++ ].join(" ")}++ key={v.value}++ onClick={() => {++ if (disable) return;++ onChange(v.value);++ setActiveValue(v.value);++ }}++ >++ {v.label}++ </div>++ );++ })}++ </div>++ );++ },++ ),++);++Rankingtags.displayName = "Rankingtags";++++export default Rankingtags;diff --cc project/aitoearn-web/src/app/[lng]/aiRank/components/RankingTags/rankingTags.module.scssindex 00000000,00000000..2d22f8dcnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/components/RankingTags/rankingTags.module.scss@@@ -1,0 -1,0 +1,23 @@@++.rankingTags {++ display: flex;++ flex-wrap: wrap;++ gap: 4px;++ :global {++ .rankingTags-tag {++ cursor: pointer;++ font-size: var(--fs-sm);++ border-radius: 3px;++ padding: 2px 8px;++ color: #333;++ background: transparent;++ transition: 0.3s;++ &:hover {++ color: var(--colorPrimary6);++ }++ &--active {++ background: var(--colorPrimary6);++ color: #fff !important;++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/aiRank/images/bg-rank-index.pngindex 00000000,00000000..ed4c7e69new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/app/[lng]/aiRank/layout.tsxindex 00000000,00000000..8ea3d6ddnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/layout.tsx@@@ -1,0 -1,0 +1,53 @@@++"use client";++import { Menu, MenuProps } from "antd";++import styles from "./aiRank.module.scss";++import Ranking from "./svgs/ranking.svg";++import Icon from "@ant-design/icons";++import { usePathname, useRouter, useSearchParams } from "next/navigation";++import { useEffect, useState } from "react";++import { removeLocalePrefix } from "@/app/layout/layout.utils";++++type MenuItem = Required<MenuProps>["items"][number];++++const items: MenuItem[] = [++ {++ key: "/aiRank/aiRanking",++ label: "AI工具排行榜",++ icon: <Icon component={Ranking} />,++ },++].map((v) => {++ // @ts-ignore++ v.label = <span title={v.label}>{v.label}</span>;++ return v;++});++++export default function AiRankLayout({++ children,++}: {++ children: React.ReactNode;++}) {++ const router = useRouter();++ const pathname = usePathname();++ const searchParams = useSearchParams();++ const [currChooseRoute, setCurrChooseRoute] = useState<string>();++++ useEffect(() => {++ setCurrChooseRoute(removeLocalePrefix(pathname));++ }, [pathname, searchParams]);++++ return (++ <div className={styles.aiRank}>++ <Menu++ selectedKeys={[currChooseRoute || ""]}++ style={{ width: 200 }}++ inlineIndent={15}++ mode="inline"++ items={items}++ onClick={(e) => {++ router.push(e.key as string);++ }}++ />++ {children}++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/aiRank/page.tsxindex 00000000,00000000..1551ab49new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/page.tsx@@@ -1,0 -1,0 +1,16 @@@++"use client";++++import { useRouter } from "next/navigation";++import { useEffect } from "react";++++const App = () => {++ const router = useRouter();++++ useEffect(() => {++ router.replace("/aiRank/aiRanking");++ }, [router]);++++ return null;++};++++export default App;diff --cc project/aitoearn-web/src/app/[lng]/aiRank/svgs/ranking.svgindex 00000000,00000000..3cbaf7e0new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/aiRank/svgs/ranking.svg@@@ -1,0 -1,0 +1,1 @@@++<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1744720956242" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6046" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M924 467.1H768.2c-10.8 0-19.5 8.7-19.5 19.5s8.7 19.5 19.5 19.5h136.3v331.1H690.3V175c0-21.5-17.4-38.9-38.9-38.9H378.7c-21.5 0-38.9 17.4-38.9 38.9v662.1H125.6V408.7h136.3c10.8 0 19.5-8.7 19.5-19.5s-8.7-19.5-19.5-19.5H106.1c-10.8 0-19.5 8.7-19.5 19.5v467.4c0 10.8 8.7 19.5 19.5 19.5H924c10.8 0 19.5-8.7 19.5-19.5v-370c0-10.8-8.8-19.5-19.5-19.5z m-272.6 370H378.7V213.9c0-21.5 17.4-38.9 38.9-38.9h194.7c21.5 0 38.9 17.4 38.9 38.9v623.2zM456.6 311.3v19.5H515v97.4h39V252.9h-39l-58.4 58.4z" p-id="6047"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/cgmaterial/cgmaterialPageCore.tsxindex 00000000,14acbf7e..14acbf7emode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/cgmaterial/cgmaterialPageCore.tsx+++ b/project/aitoearn-web/src/app/[lng]/cgmaterial/cgmaterialPageCore.tsxdiff --cc project/aitoearn-web/src/app/[lng]/cgmaterial/page.tsxindex 00000000,00000000..056c3108new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/cgmaterial/page.tsx@@@ -1,0 -1,0 +1,29 @@@++import { useTranslation } from "@/app/i18n";++import { PageParams } from "@/app/globals";++import * as React from "react";++import { getMetadata } from "@/utils/general";++import dynamic from "next/dynamic";++++const CgMaterialPageCore = dynamic(++ // @ts-ignore++ () => import("./cgmaterialPageCore").then(mod => mod.default || mod.CgMaterialPageCore),++ { ssr: false }++);++++export async function generateMetadata({ params }: PageParams) {++ const { lng } = await params;++ return await getMetadata(++ {++ title: "草稿箱",++ },++ lng,++ );++}++++export default function Page({ params }: PageParams) {++ return (++ <>++ <CgMaterialPageCore />++ </>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/cgmaterial/styles/cgmaterial.module.scssindex 00000000,00000000..de1ff380new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/cgmaterial/styles/cgmaterial.module.scss@@@ -1,0 -1,0 +1,579 @@@++// 主容器样式++.materialContainer {++ padding: 24px;++ min-height: 100vh;++ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);++ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;++}++++// 头部样式++.header {++ display: flex;++ align-items: center;++ justify-content: space-between;++ margin-bottom: 24px;++ padding: 0 8px;++++ h2 {++ margin: 0;++ font-size: 24px;++ font-weight: 700;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++ }++++ .headerActions {++ display: flex;++ gap: 12px;++ }++}++++// 按钮样式++.actionButton {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++ border: none;++ padding: 8px 16px;++ border-radius: 8px;++ cursor: pointer;++ display: flex;++ align-items: center;++ gap: 6px;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++ font-size: 14px;++ font-weight: 500;++ box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);++++ &:hover {++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);++ }++++ &:active {++ transform: translateY(0);++ }++++ :global(.anticon) {++ font-size: 14px;++ }++}++++.importButton {++ background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);++ box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);++++ &:hover {++ box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);++ }++}++++// 主内容区域++.cgMain {++ display: flex;++ gap: 24px;++ margin-top: 24px;++}++++// 左侧边栏样式++.sidebar {++ width: 280px;++ flex-shrink: 0;++}++++.sidebarTitle {++ font-size: 16px;++ font-weight: 600;++ color: #2c3e50;++ margin-bottom: 16px;++ padding: 0 8px;++}++++// 组列表容器++.groupListContainer {++ background: white;++ border-radius: 16px;++ padding: 16px;++ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);++ border: 1px solid rgba(255, 255, 255, 0.3);++ backdrop-filter: blur(10px);++}++++// 组列表项++.groupItem {++ cursor: pointer;++ background: #fafbfc;++ border-radius: 12px;++ margin-bottom: 8px !important;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++ border: 2px solid transparent;++ padding: 16px !important;++ display: flex;++ flex-direction: column;++ align-items: flex-start;++ min-height: 70px;++ position: relative;++ overflow: hidden;++++ &::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);++ opacity: 0;++ transition: opacity 0.3s ease;++ }++++ &:hover {++ transform: translateY(-2px);++ box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);++ border-color: rgba(102, 126, 234, 0.3);++++ &::before {++ opacity: 1;++ }++ }++}++++.selected {++ background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;++ border-color: #667eea !important;++ box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);++++ &::before {++ opacity: 1;++ }++}++++// 组名称++.groupName {++ font-weight: 600;++ font-size: 16px;++ color: #2c3e50;++ white-space: nowrap;++ overflow: hidden;++ text-overflow: ellipsis;++ width: 100%;++ margin-bottom: 8px;++ z-index: 2;++ position: relative;++}++++// 描述和类型信息++.descTypeInfo {++ display: flex;++ justify-content: space-between;++ align-items: center;++ width: 100%;++ z-index: 2;++ position: relative;++++ span:first-child {++ font-size: 13px;++ color: #7f8c8d;++ line-height: 1.4;++ flex: 1;++ overflow: hidden;++ text-overflow: ellipsis;++ white-space: nowrap;++ margin-right: 8px;++ }++}++++// 类型标签++.typeTag {++ display: inline-flex;++ align-items: center;++ padding: 4px 8px;++ border-radius: 8px;++ font-size: 12px;++ font-weight: 500;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++ box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);++ flex-shrink: 0;++}++++// 操作按钮组++.groupActions {++ display: flex;++ gap: 6px;++ position: absolute;++ right: 12px;++ top: 50%;++ transform: translateY(-50%);++ opacity: 0;++ transition: all 0.3s ease;++ z-index: 3;++ pointer-events: none;++}++++.groupItem.showActions .groupActions {++ opacity: 1;++ pointer-events: auto;++}++++.groupActionBtn {++ background: rgba(255, 255, 255, 0.95);++ border: 1px solid rgba(102, 126, 234, 0.3);++ border-radius: 6px;++ padding: 4px 8px;++ font-size: 12px;++ color: #667eea;++ cursor: pointer;++ transition: all 0.2s ease;++ font-weight: 500;++ display: flex;++ align-items: center;++ gap: 2px;++ backdrop-filter: blur(10px);++++ &:hover {++ background: #667eea;++ color: white;++ transform: scale(1.05);++ box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);++ }++}++++// 右侧内容区域++.contentArea {++ flex: 1;++ min-width: 0;++}++++.contentHeader {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 20px;++ background: white;++ padding: 20px 24px;++ border-radius: 16px;++ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);++ border: 1px solid rgba(255, 255, 255, 0.3);++++ .contentTitle {++ font-weight: 600;++ font-size: 18px;++ color: #2c3e50;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++ }++++ .contentActions {++ display: flex;++ gap: 12px;++ }++}++++// 素材列表容器++.materialListContainer {++ background: white;++ border-radius: 16px;++ padding: 24px;++ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);++ border: 1px solid rgba(255, 255, 255, 0.3);++ backdrop-filter: blur(10px);++ min-height: 400px;++}++++// 空状态样式++.emptyState {++ text-align: center;++ padding: 60px 20px;++ color: #7f8c8d;++++ .emptyIcon {++ font-size: 64px;++ color: #bdc3c7;++ margin-bottom: 16px;++++ :global(.anticon) {++ transition: all 0.3s ease;++++ &:hover {++ color: #667eea;++ transform: scale(1.1);++ }++ }++ }++++ h3 {++ margin: 0 0 8px 0;++ color: #2c3e50;++ font-size: 18px;++ font-weight: 600;++ }++++ p {++ color: #7f8c8d;++ margin-bottom: 24px;++ font-size: 14px;++ line-height: 1.5;++ }++}++++// 素材卡片样式++.materialCard {++ background: white;++ border-radius: 12px;++ overflow: hidden;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++ border: 1px solid #f0f0f0;++ position: relative;++++ &:hover {++ transform: translateY(-4px);++ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);++ border-color: #667eea;++++ .cardActions {++ opacity: 1;++ transform: translateY(0);++ }++ }++++ .cardMain {++ cursor: pointer;++ }++++ .cardCover {++ width: 100%;++ height: 160px;++ object-fit: cover;++ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);++ }++++ .cardContent {++ padding: 16px;++++ .cardTitle {++ font-weight: 600;++ font-size: 16px;++ color: #2c3e50;++ margin: 0 0 8px 0;++ line-height: 1.3;++ display: -webkit-box;++ -webkit-line-clamp: 2;++ -webkit-box-orient: vertical;++ overflow: hidden;++ }++++ .cardDesc {++ color: #7f8c8d;++ font-size: 13px;++ line-height: 1.4;++ margin: 0 0 12px 0;++ display: -webkit-box;++ -webkit-line-clamp: 2;++ -webkit-box-orient: vertical;++ overflow: hidden;++ }++++ .cardMeta {++ display: flex;++ justify-content: space-between;++ align-items: center;++ font-size: 12px;++++ .typeLabel {++ color: #667eea;++ font-weight: 500;++ }++++ .statusLabel {++ padding: 2px 8px;++ border-radius: 4px;++ font-weight: 500;++++ &.generating {++ background: rgba(250, 173, 20, 0.1);++ color: #faad14;++ }++++ &.completed {++ background: rgba(82, 196, 26, 0.1);++ color: #52c41a;++ }++ }++ }++ }++++ .cardActions {++ position: absolute;++ top: 8px;++ right: 8px;++ opacity: 0;++ transform: translateY(-10px);++ transition: all 0.3s ease;++ z-index: 10;++++ .editButton {++ background: rgba(255, 255, 255, 0.9);++ border: none;++ border-radius: 6px;++ color: #667eea;++ font-size: 12px;++ padding: 4px 8px;++ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);++ backdrop-filter: blur(10px);++++ &:hover {++ background: rgba(255, 255, 255, 1);++ color: #5a6fd8;++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);++ }++++ :global(.anticon) {++ font-size: 12px;++ margin-right: 4px;++ }++ }++ }++}++++// 媒体卡片样式(弹窗中使用)++.mediaCard {++ background: #f7f8fa;++ border-radius: 8px;++ padding: 16px;++ cursor: pointer;++ transition: all 0.2s ease;++ border: 2px solid transparent;++ min-width: 120px;++ text-align: center;++ position: relative;++++ &:hover {++ border-color: #667eea;++ transform: translateY(-2px);++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);++ }++++ .cardContent {++ font-size: 14px;++ color: #2c3e50;++ font-weight: 500;++ }++}++++// 响应式设计++@media (max-width: 768px) {++ .cgMain {++ flex-direction: column;++ gap: 16px;++ }++++ .sidebar {++ width: 100%;++ }++++ .materialListContainer {++ padding: 16px;++ }++++ .contentHeader {++ padding: 16px;++ flex-direction: column;++ gap: 12px;++ align-items: stretch;++++ .contentActions {++ justify-content: center;++ }++ }++}++++// 全局样式覆盖++.materialContainer {++ :global {++ .ant-list-item {++ border: none !important;++ padding: 0 !important;++ }++++ .ant-card {++ border: none;++ border-radius: 12px;++ }++++ .ant-card-body {++ padding: 0;++ }++++ .ant-modal {++ .ant-modal-content {++ border-radius: 16px;++ overflow: hidden;++ }++++ .ant-modal-header {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border: none;++++ .ant-modal-title {++ color: white;++ font-weight: 600;++ }++ }++++ .ant-modal-close {++ color: white;++++ &:hover {++ color: rgba(255, 255, 255, 0.8);++ }++ }++ }++++ .ant-btn-primary {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border: none;++ border-radius: 8px;++ font-weight: 500;++ box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);++++ &:hover {++ background: linear-gradient(135deg, #5a6fd8 0%, #6a5a94 100%);++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);++ }++ }++++ .ant-form-item-label > label {++ font-weight: 600;++ color: #2c3e50;++ }++++ .ant-input,++ .ant-input-affix-wrapper,++ .ant-select-selector {++ border-radius: 8px;++ border: 1px solid #e0e6ed;++ transition: all 0.3s ease;++++ &:hover {++ border-color: #667eea;++ }++++ &:focus,++ &.ant-input-affix-wrapper-focused,++ &.ant-select-focused .ant-select-selector {++ border-color: #667eea;++ box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);++ }++ }++++ .ant-spin-container {++ min-height: 200px;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/DataStatisticsCore.tsxindex 00000000,00000000..6ca0f51fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/DataStatisticsCore.tsx@@@ -1,0 -1,0 +1,90 @@@++"use client";++++import styles from "./dataStatistics.module.scss";++import DataStatisticsHeader from "@/app/[lng]/dataStatistics/components/DataStatisticsHeader";++import { useDataStatisticsStore } from "@/app/[lng]/dataStatistics/useDataStatistics";++import { useShallow } from "zustand/react/shallow";++import { useEffect } from "react";++import { useAccountStore } from "@/store/account";++import DataStatisticsDetails from "@/app/[lng]/dataStatistics/components/DataStatisticsDetails";++import { Spin } from "antd";++import DataStatisticsTable from "@/app/[lng]/dataStatistics/components/DataStatisticsTable";++++export const DataStatisticsCore = () => {++ const {++ setChoosedGroupIds,++ setFilteredAccountList,++ choosedGroupIds,++ getStatistics,++ timeRangeValue,++ init,++ filteredAccountList,++ currentDetailType,++ sortingData,++ loading,++ accountSearchValue,++ } = useDataStatisticsStore(++ useShallow((state) => ({++ setChoosedGroupIds: state.setChoosedGroupIds,++ setFilteredAccountList: state.setFilteredAccountList,++ choosedGroupIds: state.choosedGroupIds,++ init: state.init,++ getStatistics: state.getStatistics,++ timeRangeValue: state.timeRangeValue,++ filteredAccountList: state.filteredAccountList,++ currentDetailType: state.currentDetailType,++ sortingData: state.sortingData,++ loading: state.loading,++ accountSearchValue: state.accountSearchValue,++ })),++ );++ const { accountGroupList, accountList } = useAccountStore(++ useShallow((state) => ({++ accountGroupList: state.accountGroupList,++ accountList: state.accountList,++ })),++ );++++ useEffect(() => {++ init();++ }, []);++++ // 数据明细切换,重新分拣数据++ useEffect(() => {++ sortingData();++ }, [currentDetailType, sortingData]);++++ // 获取数据统计++ useEffect(() => {++ getStatistics();++ }, [timeRangeValue, getStatistics, filteredAccountList]);++++ // 初始化选择所有账户组++ useEffect(() => {++ if (accountGroupList.length > 0) {++ setChoosedGroupIds(accountGroupList.map((group) => group.id));++ }++ }, [setChoosedGroupIds, accountGroupList]);++++ // 过滤账户++ useEffect(() => {++ setFilteredAccountList(++ accountList.filter((v) => {++ return (++ choosedGroupIds.includes(v.groupId) &&++ v.nickname.includes(accountSearchValue)++ );++ }),++ );++ }, [choosedGroupIds, accountList, accountSearchValue]);++++ return (++ <Spin spinning={loading}>++ <div className={styles.dataStatistics}>++ <DataStatisticsHeader />++ <DataStatisticsDetails />++ <DataStatisticsTable />++ </div>++ </Spin>++ );++};diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsDetails/dataStatisticsDetails.module.scssindex 00000000,00000000..3563493enew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsDetails/dataStatisticsDetails.module.scss@@@ -1,0 -1,0 +1,81 @@@++.dataStatisticsDetails {++ :global {++ .dataStatisticsDetails-head {++ display: flex;++ justify-content: space-between;++ margin: 30px 0;++++ h3 {++ position: relative;++ padding-left: 20px;++ &:after {++ content: "";++ display: block;++ position: absolute;++ top: 45%;++ transform: translateY(-50%);++ left: 0;++ width: 2px;++ height: 50%;++ background: var(--colorPrimary5);++ }++ }++ }++++ .dataStatisticsDetails-content {++ display: flex;++ gap: 15px;++ &-item {++ background: rgb(247, 250, 250);++ flex: 1;++ border-radius: 8px;++ box-sizing: border-box;++ padding: 15px;++ height: 105px;++ border: 1px solid transparent;++ cursor: pointer;++ &-title {++ margin-bottom: 5px;++ }++ &-count {++ font-size: var(--fs-lg);++ }++ &-yesterday {++ margin-top: 5px;++ background: rgb(237, 242, 242);++ display: inline-block;++ border-radius: 30px;++ padding: 2px 8px;++ font-size: var(--fs-xs);++ b {++ margin-left: 5px;++ }++ }++ &-icon {++ display: inline-block;++ margin-right: 10px;++ svg, {++ font-size: 18px;++ fill: var(--colorPrimary5);++ }++ }++ &:hover {++ opacity: 0.7;++ }++ &--active {++ background: #fff;++ border: 1px solid var(--colorPrimary5);++ .dataStatisticsDetails-content-item-title {++ color: var(--colorPrimary5);++ }++ @include triangle-indicator(12px, #fff, var(--colorPrimary5), 1px);++ }++ }++ }++++ #dataStatisticsEchartLine {++ width: 100%;++ height: 400px;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsDetails/index.tsxindex 00000000,00000000..2155a4a3new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsDetails/index.tsx@@@ -1,0 -1,0 +1,91 @@@++import { ForwardedRef, forwardRef, memo } from "react";++import styles from "./dataStatisticsDetails.module.scss";++import { useDataStatisticsStore } from "@/app/[lng]/dataStatistics/useDataStatistics";++import { useShallow } from "zustand/react/shallow";++import Icon from "@ant-design/icons";++import { DatePicker } from "antd";++import { Dayjs } from "dayjs";++import { useTransClient } from "@/app/i18n/client";++++export interface IDataStatisticsDetailsRef {}++++export interface IDataStatisticsDetailsProps {}++++const DataStatisticsDetails = memo(++ forwardRef(++ (++ {}: IDataStatisticsDetailsProps,++ ref: ForwardedRef<IDataStatisticsDetailsRef>,++ ) => {++ const {++ currentDetailType,++ dataDetails,++ setTimeRangeValue,++ setCurrentDetailType,++ timeRangeValue,++ } = useDataStatisticsStore(++ useShallow((state) => ({++ dataDetails: state.dataDetails,++ currentDetailType: state.currentDetailType,++ setCurrentDetailType: state.setCurrentDetailType,++ setTimeRangeValue: state.setTimeRangeValue,++ timeRangeValue: state.timeRangeValue,++ })),++ );++ const { t } = useTransClient("dataStatistics");++++ return (++ <div className={styles.dataStatisticsDetails}>++ <div className="dataStatisticsDetails-head">++ <h3>{t("dataDetails")}</h3>++ <div className="dataStatisticsDetails-head-rangePicker">++ <label>{t("timeRange")}</label>++ <DatePicker.RangePicker++ value={timeRangeValue}++ allowClear={false}++ onChange={(e) => {++ const dates = e as [Dayjs, Dayjs];++ setTimeRangeValue(dates);++ }}++ />++ </div>++ </div>++++ <div className="dataStatisticsDetails-content">++ {dataDetails.map((detail) => (++ <div++ key={detail.value}++ className={`dataStatisticsDetails-content-item ${++ currentDetailType === detail.value++ ? "dataStatisticsDetails-content-item--active"++ : ""++ }`}++ onClick={() => {++ setCurrentDetailType(detail.value);++ }}++ >++ <p className="dataStatisticsDetails-content-item-title">++ <span className="dataStatisticsDetails-content-item-icon">++ <Icon component={detail.icon} />++ </span>++ {detail.title}++ </p>++ <p className="dataStatisticsDetails-content-item-count">++ {detail.total}++ </p>++ <p className="dataStatisticsDetails-content-item-yesterday">++ {t("yesterdayIncrease")}++ <b>{detail.yesterday}</b>++ </p>++ </div>++ ))}++ </div>++++ <div id="dataStatisticsEchartLine" />++ </div>++ );++ },++ ),++);++++export default DataStatisticsDetails;diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsHeader/dataStatisticsHeader.module.scssindex 00000000,00000000..2c56f2a2new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsHeader/dataStatisticsHeader.module.scss@@@ -1,0 -1,0 +1,149 @@@++.dataStatisticsHeader {++ :global {++ .dataStatisticsHeader-top {++ display: flex;++ justify-content: space-between;++++ &-options {++ display: flex;++++ .ant-select {++ margin-right: 20px;++ }++ }++ }++++ .dataStatisticsHeader-accounts {++ display: flex;++ margin-top: 15px;++ height: 145px;++++ .dataStatisticsHeader-accountCount {++ background: rgb(247, 250, 250);++ width: 200px;++ box-sizing: border-box;++ padding: 10px 20px;++ border-radius: 8px;++ flex-shrink: 0;++++ &-title {++ display: flex;++ align-items: center;++ svg {++ margin-right: 5px;++ }++ }++ &-number {++ font-size: 26px;++ font-weight: bold;++ margin: 5px 0;++ }++++ .ant-tag {++ background: rgb(236, 240, 240);++ &:nth-of-type(1) {++ margin-bottom: 10px;++ svg {++ color: var(--success-color);++ }++ }++ &:nth-of-type(2) {++ svg {++ color: var(--warning-color);++ }++ }++ b {++ margin-left: 5px;++ display: inline-block;++ }++ }++ }++++ &-swiper {++ display: flex;++ align-items: center;++ background: rgb(247, 250, 250);++ width: 100%;++ min-width: 0;++ height: 100%;++ border-radius: 8px;++ margin-left: 20px;++++ .accounts-swiper-item {++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ width: 100%;++ padding: 0 15px;++ height: 100%;++ box-sizing: border-box;++ text-overflow: ellipsis;++ &-info {++ max-width: 100%;++ display: flex;++ align-items: center;++ overflow: hidden;++ text-overflow: ellipsis;++ margin-bottom: 10px;++ &-name {++ margin-left: 10px;++ white-space: nowrap;++ text-overflow: ellipsis;++ width: 100%;++ overflow: hidden;++ }++ }++ &-fans {++ color: var(--grayColor8);++ span {++ display: inline-block;++ margin-left: 20px;++ }++ }++ &-offline {++ background: rgb(237, 242, 242);++ padding: 2px 5px;++ font-size: var(--fs-xs);++ border-radius: 8px;++ .anticon {++ color: red;++ margin-right: 3px;++ }++ a {++ margin-left: 15px;++ }++ }++ &:after {++ content: '';++ position: absolute;++ top: 50%;++ transform: translateY(-50%);++ right: 0;++ width: 2px;++ height: 40%;++ background: rgb(230, 230, 230);++ }++ }++++ .swiper-slide:nth-of-type(4n) .accounts-swiper-item::after,++ .swiper-slide:last-of-type .accounts-swiper-item::after++ {++ display: none;++ }++++ button {++ width: 25px;++ height: 40px;++ }++++ .swiper {++ width: 100%;++ height: 100%;++ padding: 15px;++ box-sizing: border-box;++ }++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsHeader/index.tsxindex 00000000,00000000..286ca06fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsHeader/index.tsx@@@ -1,0 -1,0 +1,192 @@@++import { ForwardedRef, forwardRef, memo, useState } from "react";++import styles from "./dataStatisticsHeader.module.scss";++import AccountCount from "../../svgs/accountCount.svg";++import { Swiper, SwiperSlide } from "swiper/react";++import { useAccountStore } from "@/store/account";++import { useShallow } from "zustand/react/shallow";++import { Button, Empty, Input, Select, Skeleton, Tag, Tooltip } from "antd";++import { useDataStatisticsStore } from "@/app/[lng]/dataStatistics/useDataStatistics";++import {++ CheckCircleOutlined,++ ExclamationCircleOutlined,++ LeftOutlined,++ RightOutlined,++ WarningOutlined,++} from "@ant-design/icons";++import { Navigation } from "swiper/modules";++import "swiper/css";++import "swiper/css/navigation";++import AvatarPlat from "@/components/AvatarPlat";++import AddAccountModal from "@/app/[lng]/accounts/components/AddAccountModal";++import { useTransClient } from "@/app/i18n/client";++++export interface IDataStatisticsHeaderRef {}++++export interface IDataStatisticsHeaderProps {}++++const DataStatisticsHeader = memo(++ forwardRef(++ (++ {}: IDataStatisticsHeaderProps,++ ref: ForwardedRef<IDataStatisticsHeaderRef>,++ ) => {++ const { accountGroupList } = useAccountStore(++ useShallow((state) => ({++ accountGroupList: state.accountGroupList,++ })),++ );++ const {++ choosedGroupIds,++ setChoosedGroupIds,++ filteredAccountList,++ setAccountSearchValue,++ } = useDataStatisticsStore(++ useShallow((state) => ({++ setChoosedGroupIds: state.setChoosedGroupIds,++ choosedGroupIds: state.choosedGroupIds,++ filteredAccountList: state.filteredAccountList,++ setAccountSearchValue: state.setAccountSearchValue,++ })),++ );++ const [addAccountModalOpen, setAddAccountModalOpen] = useState(false);++ const { t } = useTransClient("dataStatistics");++++ return (++ <div className={styles.dataStatisticsHeader}>++ {/* 添加账号弹窗 */}++ <AddAccountModal++ open={addAccountModalOpen}++ onClose={() => setAddAccountModalOpen(false)}++ onAddSuccess={() => setAddAccountModalOpen(false)}++ // targetGroupId={targetSpaceId}++ // showSpaceSelector={!targetSpaceId}++ // autoTriggerPlatform={targetPlatform}++ />++++ <div className="dataStatisticsHeader-top">++ <h2>{t("accountData")}</h2>++ <div className="dataStatisticsHeader-top-options">++ <Select++ mode="multiple"++ value={choosedGroupIds}++ style={{ width: "220px" }}++ options={accountGroupList}++ fieldNames={{ value: "id", label: "name" }}++ placeholder={t("selectSpace")}++ maxTagCount={1}++ onChange={(value) => {++ setChoosedGroupIds(value);++ }}++ />++ <Input.Search++ style={{ width: "300px" }}++ placeholder={t("inputAccountName")}++ allowClear++ onSearch={(value) => {++ setAccountSearchValue(value);++ }}++ />++ </div>++ </div>++++ <div className="dataStatisticsHeader-accounts">++ {filteredAccountList.length === 0 ? (++ <>++ <Empty++ style={{ width: "100%", height: "100%" }}++ description={t("noAccount")}++ />++ </>++ ) : (++ <>++ <div className="dataStatisticsHeader-accountCount">++ <div className="dataStatisticsHeader-accountCount-title">++ <AccountCount />++ {t("totalAccount")}++ </div>++ <div className="dataStatisticsHeader-accountCount-number">++ {filteredAccountList.length}++ </div>++ <Tag bordered={false} icon={<CheckCircleOutlined />}>++ {t("online")}{" "}++ <b>++ {filteredAccountList.filter((v) => v.status === 1).length}++ </b>++ </Tag>++ <br />++ <Tag bordered={false} icon={<WarningOutlined />}>++ {t("offline")}{" "}++ <b>++ {filteredAccountList.filter((v) => v.status === 0).length}++ </b>++ </Tag>++ </div>++++ <div className="dataStatisticsHeader-accounts-swiper">++ <Button className="swiper-prev" icon={<LeftOutlined />} />++++ {accountGroupList.length === 0 ? (++ <Skeleton active />++ ) : (++ <Swiper++ modules={[Navigation]}++ slidesPerView={4}++ slidesPerGroup={4}++ navigation={{++ prevEl: ".swiper-prev",++ nextEl: ".swiper-next",++ }}++ >++ {filteredAccountList.map((account) => {++ return (++ <SwiperSlide key={account.id}>++ <div className="accounts-swiper-item">++ <div className="accounts-swiper-item-info">++ <AvatarPlat account={account} size="large" />++ <Tooltip title={account.nickname}>++ <div className="accounts-swiper-item-info-name">++ {account.nickname}++ </div>++ </Tooltip>++ </div>++++ {account.status === 1 ? (++ <div className="accounts-swiper-item-fans">++ {t("fansCount")}{" "}++ <span>{account.fansCount}</span>++ </div>++ ) : (++ <div className="accounts-swiper-item-offline">++ <span>++ <ExclamationCircleOutlined />++ {t("loginFailed")}++ </span>++ <a++ onClick={(e) => {++ e.preventDefault();++ setAddAccountModalOpen(true);++ }}++ >++ {t("relogin")}++ </a>++ </div>++ )}++ </div>++ </SwiperSlide>++ );++ })}++ </Swiper>++ )}++++ <Button className="swiper-next" icon={<RightOutlined />} />++ </div>++ </>++ )}++ </div>++ </div>++ );++ },++ ),++);++++export default DataStatisticsHeader;diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsTable/dataStatisticsTable.module.scssindex 00000000,00000000..35126f16new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsTable/dataStatisticsTable.module.scss@@@ -1,0 -1,0 +1,10 @@@++.dataStatisticsTable {++ margin-top: 20px;++ :global {++ .ant-table-thead {++ .ant-table-cell {++ padding: 10px 16px;++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsTable/index.tsxindex 00000000,00000000..55dfa404new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/components/DataStatisticsTable/index.tsx@@@ -1,0 -1,0 +1,127 @@@++import React, { ForwardedRef, forwardRef, memo, useMemo } from "react";++import styles from "./dataStatisticsTable.module.scss";++import { Table } from "antd";++import type { TableProps } from "antd";++import {++ StatisticsPeriodItems,++ StatisticsPeriodItems2,++} from "@/api/types/dataStatistics";++import { useDataStatisticsStore } from "@/app/[lng]/dataStatistics/useDataStatistics";++import { useShallow } from "zustand/react/shallow";++import { useAccountStore } from "@/store/account";++import AvatarPlat from "@/components/AvatarPlat";++++export interface IDataStatisticsTableRef {}++++export interface IDataStatisticsTableProps {}++++const DataStatisticsTable = memo(++ forwardRef(++ (++ {}: IDataStatisticsTableProps,++ ref: ForwardedRef<IDataStatisticsTableRef>,++ ) => {++ const { originData, dataDetails } = useDataStatisticsStore(++ useShallow((state) => ({++ originData: state.originData,++ dataDetails: state.dataDetails,++ })),++ );++ const { accountList } = useAccountStore(++ useShallow((state) => ({++ accountList: state.accountList,++ })),++ );++++ // key=uid, value=该账号对应的数据,此数据是累加的值++ const data = useMemo(() => {++ const d: { [key: string]: Partial<StatisticsPeriodItems2> } = {};++++ originData?.items?.map((v) => {++ if (!d[v.uid]) {++ d[v.uid] = {++ commentCount: 0,++ followingCount: 0,++ likeCount: 0,++ fansCount: 0,++ readCount: 0,++ collectCount: 0,++ forwardCount: 0,++ workCount: 0,++ };++ }++ // 累加该账号的各项数据++ v.items?.map((item) => {++ d[v.uid]!.commentCount! += item.commentCount || 0;++ d[v.uid]!.followingCount! += item.followingCount || 0;++ d[v.uid]!.likeCount! += item.likeCount || 0;++ d[v.uid]!.fansCount! += item.fansCount || 0;++ d[v.uid]!.readCount! += item.readCount || 0;++ d[v.uid]!.collectCount! += item.collectCount || 0;++ d[v.uid]!.forwardCount! += item.forwardCount || 0;++ d[v.uid]!.workCount! += item.workCount || 0;++ });++ });++++ return d;++ }, [originData]);++++ const columns = useMemo(() => {++ const columns: TableProps<StatisticsPeriodItems>["columns"] = [++ {++ title: "账号",++ key: "uid",++ render: (text, item) => {++ const account = accountList.find((v) => v.uid === item.uid)!;++++ return (++ <div>++ <AvatarPlat account={account} />++ <span style={{ display: "inline-block", marginLeft: "10px" }}>++ {account?.nickname}++ </span>++ </div>++ );++ },++ },++ ];++++ dataDetails.map((v) => {++ columns.push({++ title: v.title,++ key: v.value,++ sorter: (a, b) => {++ // @ts-ignore++ const aValue = data[a.uid]?.[v.value] || 0;++ // @ts-ignore++ const bValue = data[b.uid]?.[v.value] || 0;++ return aValue - bValue;++ },++ render: (text, item) => {++ // @ts-ignore++ return <span>{data[item.uid]?.[v.value] || 0}</span>;++ },++ });++ });++++ return columns;++ }, [accountList, data, dataDetails]);++++ return (++ <div className={styles.dataStatisticsTable}>++ <Table<StatisticsPeriodItems>++ columns={columns}++ key="uid"++ dataSource={originData?.items?.map((item) => ({++ ...item,++ key: item.uid,++ }))}++ scroll={{ y: "400px" }}++ />++ </div>++ );++ },++ ),++);++++export default DataStatisticsTable;diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/dataStatistics.module.scssindex 00000000,00000000..efc7582anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/dataStatistics.module.scss@@@ -1,0 -1,0 +1,3 @@@++.dataStatistics {++ padding: 20px;++}diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/echart/drawDataStatisticsEchartLine.tsindex 00000000,00000000..06ba514bnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/echart/drawDataStatisticsEchartLine.ts@@@ -1,0 -1,0 +1,64 @@@++import * as echarts from "echarts";++import { useDataStatisticsStore } from "../useDataStatistics";++import { describeNumber } from "@/utils"; // 引入store++++type EChartsOption = echarts.EChartsOption;++++export default function drawDataStatisticsEchartLine(elId: string) {++ const chartDom = document.getElementById(elId)!;++ const chartDomAny = chartDom as any;++ // 先销毁已有实例,防止重复初始化报错++ if (echarts.getInstanceByDom(chartDom)) {++ echarts.dispose(chartDom);++ }++ const myChart = echarts.init(chartDom);++++ // 获取store中的echartData++ const { legend, xAxis, series } =++ useDataStatisticsStore.getState().echartData;++++ const option: EChartsOption = {++ tooltip: {++ trigger: "axis",++ },++ legend: {++ top: 25,++ data: legend,++ },++ grid: {++ left: "3%",++ right: "4%",++ bottom: "3%",++ containLabel: true,++ },++ xAxis: {++ type: "category",++ boundaryGap: false,++ data: xAxis,++ },++ yAxis: {++ type: "value",++ axisLabel: {++ formatter: function (value: number) {++ return describeNumber(value);++ },++ },++ },++ // @ts-ignore++ series: series,++ };++++ if (option) {++ myChart.setOption(option);++ }++++ // 先移除旧的resize事件监听,防止重复绑定++ if (chartDomAny._resizeHandler) {++ window.removeEventListener("resize", chartDomAny._resizeHandler);++ }++ function handleResize() {++ myChart.resize();++ }++ window.addEventListener("resize", handleResize);++ chartDomAny._resizeHandler = handleResize;++}diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/page.tsxindex 00000000,00000000..09d95e42new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/page.tsx@@@ -1,0 -1,0 +1,20 @@@++import { PageParams } from "@/app/globals";++import { useTranslation } from "@/app/i18n";++import { getMetadata } from "@/utils/general";++import { DataStatisticsCore } from "@/app/[lng]/dataStatistics/DataStatisticsCore";++++export async function generateMetadata({ params }: PageParams) {++ const { lng } = await params;++ const { t } = await useTranslation(lng, "dataStatistics");++ return await getMetadata(++ {++ title: t("title"),++ description: t("description"),++ },++ lng,++ );++}++++export default function Page() {++ return <DataStatisticsCore />;++}diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/svgs/accountCount.svgindex 00000000,00000000..9ac17d20new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/svgs/accountCount.svg@@@ -1,0 -1,0 +1,1 @@@++<svg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'><g id='Group 4096'><rect id='Rectangle 165' width='18' height='18' rx='4' fill='#FF7800' fill-opacity='0.1'/><path id='Union' fill-rule='evenodd' clip-rule='evenodd' d='M4.91678 13.1861C4.91678 10.1054 6.67109 9.03566 8.21145 8.69336C7.82636 8.47942 7.48405 8.13712 7.3129 7.62366C6.67108 6.4256 7.14175 4.88524 8.25424 4.24342C9.36672 3.6016 10.8215 4.02948 11.3778 5.27033C11.9768 6.51118 11.5489 8.05154 10.3508 8.69336C11.8912 9.03566 13.6455 10.1481 13.6455 13.1861C13.6455 13.9991 12.6614 13.9991 9.28115 13.9991C5.94369 13.9991 4.91678 13.9991 4.91678 13.1861ZM11.5917 8.3504C11.4633 8.43597 11.5061 8.60712 11.6344 8.64991C12.9609 9.035 14.3301 10.0619 14.544 12.3725C14.544 12.458 14.6296 12.5008 14.7152 12.5008C15.2714 12.4152 15.4854 12.2441 15.4854 11.9018C15.4854 9.67682 14.3301 8.6927 13.1748 8.3504C13.0464 8.30761 13.0464 8.13646 13.132 8.05088C13.9022 7.45185 14.1161 6.38216 13.6883 5.48361C13.3887 4.84179 12.7897 4.49949 12.1907 4.41391C12.0623 4.41391 11.9767 4.54228 12.0623 4.67064C12.1051 4.75622 12.1479 4.83109 12.1907 4.90597C12.2335 4.98085 12.2763 5.05573 12.319 5.14131C12.8325 6.25379 12.533 7.623 11.5917 8.3504ZM7.05614 8.3504C7.1845 8.43597 7.14172 8.60712 7.01335 8.64991C5.72972 9.035 4.3605 10.0619 4.10378 12.3725C4.10378 12.458 4.0182 12.5008 3.93263 12.5008C3.37638 12.4152 3.16244 12.2441 3.16244 11.9018C3.16244 9.67682 4.31772 8.6927 5.47299 8.3504C5.60135 8.30761 5.60135 8.13646 5.51578 8.05088C4.74559 7.45185 4.53166 6.38216 4.95953 5.48361C5.25905 4.84179 5.85808 4.4567 6.45711 4.41391C6.58547 4.41391 6.67105 4.54228 6.58547 4.67064C6.54269 4.75622 6.4999 4.83109 6.45711 4.90597C6.41432 4.98085 6.37153 5.05573 6.32875 5.14131C5.81529 6.25379 6.11481 7.623 7.05614 8.3504Z' fill='#FF7800'/></g></svg>diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/svgs/collectCount.svgindex 00000000,00000000..96b75f29new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/svgs/collectCount.svg@@@ -1,0 -1,0 +1,1 @@@++<svg width='24' height='24' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'><g id='Frame 3984'><path id='Vector' d='M3.41383 10C3.21949 10 3.02515 9.94231 2.86026 9.82115C2.5658 9.61346 2.42447 9.26154 2.48336 8.91539L2.84259 6.85C2.84848 6.82692 2.8367 6.79808 2.81903 6.78654L1.28787 5.32692C1.02875 5.07885 0.934523 4.71538 1.04642 4.375C1.15831 4.03462 1.45276 3.79231 1.812 3.74039L3.92618 3.44038C3.94974 3.43462 3.9733 3.42308 3.98507 3.4L4.93322 1.51923C5.09223 1.20192 5.42202 1 5.78125 1C6.14637 1 6.47027 1.19615 6.62928 1.51923L7.57742 3.4C7.5892 3.42308 7.61276 3.43462 7.63632 3.44038L9.7505 3.74039C10.1097 3.79231 10.4042 4.03462 10.5161 4.375C10.628 4.71538 10.5338 5.07885 10.2746 5.32692L8.74347 6.78654C8.7258 6.80385 8.71991 6.82692 8.71991 6.85L9.07914 8.91539C9.13803 9.26731 8.9967 9.61346 8.70224 9.82115C8.40779 10.0288 8.025 10.0577 7.70698 9.89038L5.81658 8.91539C5.79303 8.90385 5.76947 8.90385 5.74591 8.91539L3.85552 9.89038C3.71418 9.96538 3.56695 10 3.41383 10Z' fill='#a66ae4'/></g></svg>diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/svgs/fansCount.svgindex 00000000,00000000..2ca82343new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/svgs/fansCount.svg@@@ -1,0 -1,0 +1,1 @@@++<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1757680278444" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5392" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"><path d="M778.24 931.84c-71.68 23.893333-184.32 27.306667-307.2 27.306667-235.52 0-416.426667-27.306667-416.426667-98.986667 0-133.12 122.88-249.173333 300.373334-286.72-102.4-47.786667-160.426667-163.84-136.533334-276.48C242.346667 184.32 341.333333 102.4 453.973333 102.4c112.64 0 208.213333 78.506667 235.52 191.146667 23.893333 112.64-27.306667 228.693333-129.706666 276.48 27.306667 6.826667 54.613333 13.653333 81.92 23.893333-27.306667 23.893333-40.96 58.026667-40.96 95.573333-3.413333 122.88 112.64 197.973333 177.493333 242.346667z m-27.306667-334.506667c27.306667 0 51.2 13.653333 68.266667 34.133334 17.066667-20.48 40.96-34.133333 68.266667-34.133334 51.2 0 92.16 40.96 92.16 95.573334 0 105.813333-116.053333 163.84-153.6 197.973333l-3.413334 3.413333-6.826666-6.826666c-37.546667-34.133333-153.6-88.746667-153.6-197.973334 0-51.2 40.96-92.16 88.746666-92.16z" p-id="5393"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/svgs/forwardCount.svgindex 00000000,00000000..8833c830new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/svgs/forwardCount.svg@@@ -1,0 -1,0 +1,1 @@@++<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1757680365284" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7235" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"><path d="M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z" p-id="7236"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/dataStatistics/useDataStatistics.tsxindex 00000000,00000000..8358ec0fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/dataStatistics/useDataStatistics.tsx@@@ -1,0 -1,0 +1,318 @@@++import { create } from "zustand/index";++import { combine } from "zustand/middleware";++import { SocialAccount } from "@/api/types/account.type";++import FansCount from "./svgs/fansCount.svg";++import CollectCount from "./svgs/collectCount.svg";++import ForwardCount from "./svgs/forwardCount.svg";++import {++ HeartFilled,++ VideoCameraFilled,++ MessageFilled,++} from "@ant-design/icons";++import dayjs, { Dayjs } from "dayjs";++import { getStatisticsPeriodApi } from "@/api/dataStatistics";++import { StatisticsPeriodModel } from "@/api/types/dataStatistics";++import { message } from "antd";++import drawDataStatisticsEchartLine from "@/app/[lng]/dataStatistics/echart/drawDataStatisticsEchartLine";++import { directTrans } from "@/app/i18n/client";++import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";++++export interface IDataStatisticsStore {++ // 当前选择的账户组IDs++ choosedGroupIds: string[];++ // 过滤之后的账户++ filteredAccountList: SocialAccount[];++ // 数据明细++ dataDetails: {++ title: string;++ value: string;++ icon: any;++ // 总数++ total: number;++ // 昨日数++ yesterday: number;++ }[];++ // 当前选择的明细类型++ currentDetailType: string;++ // 账号搜索value++ accountSearchValue: string;++ // 日期范围++ timeRangeValue: [Dayjs, Dayjs];++ // 源数据++ originData?: StatisticsPeriodModel;++ // loading++ loading: boolean;++ // echart 数据,直接适配 ECharts 格式++ echartData: {++ legend: string[];++ xAxis: string[];++ series: {++ name: string;++ type: string;++ data: number[];++ }[];++ };++}++++const state: IDataStatisticsStore = {++ accountSearchValue: "",++ choosedGroupIds: [],++ filteredAccountList: [],++ dataDetails: [],++ currentDetailType: "",++ timeRangeValue: [dayjs().subtract(7, "day"), dayjs()],++ loading: false,++ originData: undefined,++ echartData: {++ legend: [],++ xAxis: [],++ series: [],++ },++};++++export const useDataStatisticsStore = create(++ combine(++ {++ ...state,++ },++ (set, get) => {++ const methods = {++ async init() {++ const dataDetails = [++ {++ title: directTrans("dataStatistics", "growthFansCount"),++ value: "fansCount",++ icon: FansCount,++ total: 0,++ yesterday: 0,++ },++ {++ title: directTrans("dataStatistics", "readCount"),++ value: "readCount",++ icon: VideoCameraFilled,++ total: 0,++ yesterday: 0,++ },++ {++ title: directTrans("dataStatistics", "commentCount"),++ value: "commentCount",++ icon: MessageFilled,++ total: 0,++ yesterday: 0,++ },++ {++ title: directTrans("dataStatistics", "likeCount"),++ value: "likeCount",++ icon: HeartFilled,++ total: 0,++ yesterday: 0,++ },++ {++ title: directTrans("dataStatistics", "collectCount"),++ value: "collectCount",++ icon: CollectCount,++ total: 0,++ yesterday: 0,++ },++ {++ title: directTrans("dataStatistics", "forwardCount"),++ value: "forwardCount",++ icon: ForwardCount,++ total: 0,++ yesterday: 0,++ },++ ];++++ set({++ dataDetails,++ currentDetailType: dataDetails[0].value,++ });++ },++++ // 获取数据统计++ async getStatistics() {++ if (get().filteredAccountList.length === 0) {++ return;++ }++++ set({++ loading: true,++ });++ // 过滤掉无效的account和account.type++ const validAccounts = get().filteredAccountList.filter(++ (account) => account && account.type && account.uid,++ );++ const res = await getStatisticsPeriodApi({++ startDate: get().timeRangeValue[0].format("YYYY-MM-DD"),++ endDate: get().timeRangeValue[1].format("YYYY-MM-DD"),++ queries: validAccounts.map((account) => ({++ platform: account.type,++ uid: account.uid,++ })),++ });++ set({++ loading: false,++ });++++ if (!res || !res.data) {++ message.error("获取数据统计失败,请稍后重试");++ return;++ }++ set({++ originData: res.data,++ });++++ methods.sortingData();++ },++++ // 分拣数据++ sortingData() {++ const data = get().originData;++++ if (!data) return;++++ // 1. 汇总各指标总数++ const metrics = get().dataDetails.map((e) => e.value);++ const totals: Record<string, number> = {};++ metrics.forEach((m) => (totals[m] = 0));++++ data.groupedByDate.forEach((day) => {++ day.records.forEach((rec) => {++ metrics.forEach((m) => {++ // @ts-ignore++ totals[m] += rec[m] ?? 0;++ });++ });++ });++++ set({++ dataDetails: get().dataDetails.map((item) => ({++ ...item,++ total: totals[item.value] ?? 0,++ })),++ });++++ // 2. 统计前一天数据++ const endDate = get().timeRangeValue[1].format("YYYY-MM-DD");++ const prevDay = dayjs(endDate)++ .subtract(1, "day")++ .format("YYYY-MM-DD");++ const prevDayData = data.groupedByDate.find(++ (d) => d.date === prevDay,++ );++ const yesterdayTotals: Record<string, number> = {};++ if (prevDayData) {++ const metrics = get().dataDetails.map((e) => e.value);++ metrics.forEach((m) => (yesterdayTotals[m] = 0));++ prevDayData.records.forEach((rec) => {++ metrics.forEach((m) => {++ // @ts-ignore++ yesterdayTotals[m] += rec[m] ?? 0;++ });++ });++ }++++ // 3. 更新 dataDetails++ set({++ dataDetails: get().dataDetails.map((item) => ({++ ...item,++ yesterday:++ prevDayData && typeof yesterdayTotals[item.value] === "number"++ ? yesterdayTotals[item.value]++ : item.yesterday,++ })),++ });++++ // 4. 生成 ECharts 适配数据++ const currentField = get().currentDetailType;++++ // 日期++ const dates = Array.from(++ new Set(data.groupedByDate.map((e) => e.date)),++ ).sort();++ const dateIndex: Record<string, number> = {};++ dates.forEach((d, i) => (dateIndex[d] = i));++++ // 平台++ const platformSet = new Set<string>();++ data.groupedByDate.forEach((g) =>++ g.records.forEach((r) => platformSet.add(r.platform)),++ );++ const platforms = Array.from(platformSet).sort() as PlatType[];++++ // 初始化矩阵++ const chartData: Record<string, number[]> = {};++ platforms.forEach(++ (p) => (chartData[p] = Array(dates.length).fill(0)),++ );++++ // 填充数据++ data.groupedByDate.forEach((g) => {++ const dIdx = dateIndex[g.date];++ g.records.forEach((r) => {++ const p = r.platform;++ if (chartData[p]) {++ // @ts-ignore++ chartData[p][dIdx] = r[currentField] ?? 0;++ }++ });++ });++++ // 组装 ECharts 格式++ const legend = platforms.map(++ (v) => AccountPlatInfoMap.get(v)?.name || v,++ );++ const xAxis = dates;++ const series = platforms.map((p) => ({++ name: AccountPlatInfoMap.get(p)?.name || p,++ type: "line",++ data: chartData[p],++ }));++++ set({++ echartData: {++ legend,++ xAxis,++ series,++ },++ });++++ drawDataStatisticsEchartLine("dataStatisticsEchartLine");++ },++++ // 设置 timeRangeValue++ setTimeRangeValue(timeRangeValue: [Dayjs, Dayjs]) {++ set({++ timeRangeValue,++ });++ },++ // 设置 currentDetailType++ setCurrentDetailType(currentDetailType: string) {++ set({++ currentDetailType,++ });++ },++ // 设置选择账户组IDs++ setChoosedGroupIds(choosedGroupIds: string[]) {++ set({++ choosedGroupIds,++ });++ },++ // 设置过滤之后的账户++ setFilteredAccountList(filteredAccountList: SocialAccount[]) {++ set({++ filteredAccountList,++ });++ },++ // 设置 accountSearchValue++ setAccountSearchValue(accountSearchValue: string) {++ set({++ accountSearchValue,++ });++ },++ };++++ return methods;++ },++ ),++);diff --cc project/aitoearn-web/src/app/[lng]/forgot-password/forgot-password.module.cssindex 00000000,00000000..7f8090cenew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/forgot-password/forgot-password.module.css@@@ -1,0 -1,0 +1,112 @@@++.container {++ min-height: 100vh;++ display: flex;++ justify-content: center;++ align-items: center;++ background-color: var(--background-color);++ padding: 20px;++}++++.box {++ width: 100%;++ max-width: 420px;++ padding: 32px;++ background: var(--card-background);++ border-radius: 16px;++ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);++}++++.title {++ font-size: 28px;++ color: var(--text-color);++ text-align: center;++ margin-bottom: 32px;++ font-weight: 600;++}++++.form {++ display: flex;++ flex-direction: column;++ gap: 20px;++}++++.inputGroup {++ position: relative;++}++++.input {++ width: 100%;++ padding: 12px 16px;++ border: 1px solid var(--border-color);++ border-radius: 8px;++ font-size: 16px;++ transition: all 0.3s;++ background: var(--card-background);++}++++.input:focus {++ outline: none;++ border-color: var(--theColor5);++ box-shadow: 0 0 0 2px rgba(216, 181, 245, 0.1);++}++++.input::placeholder {++ color: var(--grayColor6);++}++++.submitButton {++ height: 44px !important;++ font-size: 16px !important;++ font-weight: 500 !important;++ border-radius: 8px !important;++ background: var(--theColor5) !important;++ border-color: var(--theColor5) !important;++ transition: all 0.3s !important;++}++++.submitButton:hover {++ background: var(--theColor6) !important;++ border-color: var(--theColor6) !important;++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(216, 181, 245, 0.2);++}++++.submitButton:active {++ transform: scale(0.98);++}++++.links {++ margin-top: 24px;++ text-align: center;++}++++.link {++ color: var(--theColor5);++ text-decoration: none;++ transition: color 0.3s;++}++++.link:hover {++ color: var(--theColor6);++ text-decoration: underline;++}++++/* 移动端适配 */++@media (max-width: 480px) {++ .box {++ padding: 24px;++ }++++ .title {++ font-size: 24px;++ margin-bottom: 24px;++ }++++ .input {++ padding: 10px 14px;++ }++++ .submitButton {++ height: 40px !important;++ }++}diff --cc project/aitoearn-web/src/app/[lng]/forgot-password/page.tsxindex 00000000,9a563c58..9a563c58mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/forgot-password/page.tsx+++ b/project/aitoearn-web/src/app/[lng]/forgot-password/page.tsxdiff --cc project/aitoearn-web/src/app/[lng]/healthz/page.tsxindex 00000000,db02fc88..db02fc88mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/healthz/page.tsx+++ b/project/aitoearn-web/src/app/[lng]/healthz/page.tsxdiff --cc project/aitoearn-web/src/app/[lng]/hotContent/HotContentCore.tsxindex 00000000,00000000..fc2e8780new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/HotContentCore.tsx@@@ -1,0 -1,0 +1,49 @@@++"use client";++import styles from "./hotContent.module.scss";++import HotContentSidebar from "@/app/[lng]/hotContent/components/HotContentSidebar";++import HotContent from "@/app/[lng]/hotContent/components/HotContent";++import { useHotContent } from "@/app/[lng]/hotContent/useHotContent";++import { useShallow } from "zustand/react/shallow";++import { HotType } from "@/app/[lng]/hotContent/hotContent.enum";++import HotEvent from "@/app/[lng]/hotContent/components/HotEvent";++import HotFeatures from "@/app/[lng]/hotContent/components/HotFeatures";++import HotTitle from "@/app/[lng]/hotContent/components/HotTitle";++import { Spin } from "antd";++import { RankingContentsResponse } from "@/api/hot";++++export const HotContentCore = ({++ defaultHotContentData,++}: {++ defaultHotContentData?: RankingContentsResponse;++}) => {++ const { hotType, pageLoading } = useHotContent(++ useShallow((state) => ({++ hotType: state.hotType,++ pageLoading: state.pageLoading,++ })),++ );++++ return (++ <Spin++ spinning={pageLoading}++ size="large"++ wrapperClassName={styles.hotContent}++ >++ <div className="hotContent-wrapper">++ <HotContentSidebar />++++ <div className="hotContent-content">++ {hotType === HotType.hotContent ? (++ <HotContent defaultHotContentData={defaultHotContentData} />++ ) : hotType === HotType.hotEvent ? (++ <HotEvent />++ ) : hotType === HotType.hotFeatures ? (++ <HotFeatures />++ ) : (++ <HotTitle />++ )}++ </div>++ </div>++ </Spin>++ );++};diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotContent/hotContent.module.scssindex 00000000,00000000..483b4e93new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotContent/hotContent.module.scss@@@ -1,0 -1,0 +1,239 @@@++.hotContent {++ height: 100%;++ display: flex;++ flex-direction: column;++ :global {++ .hotContent-rankLabel {++ display: flex;++ gap: 10px;++ margin-bottom: 15px;++ &-item {++ padding: 4px 10px;++ cursor: pointer;++ border-radius: 6px;++ display: flex;++ align-items: center;++ .anticon {++ margin-right: 6px;++ font-size: 16px;++ }++ &--active {++ background: var(--colorPrimary5);++ color: #fff;++ }++ }++ }++++ .hotContent-options {++ margin-top: 15px;++ display: flex;++ justify-content: space-between;++ align-items: center;++ color: var(--grayColor6);++ &-select {++ display: flex;++ align-items: center;++ height: 32px;++ margin-right: 30px;++ &-label {++ height: 100%;++ display: flex;++ align-items: center;++ padding: 0 10px;++ border-radius: 3px 0 0 3px;++ background: var(--colorPrimary1);++ color: var(--colorPrimary5);++ }++ .ant-select-selector {++ border-bottom-left-radius: 0;++ border-top-left-radius: 0;++ }++ }++++ &-explain {++ .anticon {++ margin-left: 5px;++ }++ }++ }++++ .ant-spin-container, .ant-spin-nested-loading {++ height: 100%;++ min-height: 0;++ display: flex;++ flex-direction: column;++ }++++ .hotContent--wechat, .hotContent--bilibili {++ .baseInfo-cover {++ width: 110px !important;++ height: 75px !important;++ }++ }++ }++}++++.rankingTopthree {++ width: 30px;++ height: 30px;++ line-height: 30px;++ text-align: center;++ color: #fff;++ background: url("../../../../../images/bg-rank-index.png") no-repeat center / cover;++}++++.baseInfo {++ display: flex;++ & > img {++ object-fit: cover;++ width: 74px;++ height: 86px;++ flex-shrink: 0;++ border-radius: 4px;++ margin-right: 15px;++ }++++ :global {++ .baseInfo-right {++ display: flex;++ flex-direction: column;++ justify-content: space-between;++ &-title {++ @include omitText(2);++ }++ &-noTitle {++ color: var(--grayColor5);++ }++ &-author {++ display: flex;++ flex-wrap: wrap;++ align-items: center;++ font-size: var(--fs-xs);++ &-avatar {++ }++ &-name {++ margin: 0 10px 0 5px;++ }++ &-fans {++ margin-right: 10px;++ color: var(--grayColor7);++ }++ &-pubTime {++ color: var(--grayColor7);++ }++++ &:hover {++ .baseInfo-right-author-name {++ color: var(--colorPrimary5);++ }++ }++ }++ }++++ .baseInfo-cover {++++ }++ }++}++++.hotContent-table {++ height: 100%;++ box-sizing: border-box;++ overflow: auto;++ margin-top: 15px;++ position: relative;++ @include table-flex-container-with-selectors;++++ scrollbar-width: none;++ &::-webkit-scrollbar {++ display: none;++ }++++ :global {++ .infinite-scroll-component {++ overflow: visible !important;++ }++++ .ant-table-thead {++ position: sticky;++ top: 0;++ z-index: 10;++ .ant-table-cell {++ background: rgba(237, 242, 242);++ padding: 10px 16px;++ font-weight: 400 !important;++++ &:last-of-type {++ border-bottom-right-radius: 8px;++ }++ &:first-of-type {++ border-bottom-left-radius: 8px;++ }++ }++ }++++ .ant-table-tbody {++ .ant-table-cell {++ padding: 10px;++ }++ tr {++ cursor: pointer;++ }++ }++ }++}++++.anaAddCall {++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ :global {++ .anaAddCall-add {++ font-family: 'DIN';++ white-space: nowrap;++ .anticon {++ font-size: 14px;++ margin-right: 3px;++ color: red;++ }++ }++++ .anaAddCall-total {++ border: 1px solid var(--grayColor3);++ color: var(--grayColor8);++ padding: 1px 8px;++ border-radius: 30px;++ font-size: var(--fs-xs);++ font-family: 'DIN';++ white-space: nowrap;++ }++ }++}++.anaAddCall-highlight {++ color: var(--colorPrimary5);++ :global {++ .anaAddCall-total {++ color: var(--colorPrimary5);++ }++ }++}++++.baseInfoPopver {++ display: flex;++ flex-direction: column;++ width: 500px;++ height: 400px;++ :global {++ .baseInfoPopver-head {++++ }++ .baseInfoPopver-content {++ height: 100%;++ overflow: auto;++ }++ .baseInfoPopver-footer {++++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotContent/hotContentCommonWidget.tsxindex 00000000,00000000..9c827ee9new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotContent/hotContentCommonWidget.tsx@@@ -1,0 -1,0 +1,122 @@@++import styles from "@/app/[lng]/hotContent/components/HotContent/hotContent.module.scss";++import Icon from "@ant-design/icons";++import Uparrow from "@/app/[lng]/hotContent/svgs/uparrow.svg";++import { describeNumber } from "@/utils";++import { Avatar, Popover } from "antd";++import { useTransClient } from "@/app/i18n/client";++++export const AnaAddCall = ({++ add,++ total,++ highlight = false,++}: {++ add: number;++ total: number;++ highlight?: boolean;++}) => {++ const { t } = useTransClient("hot-content");++ return (++ <div++ className={`${styles.anaAddCall} ${highlight ? styles["anaAddCall-highlight"] : ""}`}++ >++ <div className="anaAddCall-add">++ {add ? (++ <>++ <Icon component={Uparrow} />++ {describeNumber(add)}++ </>++ ) : (++ "-"++ )}++ </div>++ <div className="anaAddCall-total">++ {t("total")}++ {describeNumber(total)}++ </div>++ </div>++ );++};++++export const SingleNumberCall = ({++ total,++ highlight = false,++}: {++ total: number;++ highlight?: boolean;++}) => {++ return (++ <p++ style={{++ textAlign: "center",++ fontSize: "var(--fs-md)",++ color: highlight ? "var(--colorPrimary5)" : "#3d4242",++ fontFamily: "DIN",++ fontWeight: 100,++ }}++ >++ {describeNumber(total)}++ </p>++ );++};++++export const HotContentBaseInfo = ({++ cover,++ title,++ avatar,++ nickname,++ fansCount,++ publishTime,++ onClick,++ coverPopoverContent,++}: {++ cover: string;++ title: string;++ avatar: string;++ nickname: string;++ fansCount?: number;++ publishTime: string;++ coverPopoverContent?: React.ReactNode;++ onClick?: () => void;++}) => {++ const { t } = useTransClient("hot-content");++ return (++ <div className={styles.baseInfo}>++ <Popover placement="right" content={coverPopoverContent}>++ <img className="baseInfo-cover" src={cover} />++ </Popover>++ <div className="baseInfo-right">++ {title ? (++ <div className="baseInfo-right-title" title={title}>++ {title}++ </div>++ ) : (++ <div className="baseInfo-right-noTitle">{t("noTitle")}</div>++ )}++++ <div++ className="baseInfo-right-author"++ onClick={(e) => {++ e.stopPropagation();++ if (onClick) onClick();++ }}++ >++ <Avatar++ className="baseInfo-right-author-avatar"++ src={avatar}++ size="small"++ />++ <p className="baseInfo-right-author-name">{nickname}</p>++ {fansCount && (++ <p className="baseInfo-right-author-fans">++ {t("fans")} {describeNumber(fansCount)}++ </p>++ )}++ <p className="baseInfo-right-author-pubTime">++ {t("publishTime")}++ {publishTime}++ </p>++ </div>++ </div>++ </div>++ );++};diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotContent/index.tsxindex 00000000,00000000..64e596fdnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotContent/index.tsx@@@ -1,0 -1,0 +1,570 @@@++import {++ ForwardedRef,++ forwardRef,++ memo,++ useCallback,++ useEffect,++ useMemo,++ useRef,++ useState,++} from "react";++import { useHotContent } from "@/app/[lng]/hotContent/useHotContent";++import { useShallow } from "zustand/react/shallow";++import HotContentLabel from "@/app/[lng]/hotContent/components/HotContentLabel";++import styles from "./hotContent.module.scss";++import { Popover, Select, Skeleton, Spin, Table } from "antd";++import Icon, { QuestionCircleOutlined } from "@ant-design/icons";++import type { TableProps } from "antd";++import {++ platformApi,++ PlatformRanking,++ RankingContent,++ RankingContentsResponse,++} from "@/api/hot";++import InfiniteScroll from "react-infinite-scroll-component";++import HotSvg from "../../svgs/hotContent.svg";++import ReadSvg from "./svgs/read.svg";++import {++ AnaAddCall,++ HotContentBaseInfo,++ SingleNumberCall,++} from "@/app/[lng]/hotContent/components/HotContent/hotContentCommonWidget";++import { useTransClient } from "@/app/i18n/client";++import CryptoJS from "crypto-js";++import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";++++export interface IHotContentRef {}++++export interface IHotContentProps {++ defaultHotContentData?: RankingContentsResponse;++}++++const icons = {++ wechat: [ReadSvg, HotSvg],++};++++const HotContent = memo(++ forwardRef(++ (++ { defaultHotContentData }: IHotContentProps,++ ref: ForwardedRef<IHotContentRef>,++ ) => {++ const {++ labelData,++ rankingData,++ currentRankCategory,++ datesData,++ twoMenuKey,++ setCurrentRankCategory,++ } = useHotContent(++ useShallow((state) => ({++ labelData: state.labelData,++ rankingData: state.rankingData,++ datesData: state.datesData,++ twoMenuKey: state.twoMenuKey,++ currentRankCategory: state.currentRankCategory,++ setCurrentRankCategory: state.setCurrentRankCategory,++ })),++ );++ const { t } = useTransClient("hot-content");++ const all = useRef<string>(t("all"));++ // 当前选中的标签++ const [labelValue, setLabelValue] = useState(all.current);++ // 当前选中的日期++ const [dateValue, setDateValue] = useState("");++ // 数据loading++ const [loading, setLoading] = useState(false);++ // 表格数据++ const [dataSource, setDataSource] = useState<RankingContent[]>([]);++ // 总数++ const [total, setTotal] = useState(0);++ const page = useRef(0);++ const [isReset, setIsReset] = useState(false);++++ // 获取当前选中的标签、日期、榜单++ const selectedLabelInfo = useMemo(() => {++ const platId = twoMenuKey.split("_")[1];++ return {++ // 所有榜单++ allRanking: rankingData[platId] || [],++ // 当前选择榜单++ ranking: (rankingData[platId]?.find(++ (v) => v.id === currentRankCategory,++ ) ?? {}) as PlatformRanking,++ labelData: labelData[platId] || [],++ datesData: datesData[platId] || [],++ };++ }, [labelData, rankingData, datesData, twoMenuKey, currentRankCategory]);++++ // 跳转到作者主页++ const goAuthorPage = useCallback(++ (data: RankingContent) => {++ let authorUrl = "";++ switch (selectedLabelInfo.ranking.platform.type) {++ case "douyin":++ authorUrl = `https://www.douyin.com/user/${data.secUid}`;++ break;++ case "xiaohongshu":++ authorUrl = `https://www.xiaohongshu.com/user/profile/${data.author.id}`;++ break;++ case "kuaishou":++ authorUrl = `https://kuaishou.cn/profile/${data.secUid}`;++ break;++ case "bilibili":++ authorUrl = `https://space.bilibili.com/${data.mid}`;++ break;++ case "shipinhao":++ break;++ }++ if (authorUrl) window.open(authorUrl, "_blank");++ },++ [selectedLabelInfo],++ );++++ // 热门内容的平台类型转换到本地枚举++ const getPlatEnum = (type: string) => {++ switch (type) {++ case "douyin":++ return {++ plat: PlatType.Douyin,++ };++ case "xiaohongshu":++ return {++ plat: PlatType.Xhs,++ };++ case "kuaishou":++ return {++ plat: PlatType.KWAI,++ };++ case "bilibili":++ return {++ plat: PlatType.BILIBILI,++ };++ case "shipinhao":++ return {++ plat: PlatType.WxSph,++ };++ case "wechat":++ return {++ plat: PlatType.WxGzh,++ };++ }++ };++++ const columns = useMemo(() => {++ const callParamsColumnsCommon = (title: string) => {++ return {++ width: 90,++ title: () => {++ return <p style={{ textAlign: "center" }}>{title}</p>;++ },++ };++ };++ const plat = selectedLabelInfo?.ranking?.platform?.type;++++ const anaAddColumns: TableProps<RankingContent>["columns"] = [++ ...(dataSource[1]?.anaAdd?.addCollectCount++ ? [++ {++ ...callParamsColumnsCommon(t("collections")),++ render: (text: string, data: RankingContent) => (++ <AnaAddCall++ add={data.anaAdd.addCollectCount!}++ total={data.anaAdd.useCollectCount!}++ />++ ),++ },++ ]++ : []),++ {++ ...callParamsColumnsCommon(t("shares")),++ render: (text, data) => (++ <AnaAddCall++ add={data.anaAdd.addShareCount}++ total={data.anaAdd.useShareCount}++ />++ ),++ },++ {++ ...callParamsColumnsCommon(t("comments")),++ render: (text, data) => (++ <AnaAddCall++ add={data.anaAdd.addCommentCount}++ total={data.anaAdd.useCommentCount}++ />++ ),++ },++ ...(dataSource[0]?.anaAdd?.addViewCount++ ? [++ {++ ...callParamsColumnsCommon(t("views")),++ render: (text: string, data: RankingContent) => (++ <AnaAddCall++ add={data.anaAdd.addViewCount!}++ total={data.anaAdd.useViewCount!}++ />++ ),++ },++ ]++ : []),++ {++ ...callParamsColumnsCommon(t("likes")),++ render: (text, data) => (++ <AnaAddCall++ highlight={plat !== "xiaohongshu"}++ add={data.anaAdd.addLikeCount}++ total={data.anaAdd.useLikeCount}++ />++ ),++ },++ ...(plat === "xiaohongshu"++ ? [++ {++ ...callParamsColumnsCommon(t("engagement")),++ render: (text: string, data: RankingContent) => (++ <AnaAddCall++ highlight={true}++ add={data.anaAdd.addInteractiveCount!}++ total={data.anaAdd.interactiveCount!}++ />++ ),++ },++ ]++ : []),++ ];++ // 视频号++ const wxSphColumns: TableProps<RankingContent>["columns"] = [++ {++ ...callParamsColumnsCommon(t("comments")),++ render: (text, data) => (++ <SingleNumberCall total={data.stats.commentCount} />++ ),++ },++ {++ ...callParamsColumnsCommon(t("shares")),++ render: (text, data) => (++ <SingleNumberCall total={data.shareCount!} />++ ),++ },++ {++ ...callParamsColumnsCommon(t("likes")),++ render: (text, data) => (++ <SingleNumberCall total={data.stats.likeCount} />++ ),++ },++ {++ ...callParamsColumnsCommon(t("recommend")),++ render: (text, data) => (++ <SingleNumberCall total={data.stats.likeCount} />++ ),++ },++ ];++ // 微信公众号++ const wxGzhColumns: TableProps<RankingContent>["columns"] = [++ ...(dataSource[1]?.stats.watchCount++ ? [++ {++ ...callParamsColumnsCommon(t("watch")),++ render: (text: string, data: RankingContent) => (++ <SingleNumberCall total={data.stats.watchCount} />++ ),++ },++ ]++ : []),++ ...(dataSource[1]?.stats.likeCount++ ? [++ {++ ...callParamsColumnsCommon(t("likes")),++ render: (text: string, data: RankingContent) => (++ <SingleNumberCall total={data.stats.likeCount} />++ ),++ },++ ]++ : []),++ ...(dataSource[1]?.shareCount++ ? [++ {++ ...callParamsColumnsCommon(t("shares")),++ render: (text: string, data: RankingContent) => (++ <SingleNumberCall total={data.shareCount!} />++ ),++ },++ ]++ : []),++ ...(dataSource[1]?.stats.viewCount++ ? [++ {++ ...callParamsColumnsCommon(t("views")),++ render: (text: string, data: RankingContent) => (++ <SingleNumberCall++ total={data.stats.viewCount}++ highlight={true}++ />++ ),++ },++ ]++ : []),++ ];++++ const columns: TableProps<RankingContent>["columns"] = [++ {++ title: t("rank"),++ dataIndex: "rankingPosition",++ key: "rankingPosition",++ width: 60,++ render: (text, data, ind) => (++ <>++ {ind <= 2 ? (++ <div className={styles.rankingTopthree}>{ind + 1}</div>++ ) : (++ <p style={{ width: "30px", textAlign: "center" }}>++ {ind + 1}++ </p>++ )}++ </>++ ),++ },++ {++ title: t("baseInfo"),++ dataIndex: "baseInfo",++ render: (text, data) => {++ const platInfo = getPlatEnum(++ selectedLabelInfo.ranking?.platform?.type,++ );++ const platConfig = AccountPlatInfoMap.get(++ platInfo?.plat ?? PlatType.Xhs,++ )!;++++ return (++ <HotContentBaseInfo++ // coverPopoverContent={++ // <div className={styles.baseInfoPopver}>++ // <div className="baseInfoPopver-head"></div>++ // <div className="baseInfoPopver-content"></div>++ // <div className="baseInfoPopver-footer"></div>++ // </div>++ // }++ title={data.title}++ avatar={data.author.avatar}++ publishTime={data.publishTime}++ fansCount={data.author.fansCount}++ nickname={data.author.name}++ cover={data.cover}++ onClick={() => {++ goAuthorPage(data);++ }}++ />++ );++ },++ },++ {++ title: () => <p style={{ textAlign: "center" }}>{t("category")}</p>,++ dataIndex: "category",++ key: "category",++ width: 120,++ render: (text, data) => (++ <div style={{ textAlign: "center" }}>++ <p>++ <b>{text}</b>++ </p>++ <p>{data.subCategory}</p>++ </div>++ ),++ },++++ ...(plat === "shipinhao"++ ? wxSphColumns++ : plat === "wechat"++ ? wxGzhColumns++ : anaAddColumns),++ ];++ return columns;++ }, [selectedLabelInfo, dataSource, t]);++++ const getTableData = useCallback(async () => {++ if (loading) return;++++ const res = await platformApi.getRankingContents(++ selectedLabelInfo.ranking.id,++ page.current,++ 20,++ labelValue === all.current ? "全部" : labelValue,++ dateValue,++ );++ page.current += 1;++ setDataSource((prevState) => {++ return [...prevState, ...(res?.data.items || [])];++ });++ setTotal(res?.data.meta.totalItems || 0);++ }, [selectedLabelInfo.ranking, labelValue, dateValue]);++++ // 当平台切换时,重置数据++ useEffect(() => {++ if (selectedLabelInfo.datesData.length > 0) {++ setDateValue(selectedLabelInfo.datesData[0].value);++ setLabelValue(all.current);++ setIsReset(true);++ }++ }, [selectedLabelInfo.datesData, twoMenuKey]);++++ // 请求列表数据++ useEffect(() => {++ if (isReset && selectedLabelInfo.ranking?.id) {++ page.current = 1;++ setDataSource([]);++ setLoading(true);++ getTableData().then(() => setLoading(false));++ setIsReset(false);++ }++ }, [++ labelValue,++ dateValue,++ selectedLabelInfo.datesData,++ selectedLabelInfo.ranking?.id,++ isReset,++ currentRankCategory,++ ]);++++ return (++ <div className={`${styles.hotContent}`}>++ {selectedLabelInfo.allRanking.length > 1 && (++ <div className="hotContent-rankLabel">++ {selectedLabelInfo.allRanking.map((v, i) => {++ const icon = (icons[v.platform.type as "wechat"] ?? [])[i];++++ return (++ <div++ className={`hotContent-rankLabel-item ${v.id === currentRankCategory ? "hotContent-rankLabel-item--active" : ""}`}++ key={v.id}++ onClick={() => {++ setCurrentRankCategory(v.id);++ setIsReset(true);++ }}++ >++ <Icon component={icon} />++ {v.name}++ </div>++ );++ })}++ </div>++ )}++++ <HotContentLabel++ labels={[all.current, ...(selectedLabelInfo.labelData ?? [])]}++ value={labelValue}++ onChange={(value) => {++ setLabelValue(value);++ setIsReset(true);++ }}++ />++++ <div className="hotContent-options">++ <div className="hotContent-options-select">++ <div className="hotContent-options-select-label">++ {t("dailyRank")}++ </div>++ <Select++ options={selectedLabelInfo.datesData.map((v) => ({++ label: v.showDate,++ value: v.value,++ }))}++ value={dateValue}++ onChange={(e) => {++ setDateValue(e);++ setIsReset(true);++ }}++ ></Select>++ </div>++++ <Popover++ content={++ <>++ <p>++ {t("updateFrequency")}:++ {selectedLabelInfo.ranking.updateFrequency}++ </p>++ <p>++ {t("statEndTime")}:{selectedLabelInfo.ranking.updateTime}++ </p>++ <p>++ {t("updateFrequency")}:{t("daily")}++ </p>++ <p>++ {t("sortRule")}:{t("sortRuleDesc")}++ </p>++ </>++ }++ placement="bottomLeft"++ >++ <div className="hotContent-options-explain">++ {t("dataDescription")}++ <QuestionCircleOutlined />++ </div>++ </Popover>++ </div>++++ <Spin spinning={loading}>++ <div++ className={`${styles["hotContent-table"]} hotContent--${selectedLabelInfo?.ranking?.platform?.type}`}++ id="hotContent-table"++ >++ <InfiniteScroll++ dataLength={dataSource.length}++ next={getTableData}++ hasMore={dataSource.length < total}++ loader={++ !loading ? <Skeleton active paragraph={{ rows: 1 }} /> : <></>++ }++ endMessage={<></>}++ scrollableTarget="hotContent-table"++ >++ <Table++ dataSource={defaultHotContentData?.items ?? dataSource}++ rowKey={(record) => record.id}++ columns={columns}++ pagination={false}++ onRow={(record) => {++ return {++ onClick: async () => {++ if (++ selectedLabelInfo.ranking.platform.type === "wechat"++ ) {++ setLoading(true);++ const res = await platformApi.getDetailUrl(++ record.photoId,++ );++ setLoading(false);++++ const key =++ CryptoJS.enc.Utf8.parse("cdxbxhs147258369");++ const encrypted = res?.data ?? "";++++ const decrypted = CryptoJS.AES.decrypt(++ encrypted,++ key,++ {++ mode: CryptoJS.mode.ECB,++ padding: CryptoJS.pad.Pkcs7,++ },++ );++ const result = CryptoJS.enc.Utf8.stringify(decrypted);++ window.open(result, "_blank");++ return;++ }++++ if (!record.url) return;++ window.open(record.url, "_blank");++ },++ };++ }}++ />++ </InfiniteScroll>++ </div>++ </Spin>++ </div>++ );++ },++ ),++);++++export default HotContent;diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotContent/svgs/read.svgindex 00000000,00000000..066be90anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotContent/svgs/read.svg@@@ -1,0 -1,0 +1,1 @@@++<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1758102669578" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4587" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"><path d="M979.222 415.474C894.954 332.02 776.31 192.004 509.958 192.004c-266.316 0-384.962 140.016-469.23 223.47-19.86 19.682-30.788 45.784-30.788 73.534 0 27.728 10.93 53.85 30.788 73.51 84.27 83.476 202.896 223.47 469.23 223.47 266.368 0 384.996-139.994 469.264-223.47 19.86-19.66 30.79-45.784 30.79-73.51C1010.01 461.256 999.082 435.156 979.222 415.474zM940.882 524.282C862.556 601.838 756.802 732 509.958 732c-246.81 0-352.564-130.164-430.89-207.718-9.548-9.468-14.8-22.01-14.8-35.276 0-13.288 5.252-25.806 14.8-35.252 78.344-77.578 184.098-207.764 430.89-207.764 246.826 0 352.58 130.186 430.924 207.764 9.55 9.446 14.802 21.966 14.802 35.252C955.684 502.272 950.432 514.812 940.882 524.282zM509.974 335.996c-84.868 0-153.928 68.652-153.928 152.988 0 84.358 69.06 153.01 153.928 153.01 84.872 0 153.93-68.652 153.93-153.01C663.904 404.648 594.846 335.996 509.974 335.996zM509.974 588.008c-54.912 0-99.6-44.428-99.6-99.024 0-54.574 44.69-98.978 99.6-98.978 54.912 0 99.6 44.404 99.6 98.978C609.576 543.58 564.888 588.008 509.974 588.008z" p-id="4588"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotContentLabel/hotContentLabel.module.scssindex 00000000,00000000..686d5adenew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotContentLabel/hotContentLabel.module.scss@@@ -1,0 -1,0 +1,39 @@@++.hotContentLabelWrapper {++ position: relative;++++ :global {++ .hotContentLabel {++ display: flex;++ gap: 10px;++ flex-wrap: wrap;++ padding-right: 35px;++++ .hotContentLabel-item {++ display: flex;++ align-items: center;++ cursor: pointer;++ padding: 4px 8px;++ border-radius: 6px;++++ .hotContentLabel-icon {++ width: 18px;++ border-radius: 3px;++ margin-right: 4px;++ }++++ &--active {++ background: var(--colorPrimary1);++ color: var(--colorPrimary5);++ }++ &:hover {++ color: var(--colorPrimary5);++ }++ }++ }++ .hotContentLabel-toggle {++ position: absolute;++ right: 0;++ top: 4px;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotContentLabel/index.tsxindex 00000000,00000000..fae79270new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotContentLabel/index.tsx@@@ -1,0 -1,0 +1,97 @@@++import {++ ForwardedRef,++ forwardRef,++ memo,++ useRef,++ useState,++ useLayoutEffect,++ CSSProperties,++} from "react";++import styles from "./hotContentLabel.module.scss";++import { useTransClient } from "@/app/i18n/client";++++export interface IHotContentLabelRef {}++++export interface IHotContentLabelProps {++ labels: string[];++ icons?: string[];++ value: string;++ onChange: (label: string) => void;++ style?: CSSProperties;++}++++const HotContentLabel = memo(++ forwardRef(++ (++ { labels, value, onChange, style, icons }: IHotContentLabelProps,++ ref: ForwardedRef<IHotContentLabelRef>,++ ) => {++ const listRef = useRef<HTMLUListElement>(null);++ const [expanded, setExpanded] = useState(false);++ const [showToggle, setShowToggle] = useState(false);++ const [collapsedHeight, setCollapsedHeight] = useState(0);++ const [fullHeight, setFullHeight] = useState(0);++ const { t } = useTransClient("hot-content");++++ useLayoutEffect(() => {++ const ul = listRef.current;++ if (ul) {++ const firstLi = ul.querySelector("li");++ if (firstLi) {++ const lineHeight = firstLi.getBoundingClientRect().height;++ setCollapsedHeight(lineHeight);++ setFullHeight(ul.scrollHeight);++ setShowToggle(ul.scrollHeight > lineHeight + 2);++ }++ }++ }, [labels]);++++ return (++ <div className={styles.hotContentLabelWrapper} style={style}>++ <ul++ className="hotContentLabel"++ ref={listRef}++ style={{++ maxHeight: expanded ? fullHeight : collapsedHeight,++ overflow: "hidden",++ transition: "max-height 0.3s cubic-bezier(0.4,0,0.2,1)",++ }}++ >++ {labels.map((label, i) => (++ <li++ key={label}++ className={`hotContentLabel-item ${++ label === value ? "hotContentLabel-item--active" : ""++ }`}++ title={label}++ onClick={() => onChange(label)}++ >++ {icons && icons[i] && (++ <img++ src={icons[i]}++ alt={label}++ className="hotContentLabel-icon"++ />++ )}++ {label}++ </li>++ ))}++ </ul>++ {showToggle && (++ <a++ className="hotContentLabel-toggle"++ onClick={(e) => {++ e.preventDefault();++ setExpanded((v) => !v);++ }}++ >++ {expanded ? t("collapse") : t("expand")}++ </a>++ )}++ </div>++ );++ },++ ),++);++++export default HotContentLabel;diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotContentSidebar/hotContentSidebar.module.scssindex 00000000,00000000..7b9eaa5anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotContentSidebar/hotContentSidebar.module.scss@@@ -1,0 -1,0 +1,8 @@@++.hotContentSidebar {++ height: 100%;++ :global {++ .ant-menu {++ height: 100%;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotContentSidebar/index.tsxindex 00000000,00000000..5f4f70e3new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotContentSidebar/index.tsx@@@ -1,0 -1,0 +1,161 @@@++import { ForwardedRef, forwardRef, memo, useEffect, useMemo } from "react";++import styles from "./hotContentSidebar.module.scss";++import React from "react";++import Icon from "@ant-design/icons";++import { Menu } from "antd";++import type { GetProp, MenuProps } from "antd";++import HotContentSvg from "../../svgs/hotContent.svg";++import HotEventSvg from "../../svgs/hotEvent.svg";++import HotFeaturesSvg from "../../svgs/hotFeatures.svg";++import HotTitleSvg from "../../svgs/hotTitle.svg";++import { HotType } from "@/app/[lng]/hotContent/hotContent.enum";++import { useShallow } from "zustand/react/shallow";++import { useHotContent } from "@/app/[lng]/hotContent/useHotContent";++import { useTransClient } from "@/app/i18n/client";++++type MenuItem = GetProp<MenuProps, "items">[number];++++export interface IHotContentSidebarRef {}++++export interface IHotContentSidebarProps {}++++const yikaOss = process.env.NEXT_PUBLIC_YIKA_OSS_HOST;++++const HotContentSidebar = memo(++ forwardRef(++ ({}: IHotContentSidebarProps, ref: ForwardedRef<IHotContentSidebarRef>) => {++ const {++ setHotType,++ hotType,++ hotContentPlatformList,++ twoMenuKey,++ setTwoMenuKey,++ init,++ hotTitlePlatformList,++ changeHotContentPlatform,++ } = useHotContent(++ useShallow((state) => ({++ setHotType: state.setHotType,++ hotType: state.hotType,++ hotContentPlatformList: state.hotContentPlatformList,++ setTwoMenuKey: state.setTwoMenuKey,++ twoMenuKey: state.twoMenuKey,++ init: state.init,++ hotTitlePlatformList: state.hotTitlePlatformList,++ changeHotContentPlatform: state.changeHotContentPlatform,++ })),++ );++ const { t } = useTransClient("hot-content");++++ const items = useMemo(() => {++ const items: MenuItem[] = [++ {++ key: HotType.hotContent,++ icon: <Icon component={HotContentSvg} />,++ label: <b>{t("hotContent")}</b>,++ children: hotContentPlatformList.map((platform) => ({++ key: `${HotType.hotContent}_${platform.id}`,++ label: platform.name,++ icon: (++ <img++ src={`${yikaOss}/${platform.icon}`}++ style={{ width: "18px" }}++ />++ ),++ })),++ },++ {++ key: HotType.hotEvent,++ icon: <Icon component={HotEventSvg} />,++ label: <b>{t("hotEvents")}</b>,++ },++ {++ key: HotType.hotFeatures,++ icon: <Icon component={HotFeaturesSvg} />,++ label: <b>{t("hotTopics")}</b>,++ children: [++ {++ key: "AIGC",++ label: "AIGC",++ },++ {++ key: "短剧",++ label: t("shortDrama"),++ },++ {++ key: "文旅",++ label: t("cultureTourism"),++ },++ {++ key: "内容出海",++ label: t("contentOverseas"),++ },++ ],++ },++ {++ key: HotType.hotTitle,++ icon: <Icon component={HotTitleSvg} />,++ label: <b>{t("viralTitles")}</b>,++ children: hotTitlePlatformList.map((platform) => ({++ key: `${HotType.hotTitle}_${platform.id}`,++ label: platform.name,++ icon: (++ <img++ src={`${yikaOss}/${platform.icon}`}++ style={{ width: "18px" }}++ />++ ),++ })),++ },++ ];++ return items;++ }, [hotContentPlatformList, hotTitlePlatformList, t]);++++ useEffect(() => {++ init();++ }, [init]);++++ return (++ <div className={styles.hotContentSidebar}>++ <Menu++ style={{ width: 180 }}++ defaultSelectedKeys={[hotType]}++ defaultOpenKeys={[++ HotType.hotContent,++ HotType.hotEvent,++ HotType.hotFeatures,++ HotType.hotTitle,++ ]}++ selectedKeys={twoMenuKey ? [twoMenuKey, hotType] : [hotType]}++ onClick={(e) => {++ const hotType = e["keyPath"][e["keyPath"].length - 1] as HotType;++ // 热门内容分类设置++ setHotType(hotType);++++ switch (hotType) {++ case HotType.hotContent:++ changeHotContentPlatform(e.key);++ break;++ case HotType.hotTitle:++ changeHotContentPlatform(e.key);++ break;++ }++++ if (e.keyPath.length === 2) {++ // 侧边栏二级菜单选择++ setTwoMenuKey(e.key);++ } else {++ setTwoMenuKey("");++ }++ }}++ items={items}++ mode="inline"++ inlineIndent={10}++ />++ </div>++ );++ },++ ),++);++++export default HotContentSidebar;diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.tsindex 00000000,00000000..62942344new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.ts@@@ -1,0 -1,0 +1,76 @@@++import * as echarts from "echarts";++import { HotValueHistory } from "@/api/types/hotTopic";++import { describeNumber } from "@/utils";++import { directTrans } from "@/app/i18n/client";++++type EChartsOption = echarts.EChartsOption;++++export default function drawHotEventEchartLine(++ elId: string,++ data: HotValueHistory[],++) {++ if (!data || data.length === 0) return;++++ const chartDom = document.getElementById(elId)!;++ if (!chartDom) return;++ if (echarts.getInstanceByDom(chartDom)) {++ echarts.dispose(chartDom);++ }++ const myChart = echarts.init(chartDom);++++ // 只有一个点时,设置上下各留 50% 空间++ let yMin, yMax;++ if (data.length === 1) {++ const v = data[0].hotValue;++ yMin = v * 0.5;++ yMax = v * 1.5;++ }++++ // 处理每个点的颜色++ const seriesData = data.map((item) => {++ if (item.hotValue === null || item.hotValue === undefined) {++ return {++ value: null,++ itemStyle: { color: "#a66ae4" },++ };++ }++ return item.hotValue;++ });++++ const option: EChartsOption = {++ grid: { left: 0, right: 0, top: 0, bottom: 0, containLabel: false },++ tooltip: {++ appendTo: "body",++ trigger: "axis",++ show: true,++ formatter: (params: any) => {++ const item = params[0];++ return `${item.axisValue}<br/>${directTrans("hot-content", "hotValue")}: ${describeNumber(item.data)}`;++ },++ },++ xAxis: {++ type: "category",++ data: data.map((item) => item.updateTime),++ show: false,++ boundaryGap: false,++ },++ yAxis: {++ type: "value",++ show: false,++ min: yMin,++ max: yMax,++ },++ series: [++ {++ type: "line",++ data: seriesData,++ smooth: true,++ symbol: data.length === 1 ? "circle" : "none",++ symbolSize: 6,++ lineStyle: { width: 2, color: "#a66ae4" },++ },++ ],++ };++++ myChart.setOption(option);++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/hotEvent.module.scssindex 00000000,00000000..1cdfedf7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/hotEvent.module.scss@@@ -1,0 -1,0 +1,95 @@@++.hotEvent {++ display: flex;++ justify-content: space-between;++ flex-wrap: wrap;++ :global {++ .hotEvent-item {++ width: calc(50% - 15px);++ margin-bottom: 30px;++ .anticon {++ font-size: 20px;++ margin-right: 8px;++ }++ &-head {++ box-sizing: border-box;++ padding: 0 15px;++ height: 45px;++ line-height: 45px;++ border-radius: 10px 10px 0 0;++ }++ }++ }++}++++.hotEvent-item-content {++ :global {++ .ant-table-body {++ scrollbar-width: none;++ &::-webkit-scrollbar {++ display: none;++ }++ }++ thead {++ .ant-table-cell {++ background: #fff !important;++ padding: 8px 10px !important;++ font-weight: 400 !important;++ font-size: var(--fs-xs) !important;++ color: var(--grayColor7) !important;++ border: none !important;++ &:before {++ display: none !important;++ }++ }++ }++ tbody {++ .ant-table-cell {++ padding: 10px !important;++ border: none !important;++ }++ tr {++ cursor: pointer;++ }++ }++ }++}++++.hotEventTitle {++ @include omitText(1);++ &:hover {++ color: var(--colorPrimary5);++ }++}++++.ranking {++ position: relative;++ display: flex;++ align-items: center;++ :global {++ .rankingTopthree-rise, .rankingTopthree-fall {++ position: absolute;++ display: flex;++ align-items: center;++ top: 50%;++ right: 0;++ transform: translate(40%, -50%);++ .anticon {++ font-size: 12px;++ }++ }++ .rankingTopthree-name {++ position: relative;++ left: -10px;++ font-size: var(--fs-xs);++ }++ .rankingTopthree-rise {++ color: var(--error-color);++ }++ .rankingTopthree-fall {++ color: var(--success-color);++ .anticon {++ transform: rotate(180deg);++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/index.tsxindex 00000000,00000000..b482585dnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/index.tsx@@@ -1,0 -1,0 +1,225 @@@++import {++ ForwardedRef,++ forwardRef,++ memo,++ useCallback,++ useEffect,++ useState,++} from "react";++import styles from "./hotEvent.module.scss";++import { Platform, platformApi } from "@/api/hot";++import { HotTopic, HotValueHistory } from "@/api/types/hotTopic";++import KwaiSvg from "./svgs/kwai.svg";++import XhsSvg from "./svgs/xhs.svg";++import BaiduSvg from "./svgs/baidu.svg";++import DouyinSvg from "./svgs/douyin.svg";++import TaotiaoSvg from "./svgs/totiao.svg";++import WeiboSvg from "./svgs/weibo.svg";++import ZhihuSvg from "./svgs/zhihu.svg";++import BiblSvg from "./svgs/bibl.svg";++import Icon from "@ant-design/icons";++import { Spin, Table, type TableProps } from "antd";++import { describeNumber } from "@/utils";++import hotContentStyles from "../HotContent/hotContent.module.scss";++import drawHotEventEchartLine from "@/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine";++import Uparrow from "../../svgs/uparrow.svg";++import { useTransClient } from "@/app/i18n/client"; // 新增++++const material = [++ {++ icon: XhsSvg,++ back: "linear-gradient(127deg, rgba(255, 38, 82, 0.1) 0%, rgba(255, 126, 140, 0.1) 100%)",++ },++ {++ icon: DouyinSvg,++ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",++ },++ {++ icon: KwaiSvg,++ back: "linear-gradient(127deg, rgba(255, 121, 2, 0.1) 0%, rgba(255, 216, 181, 0.1) 100%)",++ },++ {++ icon: BiblSvg,++ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",++ },++ {++ icon: WeiboSvg,++ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",++ },++ {++ icon: BaiduSvg,++ back: "linear-gradient(127deg, rgba(255, 121, 35, 0.1) 0%, rgba(255, 72, 20, 0.1) 100%)",++ },++ {++ icon: TaotiaoSvg,++ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",++ },++++ {++ icon: ZhihuSvg,++ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",++ },++];++++export interface IHotEventRef {}++++export interface IHotEventProps {}++++const HotTrendLine: React.FC<{ id: string; data: HotValueHistory[] }> = ({++ id,++ data,++}) => {++ useEffect(() => {++ drawHotEventEchartLine(id, data);++ }, [id, data]);++++ return <div id={id} style={{ width: "180px", height: "25px" }}></div>;++};++++const HotEvent = memo(++ forwardRef(({}: IHotEventProps, ref: ForwardedRef<IHotEventRef>) => {++ const [data, setData] = useState<++ {++ platform: Platform;++ topics: HotTopic[];++ }[]++ >([]);++ const [loading, setLoading] = useState(false);++ const { t } = useTransClient("hot-content"); // 新增++++ const getData = useCallback(async () => {++ setLoading(true);++ const res = await platformApi.getAllHotTopics();++ setLoading(false);++ setData(res?.data ?? []);++ }, []);++++ useEffect(() => {++ getData();++ }, []);++++ const getColumns = useCallback(++ (hotTopic: HotTopic[]) => {++ const columns: TableProps<HotTopic>["columns"] = [++ {++ title: t("rank"),++ width: 60,++ render: (text, data, ind) => (++ <div className={styles.ranking}>++ {ind <= 2 ? (++ <div++ className={hotContentStyles.rankingTopthree}++ style={{++ width: "20px",++ height: "20px",++ lineHeight: "20px",++ }}++ >++ {ind + 1}++ </div>++ ) : (++ <p style={{ width: "20px", textAlign: "center" }}>++ {ind + 1}++ </p>++ )}++++ {!data.rankChange ? null : data.rankChange > 0 ? (++ <p className="rankingTopthree-rise">++ <Icon component={Uparrow} />++ <span className="rankingTopthree-name">++ {data.rankChange}++ </span>++ </p>++ ) : (++ <p className="rankingTopthree-fall">++ <Icon component={Uparrow} />++ <span className="rankingTopthree-name">++ {Math.abs(data.rankChange)}++ </span>++ </p>++ )}++ </div>++ ),++ },++ {++ title: t("hotEvents"),++ render: (text, record) => {++ return (++ <span++ className={styles.hotEventTitle}++ title={record.title}++ onClick={() => {++ if (!record.url) return;++ window.open(record.url, "_blank");++ }}++ >++ {record.title}++ </span>++ );++ },++ },++ {++ width: 120,++ title: t("hotValue"),++ align: "center",++ render: (text, record) => {++ return (++ <span style={{ fontFamily: "DIN" }}>++ {describeNumber(record.hotValue)}++ </span>++ );++ },++ },++++ ...(hotTopic[0]?.hotValueHistory?.length >= 1++ ? [++ {++ width: 200,++ title: t("hotTrend"),++ render: (text: string, record: HotTopic) => (++ <HotTrendLine++ id={record._id}++ data={record.hotValueHistory}++ />++ ),++ },++ ]++ : []),++ ];++ return columns;++ },++ [t],++ );++++ return (++ <Spin spinning={loading} style={{ minHeight: "60vh" }}>++ <div className={styles.hotEvent}>++ {data.map(({ platform, topics }, i) => {++ return (++ <div className="hotEvent-item" key={platform.id}>++ <div++ className="hotEvent-item-head"++ style={{ background: material[i].back }}++ >++ <Icon component={material[i].icon} /> {platform.name} ·{" "}++ {t("hot")}++ </div>++ <div className={styles["hotEvent-item-content"]}>++ <Table++ dataSource={topics}++ columns={getColumns(topics)}++ rowKey={(record) => record._id}++ pagination={false}++ scroll={{ y: 400 }}++ />++ </div>++ </div>++ );++ })}++ </div>++ </Spin>++ );++ }),++);++++export default HotEvent;diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/baidu.svgindex 00000000,00000000..30c05a26new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/baidu.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-baidu_svg__a" x1="1" y1="0.95" x2="0" y2="0.055" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#6e87ef"></stop><stop offset="1" stop-color="#4e6ef2"></stop></linearGradient></defs><g data-name="\u7EC4 77946"><path data-name="\u8054\u5408 533" d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" fill="url(#icon-baidu_svg__a)"></path><g data-name="\u7EC4 64190"><path data-name="\u77E9\u5F62 19598" fill="none" d="M3.796 3.991h13.062v13.062H3.796z"></path><path data-name="\u8DEF\u5F84 33700" d="M6.169 10.314c1.305-.28 1.127-1.84 1.087-2.181-.064-.526-.682-1.445-1.521-1.372-1.056.095-1.211 1.621-1.211 1.621-.142.705.342 2.212 1.644 1.932Zm1.385 2.712a1.109 1.109 0 0 0-.05.634.72.72 0 0 0 .621.572h.683v-1.67h-.731a.8.8 0 0 0-.523.464ZM8.59 7.7c.722 0 1.3-.83 1.3-1.855s-.579-1.854-1.3-1.854-1.3.83-1.3 1.854S7.874 7.7 8.59 7.7Zm3.1.122c.963.125 1.583-.9 1.705-1.683a1.751 1.751 0 0 0-1.176-1.836c-.683-.157-1.536.937-1.614 1.651-.093.873.124 1.744 1.086 1.868Zm2.36 4.58a13.273 13.273 0 0 1-2.36-2.4 1.918 1.918 0 0 0-3.415-.156 7.76 7.76 0 0 1-1.55 1.682c-.125.155-1.8 1.058-1.428 2.709a1.8 1.8 0 0 0 1.678 1.619 7.319 7.319 0 0 0 2.079-.155 4.367 4.367 0 0 1 2.078.062s2.609.873 3.322-.809a2.1 2.1 0 0 0-.4-2.555Zm-4.464 2.5h-1.7a1.492 1.492 0 0 1-1.062-.731 1.936 1.936 0 0 1-.125-1.17 1.488 1.488 0 0 1 1.219-1.1h.9v-1.11l.769.012v4.1Zm3.159-.012h-1.948c-.757-.195-.792-.732-.792-.732v-2.156l.792-.011v1.937c.048.206.306.245.306.245h.8v-2.171h.843v2.889Zm2.762-5.763a1.51 1.51 0 0 0-1.458-1.5c-1.151 0-1.3 1.059-1.3 1.808 0 .715.061 1.713 1.489 1.68s1.274-1.611 1.274-1.985Z" fill="#fff"></path></g></g></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/bibl.svgindex 00000000,00000000..1d96864anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/bibl.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-bilibili_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#f38ab3"></stop><stop offset="1" stop-color="#f06198"></stop></linearGradient></defs><g data-name="\u7EC4 77944"><path data-name="\u8054\u5408 533" d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" fill="url(#icon-bilibili_svg__a)"></path><g data-name="\u7EC4 64190"><path data-name="\u77E9\u5F62 19598" fill="none" d="M3 4.182h13.062v13.062H3z"></path><path data-name="\u8DEF\u5F84 33695" d="M13.662 9.673a2.987 2.987 0 0 1 .331-.036 6.213 6.213 0 0 1 .111.942c-.033.006-.268.06-.268.06-.018-.123-.172-.888-.175-.966m.452-.087.123.978c.063 0 .319-.021.343-.024-.036-.37-.1-.954-.1-.954a.942.942 0 0 0-.367 0m-.242 1.357a2.136 2.136 0 0 1 .759-.072c.1.37.289 2.447.307 2.532-.126.015-.542.051-.575.06-.027-.157-.491-2.42-.491-2.52m2.062-1.246a3.248 3.248 0 0 1 .331-.009 7.687 7.687 0 0 1 0 .948L16 10.66c-.006-.12-.072-.882-.066-.963m.455-.024.024.966c.063 0 .316.015.343.012-.006-.37 0-.954 0-.954a1.663 1.663 0 0 0-.367-.024M16 10.97a2.172 2.172 0 0 1 .762.015c.042.433.036 2.453.042 2.538-.129 0-.542.006-.575.012-.006-.157-.238-2.465-.229-2.565m-1.323-2.483c.328 1.674.578 4.533.587 4.717 0 0 .259.006.551.024-.172-1.8-.382-4.684-.379-4.777-.072-.081-.759.036-.759.036m-.722 3.958c-.063-.47-1.743-1-2.688-.831 0 0-.117-1.036-.163-2.038a21.88 21.88 0 0 1 .003-1.84A7.131 7.131 0 0 0 10 8.155a43.451 43.451 0 0 1 .759 5.72 5.178 5.178 0 0 0 1.382-.114c.873-.169 1.905-.7 1.818-1.315m-2.059.845-.146-1.063a7.694 7.694 0 0 1 1.039.379 9.682 9.682 0 0 1-.891.683M6.667 9.673A2.987 2.987 0 0 1 7 9.636a6.213 6.213 0 0 1 .111.942c-.033.006-.268.06-.268.06-.018-.123-.172-.888-.175-.966m.452-.087.123.978c.063 0 .319-.021.343-.024l-.1-.954a.942.942 0 0 0-.367 0m-.245 1.358a2.136 2.136 0 0 1 .759-.072c.1.37.289 2.447.307 2.532-.126.015-.542.051-.575.06-.027-.157-.491-2.42-.491-2.52m2.062-1.246a3.248 3.248 0 0 1 .331-.009 7.686 7.686 0 0 1 0 .948L9 10.66c0-.124-.067-.882-.064-.963m.455-.024.024.966c.063 0 .316.015.343.012-.006-.37 0-.954 0-.954a1.868 1.868 0 0 0-.367-.024M9 10.97a2.172 2.172 0 0 1 .762.015c.042.433.036 2.453.042 2.538-.129 0-.542.006-.575.012 0-.157-.238-2.465-.229-2.565M7.681 8.487c.328 1.674.578 4.533.587 4.717 0 0 .259.006.551.024a179.537 179.537 0 0 1-.379-4.781c-.072-.078-.759.039-.759.039m-.723 3.959c-.063-.47-1.743-1-2.688-.831 0 0-.117-1.036-.163-2.038a20.414 20.414 0 0 1 .004-1.84A7.467 7.467 0 0 0 3 8.155a43.451 43.451 0 0 1 .759 5.72 5.178 5.178 0 0 0 1.381-.114c.873-.169 1.905-.7 1.818-1.315m-2.053.846-.147-1.064a7.694 7.694 0 0 1 1.042.38 9.682 9.682 0 0 1-.891.683" fill="#fff"></path></g></g></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/douyin.svgindex 00000000,00000000..63eba83anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/douyin.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="22.155" height="20.5" viewBox="0 0 22.155 20.5"><defs><style>.icon-douyin_svg__d{fill:#00faf0}.icon-douyin_svg__e{fill:#ff0050}</style></defs><path d="M2.839 18.982a1 1 0 0 1-1-1v-7.1a.5.5 0 0 1-.189-.08L.343 9.9a.5.5 0 0 1 0-.824l1.307-.9a.5.5 0 0 1 .189-.08V1a1 1 0 0 1 1-1h17.924v18.982Z" transform="rotate(180 10.382 9.49)" style="fill: rgb(37, 244, 238);"></path><path d="M2.839 18.982a1 1 0 0 1-1-1v-7.1a.5.5 0 0 1-.189-.08L.343 9.9a.5.5 0 0 1 0-.824l1.307-.9a.5.5 0 0 1 .189-.08V1a1 1 0 0 1 1-1h17.924v18.982Z" transform="rotate(180 11.141 10.25)" style="fill: rgb(254, 44, 85);"></path><path d="M18.684.758a1 1 0 0 1 1 1v7.1a.5.5 0 0 1 .189.08l1.307.902a.5.5 0 0 1 0 .824l-1.307.9a.5.5 0 0 1-.189.08v7.096a1 1 0 0 1-1 1H.76V.758Z"></path><path d="M0 0h13.062v13.062H0z" transform="translate(3.266 3.991)" style="fill: none;"></path><path class="icon-douyin_svg__d" d="M9.026 9.549v-.354a3.114 3.114 0 0 0-.374-.025 2.771 2.771 0 0 0-1.591 5.042 2.752 2.752 0 0 1-.744-1.886 2.783 2.783 0 0 1 2.709-2.777Z"></path><path class="icon-douyin_svg__d" d="M9.09 13.582a1.264 1.264 0 0 0 1.261-1.216V6.334h1.1a1.954 1.954 0 0 1-.035-.384H9.913v6.032a1.264 1.264 0 0 1-1.261 1.216 1.233 1.233 0 0 1-.586-.148 1.256 1.256 0 0 0 1.024.532ZM13.518 8.383v-.335a2.078 2.078 0 0 1-1.143-.34 2.141 2.141 0 0 0 1.143.675Z"></path><path class="icon-douyin_svg__e" d="M12.381 7.708a2.088 2.088 0 0 1-.517-1.374h-.4a2.119 2.119 0 0 0 .917 1.374ZM8.652 10.672a1.263 1.263 0 0 0-.586 2.383 1.262 1.262 0 0 1 1.025-2 1.192 1.192 0 0 1 .374.059v-1.54a3.12 3.12 0 0 0-.374-.025h-.065v1.182a1.17 1.17 0 0 0-.374-.059Z"></path><path class="icon-douyin_svg__e" d="M13.519 8.382v1.172a3.577 3.577 0 0 1-2.094-.675v3.058a2.769 2.769 0 0 1-4.36 2.27 2.772 2.772 0 0 0 4.8-1.886V9.263a3.588 3.588 0 0 0 2.094.675V8.431a2.6 2.6 0 0 1-.44-.049Z"></path><path d="M6.754 7.149V4.091a3.588 3.588 0 0 0 2.094.675V3.594a2.123 2.123 0 0 1-1.143-.674 2.072 2.072 0 0 1-.916-1.374h-1.1v6.031a1.264 1.264 0 0 1-1.265 1.217A1.251 1.251 0 0 1 3.4 8.267a1.263 1.263 0 0 1 .586-2.383 1.192 1.192 0 0 1 .374.059V4.761a2.773 2.773 0 0 0-2.7 2.767 2.743 2.743 0 0 0 .74 1.886 2.766 2.766 0 0 0 4.354-2.265Z" transform="translate(4.67 4.788)" style="fill: rgb(255, 255, 255);"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/kwai.svgindex 00000000,00000000..a4ffc999new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/kwai.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="22.136" height="20.5" viewBox="0 0 22.136 20.5"><defs><linearGradient id="icon-ks_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#ff7800"></stop><stop offset="1" stop-color="#fff"></stop></linearGradient><clipPath id="icon-ks_svg__b"><path d="M0 0h13.062v13.062H0z" style="fill: rgb(255, 255, 255);"></path></clipPath><filter id="icon-ks_svg__c" x="-6.259" y="-6.911" width="33.018" height="34.143" filterUnits="userSpaceOnUse"><feOffset></feOffset><feGaussianBlur stdDeviation="4" result="d"></feGaussianBlur><feFlood flood-color="#a83e01" flood-opacity="0.302"></feFlood><feComposite operator="in" in2="d"></feComposite><feComposite in="SourceGraphic"></feComposite></filter></defs><path d="M2.991 20.5a1 1 0 0 1-1-1v-7.725a.5.5 0 0 1-.148-.071l-1.5-1.043a.5.5 0 0 1 0-.821L1.842 8.8a.5.5 0 0 1 .148-.071V1a1 1 0 0 1 1-1h19.27v20.5Z" transform="rotate(180 11.13 10.25)" style="fill: url("#icon-ks_svg__a");"></path><g transform="translate(3.628 3.628)" style="clip-path: url("#icon-ks_svg__b");"><path transform="rotate(2 -7.706 2.078)" d="M0 0h12.919v12.919H0z" style="fill: none;"></path><g style="filter: url("#icon-ks_svg__c");"><path d="M6.414 5.664a1.6 1.6 0 0 1 1.6 1.594v1.266a1.6 1.6 0 0 1-1.6 1.594H4.056a1.6 1.6 0 0 1-1.524-1.1l-1.4.7a.78.78 0 0 1-1.05-.342A.77.77 0 0 1 0 9.029V6.758a.779.779 0 0 1 1.13-.69l1.4.7a1.6 1.6 0 0 1 1.526-1.104h2.358Zm-.01.821H4.08a.8.8 0 0 0-.8.784V8.5a.8.8 0 0 0 .789.8h2.322a.8.8 0 0 0 .8-.784V7.281a.8.8 0 0 0-.788-.8Zm-5.367.494a.212.212 0 0 0-.212.207v1.427a.213.213 0 0 0 .305.19l1.319-.669V7.66L1.133 7a.213.213 0 0 0-.1-.023ZM3 .975a2.171 2.171 0 0 1 1.893 1.1 1.851 1.851 0 1 1-.239 2.449A2.164 2.164 0 1 1 3 .975Zm0 .867a1.29 1.29 0 1 0 1.3 1.29A1.293 1.293 0 0 0 3 1.842Zm3.16.61a.985.985 0 1 0 .991.985.987.987 0 0 0-.991-.985Z" transform="translate(2.61 .98)" style="stroke: transparent; stroke-miterlimit: 10; fill-rule: evenodd; fill: rgb(255, 255, 255);"></path></g></g></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/totiao.svgindex 00000000,00000000..ff3c1c44new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/totiao.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-toutiao_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#ee6b6b"></stop><stop offset="1" stop-color="#f04142"></stop></linearGradient></defs><g data-name="\u7EC4 77945"><path data-name="\u8054\u5408 533" d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" fill="url(#icon-toutiao_svg__a)"></path><g data-name="\u7EC4 77948" fill="#fff"><path data-name="\u8DEF\u5F84 33696" d="M13.416 11.667h-.049c-.04.027-.142 0-.2 0a1.888 1.888 0 0 0-.547.053 1.848 1.848 0 0 1 .218.391c.12.2.258.4.373.6a4.085 4.085 0 0 0 .658-.04h.187a10.969 10.969 0 0 0-.6-1.009Zm-3.56-2.1a2.559 2.559 0 0 1 .444.173c.093 0 .107-.116.147-.187.111-.169.24-.347.351-.52a4.033 4.033 0 0 0 .733-.031h.267a3.669 3.669 0 0 0 .444-.04c.236-.053.524.027.738-.044a.169.169 0 0 1 0 .093c-.044.089-.222.116-.311.16l-.64.329a1.363 1.363 0 0 0-.258.12 2.173 2.173 0 0 1-.587-.218 1.088 1.088 0 0 1-.369-.12c-.1.027-.262.382-.347.471 0 .084.444.2.533.24-.311.147-.609.324-.924.444-.062.027-.187 0-.24.027h-.176a2.181 2.181 0 0 0 0 .538l.564-.027a1.655 1.655 0 0 0 .173-.093c.249-.107.476-.231.711-.347a3.428 3.428 0 0 0 .6-.3 1.911 1.911 0 0 1 .484.173c.2.08.4.116.6.2s.3.133.444.187l.609-.022a1.779 1.779 0 0 0 0-.533l-.4.031a4.715 4.715 0 0 1-.471-.187 2.388 2.388 0 0 1-.48-.173l1.333-.658a4.725 4.725 0 0 0 0-.938c-.658.053-1.28.08-1.973.12a2.89 2.89 0 0 1-.733.027l-.631-.307c-.178.293-.382.578-.56.889a1.78 1.78 0 0 1-.271.444c.014.055.116.05.196.077Zm1.142 2.231c-.049.036-.142 0-.213 0a4.69 4.69 0 0 0-.564.053c-.1.053-.089.169-.133.24a5.6 5.6 0 0 0-.28.511c-.049.08-.067.191-.138.253a.062.062 0 0 1 0 .04l.822-.04c.129-.249.271-.507.4-.751a1.515 1.515 0 0 1 .138-.267c-.005-.03-.005-.014-.032-.041Zm-2.369-.129-.889.044a1.245 1.245 0 0 0 .2.4c.151.3.307.582.444.889l.564-.027a.826.826 0 0 0 .329-.027c.027-.08-.124-.258-.164-.329-.177-.334-.315-.654-.484-.952Z"></path><path data-name="\u8DEF\u5F84 33697" d="M13.847 11.494v-.529c-.609 0-1.1.089-1.684.084v-.271a2.58 2.58 0 0 0-.524.027 1.107 1.107 0 0 0-.271 0h-.022a.925.925 0 0 1 0 .271l-1.676.089v.538a3.015 3.015 0 0 0 .564-.036c.164-.036.347 0 .493-.027s.391.036.493-.027h.138v.8a1.334 1.334 0 0 0 0 .373c.209-.022.542-.04.791-.053v-.8a1.472 1.472 0 0 1 .04-.342c.56 0 1.107-.058 1.644-.093Zm-7.471.12h.267a.849.849 0 0 0-.147.187c-.107.147-.222.293-.329.444a1.24 1.24 0 0 0-.218.284 5.458 5.458 0 0 0-.747.062h-.178v.538a3.59 3.59 0 0 0 .724-.053 1.662 1.662 0 0 1 .3 0c.138-.027.382.036.484-.027a1.88 1.88 0 0 0 .347-.444c.258-.351.6-.7.831-1.071.267 0 .636 0 1.236-.04a1.371 1.371 0 0 0 .227 0 1.849 1.849 0 0 0 0-.542l-.987.053v-1.62a2.893 2.893 0 0 0 0-.733h-.36a.961.961 0 0 0-.227 0 1.006 1.006 0 0 0-.231 0v1.609a2.929 2.929 0 0 1 0 .738l-2.373.133v.538a5.56 5.56 0 0 0 .942-.053c.145-.007.328.051.439-.003Z"></path><path data-name="\u8DEF\u5F84 33698" d="M14.167 5.001H4.833A1.333 1.333 0 0 0 3.5 6.334v9.333a1.333 1.333 0 0 0 1.333 1.334h9.333a1.333 1.333 0 0 0 1.334-1.333V6.334a1.333 1.333 0 0 0-1.333-1.333Zm.609 8.48-10.534.64v-6.32l10.52-.636Z"></path><path data-name="\u8DEF\u5F84 33699" d="M5.54 9.228a4.244 4.244 0 0 0 .444.551.351.351 0 0 0 .213 0h.689c0-.129-.124-.187-.187-.267-.138-.209-.324-.373-.444-.578l-.658.04h-.276c.037.094.152.169.219.254Zm.444 1.582v.027a.888.888 0 0 0 .267 0l.618-.058c0-.093-.111-.142-.16-.213l-.307-.413c-.049-.067-.133-.12-.164-.2a1.977 1.977 0 0 0-.56.031.747.747 0 0 0-.244 0 .253.253 0 0 0-.116 0c.124.2.329.369.444.56.067.093.124.24.222.271Z"></path></g></g></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/weibo.svgindex 00000000,00000000..590ab6c4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/weibo.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-weibo_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#ff7b23"></stop><stop offset="1" stop-color="#ff330e"></stop></linearGradient><style>.icon-weibo_svg__c{fill:#fff}</style></defs><path d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" style="fill: url("#icon-weibo_svg__a");"></path><path transform="translate(3.796 3.991)" d="M0 0h13.062v13.062H0z" style="fill: none;"></path><path class="icon-weibo_svg__c" d="M13.564 11.35a1.419 1.419 0 0 0-1.016-.909c-.149-.014-.284-.1-.185-.27a.889.889 0 0 0-.07-1.036c-.351-.358-1.118-.223-1.661.008s-.512.07-.5-.088.309-1.1-.584-1.212c-1.17-.147-2.672 1.337-3.2 2.192a3.543 3.543 0 0 0-.675 2.163h.005c.1 1.206 1.83 2.167 3.955 2.167 1.828 0 3.367-.711 3.822-1.678a.06.06 0 0 1 .006-.011 1.472 1.472 0 0 0 .106-.319 1.866 1.866 0 0 0-.003-1.007Zm-4.189 2.487c-1.513 0-2.74-.833-2.74-1.859s1.226-1.859 2.74-1.859 2.74.833 2.74 1.859-1.228 1.859-2.741 1.859ZM13.101 9.718a.2.2 0 0 0 .086.019.221.221 0 0 0 .2-.14 1.135 1.135 0 0 0 .086-.438 1.11 1.11 0 0 0-1.1-1.12 1.07 1.07 0 0 0-.425.089.232.232 0 0 0-.118.3.222.222 0 0 0 .289.123.641.641 0 0 1 .253-.053.668.668 0 0 1 .6.925.228.228 0 0 0 .118.3Z"></path><path class="icon-weibo_svg__c" d="M12.372 6.638a2.542 2.542 0 0 0-.734.108.344.344 0 0 0-.225.425.333.333 0 0 0 .41.233h.005a1.879 1.879 0 0 1 .543-.08 1.927 1.927 0 0 1 1.9 1.947 2.041 2.041 0 0 1-.081.566.343.343 0 0 0 .222.425.323.323 0 0 0 .1.014.337.337 0 0 0 .32-.242 2.7 2.7 0 0 0 .11-.764 2.606 2.606 0 0 0-2.571-2.631ZM9.124 10.798a1.318 1.318 0 1 0 1.461 1.31 1.391 1.391 0 0 0-1.461-1.31Zm-.477 2.161a.525.525 0 1 1 .512-.537v.012a.519.519 0 0 1-.513.525Zm.958-.945a.2.2 0 0 1-.271.1.217.217 0 0 1-.052-.3.205.205 0 0 1 .271-.1.218.218 0 0 1 .05.3Z"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/xhs.svgindex 00000000,00000000..5d30c15enew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/xhs.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-xhs_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#ff2451"></stop><stop offset="1" stop-color="#ffa5a5"></stop></linearGradient><style>.icon-xhs_svg__b{fill:none}</style></defs><path d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" style="fill: url("#icon-xhs_svg__a");"></path><path class="icon-xhs_svg__b" d="M2.54 2.902h15.965v15.965H2.54z"></path><g transform="translate(2.625 2.987)"><rect class="icon-xhs_svg__b" width="15.005" height="15.005" rx="2"></rect><path d="M128.219 378.663a6.3 6.3 0 0 1-.11 1.979 1.285 1.285 0 0 1-.11.44s.165.33.55.934c.715-.6.66-3.353.66-3.353Zm4.4 2.034a8.267 8.267 0 0 1-.111-1.979h-.988s-.111 2.748.659 3.353a5.78 5.78 0 0 1 .55-.934c-.057-.111-.057-.275-.112-.437Zm-2.748 1.044h-.66l.33.77h.879c.33 0 .44-.6.44-.6v-4.451h-.99v4.287Zm4.451-1.264.825-1.649h-.825l.5-1.374h-.934l-.716 1.814a.242.242 0 0 0 .219.33h.5l-.55 1.264a.242.242 0 0 0 .219.33h1.209l.275-.716h-.713Zm-1.154 1.155-.5.88h1.539l.386-.88h-1.43Zm3.957-2.913h.5v-.99h-2.2v.935h.659v2.913h-.88l-.44.934h3.188v-.88h-.824Zm4.508.88h-.22v-.88a.88.88 0 0 0-.879-.934h-.66v-.44h-.934v.44h-.659v.879h.66v.88H138v.88h.934v2.088h.934v-2.033h1.76v1.32h-.928l.33.769h.769a.728.728 0 0 0 .714-.715v-1.319a.825.825 0 0 0-.882-.934Zm-1.1 0h-.66v-.935h.66Zm2.033-1.374a.44.44 0 1 0-.88 0v.439h.44a.473.473 0 0 0 .44-.44Z" transform="translate(-127.781 -372.49)" style="fill: rgb(255, 255, 255);"></path></g></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/zhihu.svgindex 00000000,00000000..c1acf5e0new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent/svgs/zhihu.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="23.27" height="21.681" viewBox="0 0 23.27 21.681"><defs><linearGradient id="icon-zhihu_svg__a" x1="0.085" x2="0.94" y2="0.967" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#1387e7"></stop><stop offset="1" stop-color="#449feb"></stop></linearGradient></defs><g data-name="\u7EC4 77947"><path data-name="\u8054\u5408 533" d="M4.006 20.681a2 2 0 0 1-2-2v-6.8a.5.5 0 0 1-.145-.07l-1.523-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V2a2 2 0 0 1 2-2h16.39a2 2 0 0 1 2 2v16.681a2 2 0 0 1-2 2Z" transform="rotate(180 11.447 10.59)" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" fill="url(#icon-zhihu_svg__a)"></path><g data-name="\u7EC4 64190"><path data-name="\u77E9\u5F62 19598" fill="none" d="M4.296 4.491h13.062v13.062H4.296z"></path><g data-name="\u7EC4 504" transform="translate(5.667 5.348)"><rect data-name="\u77E9\u5F62 3265" width="10.667" height="10.667" rx="2" fill="#fff"></rect><path data-name="\u8DEF\u5F84 751" d="M5.198 5.282c-.039-.107-.072-.128-.188-.128H3.864c-.053 0-.1.005-.093-.079q.056-.82.048-1.641c0-.081.017-.105.1-.1.368.005.737 0 1.1 0 .058 0 .089-.012.081-.076a2.141 2.141 0 0 0-.015-.222c-.049-.234-.1-.269-.3-.266-.672.005-1.343 0-2.014 0-.1 0-.1 0-.072-.1q.117-.429.276-.846c.021-.054.011-.074-.049-.065a.851.851 0 0 0-.757.582c-.16.468-.317.939-.516 1.392-.073.165-.15.33-.226.494.01.005.015.011.02.011a1.056 1.056 0 0 0 .774-.365 1.473 1.473 0 0 0 .234-.491.068.068 0 0 1 .075-.055h.606c.045 0 .057.012.056.056v.335c-.022.252-.016.5-.016.754l-.019.562c0 .119 0 .12-.12.12H1.862a.266.266 0 0 0-.243.146.258.258 0 0 0-.068.133.363.363 0 0 0-.064.181c-.052.127-.049.133.08.133h1.527a4.319 4.319 0 0 1-1.763 3.1.289.289 0 0 0 .133.044 1.412 1.412 0 0 0 .512 0 1.179 1.179 0 0 0 .7-.355 3.664 3.664 0 0 0 .675-1.194c.052-.139.093-.283.145-.444l1.339 1.6a.35.35 0 0 0 .025-.06 2.171 2.171 0 0 0 .061-.51.68.68 0 0 0-.127-.447q-.415-.495-.85-.971c-.044-.047-.076-.044-.121 0-.089.075-.181.145-.277.222a.113.113 0 0 1 0-.034 4.183 4.183 0 0 0 .175-.911c0-.042.028-.039.056-.039h1.4c.064 0 .093-.011.089-.084a1.44 1.44 0 0 0-.065-.385Zm3.468-2.521c0-.065-.013-.089-.084-.089H5.668c-.067 0-.082.021-.082.083V8.04c0 .047.016.061.062.06h.409c.08 0 .13.017.15.1.048.172.1.342.145.515.014.053.039.032.063.016l.455-.284.3-.192a.96.96 0 0 0 .215-.138.6.6 0 0 1 .089-.012h1.089c.077 0 .1-.016.1-.1V2.763ZM7.379 7.525h.485-.488Zm-.237.1c-.145.083-.282.178-.423.269-.072.047-.082.044-.1-.039l-.093-.31c-.01-.035-.035-.037-.063-.038-.057 0-.114-.007-.172 0s-.073-.019-.073-.074V3.367c0-.078.019-.1.1-.1q.814.005 1.63 0c.081 0 .1.024.1.1V7.499c-.216 0-.431 0-.646.005-.029 0-.07-.017-.073.037-.077-.008-.122.056-.18.089Zm.075.568-.006.007Z" fill="#1387e7"></path></g></g></g></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotFeatures/hotFeatures.module.scssindex 00000000,00000000..8c19a2aanew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotFeatures/hotFeatures.module.scss@@@ -1,0 -1,0 +1,13 @@@++.hotFeatures {++ height: 100%;++ display: flex;++ flex-direction: column;++ :global {++ .ant-spin-nested-loading, .hotFeatures-content, .ant-spin-container {++ height: 100%;++ display: flex;++ flex-direction: column;++ min-height: 0;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotFeatures/index.tsxindex 00000000,00000000..105ba9f8new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotFeatures/index.tsx@@@ -1,0 -1,0 +1,281 @@@++import {++ ForwardedRef,++ forwardRef,++ memo,++ useCallback,++ useEffect,++ useMemo,++ useRef,++ useState,++} from "react";++import styles from "./hotFeatures.module.scss";++import HotContentLabel from "@/app/[lng]/hotContent/components/HotContentLabel";++import { useHotContent } from "@/app/[lng]/hotContent/useHotContent";++import { useShallow } from "zustand/react/shallow";++import { Skeleton, Spin, Table, type TableProps } from "antd";++import InfiniteScroll from "react-infinite-scroll-component";++import { Topic } from "@/api/types/topic";++import { platformApi } from "@/api/hot";++import hotContentStyles from "../HotContent/hotContent.module.scss";++import {++ HotContentBaseInfo,++ SingleNumberCall,++} from "@/app/[lng]/hotContent/components/HotContent/hotContentCommonWidget";++import { useTransClient } from "@/app/i18n/client"; // 新增++++export interface IHotFeaturesRef {}++++export interface IHotFeaturesProps {}++++const NEXT_PUBLIC_YIKA_OSS_HOST = process.env.NEXT_PUBLIC_YIKA_OSS_HOST;++++const HotFeatures = memo(++ forwardRef(({}: IHotFeaturesProps, ref: ForwardedRef<IHotFeaturesRef>) => {++ const { hotContentPlatformList, twoMenuKey } = useHotContent(++ useShallow((state) => ({++ hotContentPlatformList: state.hotContentPlatformList,++ twoMenuKey: state.twoMenuKey,++ })),++ );++ const { t } = useTransClient("hot-content"); // 新增++ const allDates = useRef<string[]>([++ t("last3days"),++ t("last7days"),++ t("last15days"),++ t("last30days"),++ ]);++ // 当前选择的日期范围++ const [currDate, setCurrDate] = useState(allDates.current[1]);++ // 当前选择的平台++ const [currPlat, setCurrPlat] = useState("");++ const [loading, setLoading] = useState(false);++ const [total, setTotal] = useState(0);++ const page = useRef(1);++ const [isReset, setIsReset] = useState(true);++ const [dataSource, setDataSource] = useState<Topic[]>([]);++++ useEffect(() => {++ setCurrPlat(hotContentPlatformList[0]?.name || "");++ }, [hotContentPlatformList]);++++ const columns = useMemo(() => {++ const callParamsColumnsCommon = (title: string) => {++ return {++ width: 90,++ title: () => {++ return <p style={{ textAlign: "center" }}>{title}</p>;++ },++ };++ };++++ const columns: TableProps<Topic>["columns"] = [++ {++ title: t("rank"),++ width: 60,++ render: (text, data, ind) => (++ <>++ {ind <= 2 ? (++ <div className={hotContentStyles.rankingTopthree}>++ {ind + 1}++ </div>++ ) : (++ <p style={{ width: "30px", textAlign: "center" }}>{ind + 1}</p>++ )}++ </>++ ),++ },++ {++ title: t("baseInfo"),++ dataIndex: "baseInfo",++ render: (text, data) => {++ return (++ <HotContentBaseInfo++ title={data.title}++ avatar={data.avatar!}++ publishTime={data.publishTime!}++ fansCount={data.fans}++ nickname={data.author!}++ cover={data.cover}++ onClick={() => {++ window.open(data.authorUrl, "_blank");++ }}++ />++ );++ },++ },++ {++ title: () => <p style={{ textAlign: "center" }}>{t("category")}</p>,++ dataIndex: "category",++ key: "category",++ width: 120,++ render: (text, data) => (++ <div style={{ textAlign: "center" }}>++ <p>++ <b>{text}</b>++ </p>++ <p>{data.subCategory}</p>++ </div>++ ),++ },++++ ...(dataSource[1]?.shareCount++ ? [++ {++ ...callParamsColumnsCommon(t("shares")),++ render: (text: any, data: Topic) => (++ <SingleNumberCall total={data.shareCount} />++ ),++ },++ ]++ : []),++ ...(dataSource[1]?.likeCount++ ? [++ {++ ...callParamsColumnsCommon(t("likes")),++ render: (text: any, data: Topic) => (++ <SingleNumberCall total={data.likeCount} />++ ),++ },++ ]++ : []),++ ...(dataSource[1]?.commentCount++ ? [++ {++ ...callParamsColumnsCommon(t("comments")),++ render: (text: any, data: Topic) => (++ <SingleNumberCall total={data.commentCount} />++ ),++ },++ ]++ : []),++ ...(dataSource[1]?.collectCount++ ? [++ {++ ...callParamsColumnsCommon(t("collections")),++ render: (text: any, data: Topic) => (++ <SingleNumberCall++ total={data.collectCount}++ highlight={true}++ />++ ),++ },++ ]++ : []),++ ...(dataSource[1]?.readCount++ ? [++ {++ ...callParamsColumnsCommon(t("views")),++ render: (text: any, data: Topic) => (++ <SingleNumberCall total={data.readCount} highlight={true} />++ ),++ },++ ]++ : []),++ ];++++ return columns;++ }, [dataSource, t]);++++ // 获取数据++ const getTableData = useCallback(async () => {++ if (loading) return;++++ const res = await platformApi.getAllTopics({++ page: page.current,++ pageSize: 20,++ platformId: hotContentPlatformList.find((v) => v.name === currPlat)?.id,++ timeType:++ currDate === t("last3days")++ ? "近3天"++ : currDate === t("last7days")++ ? "近7天"++ : currDate === t("last15days")++ ? "近15天"++ : currDate === t("last30days")++ ? "近30天"++ : "",++ msgType: twoMenuKey,++ });++ page.current = page.current + 1;++ setTotal(res?.data.meta.totalItems || 0);++ setDataSource((prevState) => {++ return [...prevState, ...(res?.data.items || [])];++ });++ }, [currDate, currPlat, hotContentPlatformList, loading, twoMenuKey]);++++ useEffect(() => {++ setIsReset(true);++ }, [twoMenuKey]);++++ // 重置数据++ useEffect(() => {++ if (currPlat && isReset) {++ page.current = 1;++ setDataSource([]);++ setLoading(true);++ getTableData().then(() => setLoading(false));++ setIsReset(false);++ }++ }, [isReset, currPlat, currDate, twoMenuKey]);++++ return (++ <div className={styles.hotFeatures}>++ <HotContentLabel++ style={{ marginBottom: "15px" }}++ labels={hotContentPlatformList.map((v) => v.name)}++ icons={hotContentPlatformList.map(++ (v) => `${NEXT_PUBLIC_YIKA_OSS_HOST}/${v.icon}`,++ )}++ value={currPlat}++ onChange={(value) => {++ setIsReset(true);++ setCurrPlat(value);++ }}++ />++ <HotContentLabel++ labels={allDates.current}++ value={currDate}++ onChange={(value) => {++ setIsReset(true);++ setCurrDate(value);++ }}++ />++++ <Spin spinning={loading}>++ <div++ className={`${hotContentStyles["hotContent-table"]}`}++ id="hotContent-table"++ >++ <InfiniteScroll++ dataLength={dataSource.length}++ next={getTableData}++ hasMore={dataSource.length < total}++ loader={++ !loading ? <Skeleton active paragraph={{ rows: 1 }} /> : <></>++ }++ endMessage={<></>}++ scrollableTarget="hotContent-table"++ >++ <Table++ dataSource={dataSource}++ rowKey={(record) => record._id}++ columns={columns}++ pagination={false}++ onRow={(record) => {++ return {++ onClick: () => {++ if (!record.url) return;++ window.open(record.url, "_blank");++ },++ };++ }}++ />++ </InfiniteScroll>++ </div>++ </Spin>++ </div>++ );++ }),++);++++export default HotFeatures;diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotTitle/components/HotTitleCommons.tsxindex 00000000,00000000..ae749aa1new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotTitle/components/HotTitleCommons.tsx@@@ -1,0 -1,0 +1,104 @@@++import { ViralTitle } from "@/api/types/viralTitles";++import styles from "../hotTitle.module.scss";++import HotTitleBackSvg from "../svgs/hotTitleBack.svg";++import Icon from "@ant-design/icons";++import { CSSProperties } from "react";++import { Table, type TableProps, Typography } from "antd";++import hotEventStyles from "../../HotEvent/hotEvent.module.scss";++import hotContentStyles from "../../HotContent/hotContent.module.scss";++import { describeNumber } from "@/utils";++import { useTransClient } from "@/app/i18n/client";++++export const HotTitleItem = ({++ data,++ style,++ bottomLinkText,++ onBottomLinkClick,++ headRightElement,++}: {++ data: {++ category: string;++ titles: ViralTitle[];++ };++ bottomLinkText: string;++ onBottomLinkClick: () => void;++ style?: CSSProperties;++ headRightElement?: React.ReactNode;++}) => {++ const { t } = useTransClient("hot-content");++ const columns: TableProps<ViralTitle>["columns"] = [++ {++ title: t("rank"),++ width: 50,++ render: (text, data, ind) => (++ <>++ {ind <= 2 ? (++ <div++ className={hotContentStyles.rankingTopthree}++ style={{ width: "20px", height: "20px", lineHeight: "20px" }}++ >++ {ind + 1}++ </div>++ ) : (++ <p style={{ width: "20px", textAlign: "center" }}>{ind + 1}</p>++ )}++ </>++ ),++ },++ {++ title: t("viralTitles"),++ render: (text, data, ind) => (++ <div className="hotTitleItem-title">++ <Typography.Paragraph copyable={{ text: data.title }}>++ {data.title}++ </Typography.Paragraph>++ </div>++ ),++ },++ {++ title: t("engagement"),++ width: 100,++ align: "center",++ render: (text, data, ind) => <>{describeNumber(data.engagement)}</>,++ },++ ];++++ return (++ <div className={styles.hotTitleItem + " hotTitleItem"} style={style}>++ <div className="hotTitleItem-head">++ <div className="hotTitleItem-head-left">++ <div className="hotTitleItem-head-name">{data.category}</div>++ <Icon component={HotTitleBackSvg} />++ </div>++ {headRightElement}++ </div>++ <div++ className={`hotTitleItem-content ${hotEventStyles["hotEvent-item-content"]}`}++ >++ <Table++ dataSource={data.titles}++ columns={columns}++ rowKey={(record) => record._id}++ pagination={false}++ scroll={{ y: 400 }}++ onRow={(record) => {++ return {++ onClick: () => {++ if (!record.url) return;++ window.open(record.url, "_blank");++ },++ };++ }}++ />++ <a++ onClick={(e) => {++ e.preventDefault();++ onBottomLinkClick();++ }}++ >++ {bottomLinkText}++ </a>++ </div>++ </div>++ );++};diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotTitle/hotTitle.module.scssindex 00000000,00000000..2a439554new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotTitle/hotTitle.module.scss@@@ -1,0 -1,0 +1,92 @@@++.hotTitle {++ display: flex;++ flex-direction: column;++ height: 100%;++ min-height: 0;++ :global {++ .hotTitle-content {++ height: 100%;++ min-height: 0;++ .hotTitle-content-wrapper {++ height: 100%;++ min-height: 0;++ display: flex;++ flex-wrap: wrap;++ justify-content: space-between;++ overflow: auto;++ scrollbar-width: none;++ &::-webkit-scrollbar {++ display: none;++ }++ }++ .hotTitle-content-wrapper-details {++ display: flex;++ flex-direction: column;++ height: 100%;++ min-height: 0;++ overflow: auto;++ .hotTitleItem, .hotTitleItem-content {++ display: flex;++ flex-direction: column;++ height: 100% !important;++ min-height: 0;++ margin: 0 !important;++ @include table-flex-container-with-selectors;++ }++ }++ }++ }++}++++.hotTitleItem {++ :global {++ .hotTitleItem-head {++ display: flex;++ justify-content: space-between;++ align-items: center;++ background-image: linear-gradient(to left, rgba(90,246,242,.1), rgba(254,44,85,.1));++ padding: 10px 20px;++ border-radius: 10px 10px 0 0;++ .hotTitleItem-head-left {++ display: flex;++ position: relative;++ font-weight: 500;++ .anticon {++ position: relative;++ left: -20px;++ svg {++ width: 120px;++ }++ }++ }++ }++ .hotTitleItem-content {++ & > a {++ text-align: center;++ display: block;++ margin-top: 15px;++ }++ tbody {++ .ant-table-cell {++ background: #fff !important;++ .hotTitleItem-title {++ @include omitText(1);++ .ant-typography {++ margin: 0 !important;++ .ant-typography-copy {++ display: none;++ }++ &:hover {++ color: var(--colorPrimary5) !important;++ .ant-typography-copy {++ display: inline-block;++ }++ }++ }++ }++ padding: 8px !important;++ }++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotTitle/index.tsxindex 00000000,00000000..1a6b0715new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotTitle/index.tsx@@@ -1,0 -1,0 +1,213 @@@++import {++ ForwardedRef,++ forwardRef,++ memo,++ useCallback,++ useEffect,++ useMemo,++ useRef,++ useState,++} from "react";++import styles from "./hotTitle.module.scss";++import { useHotContent } from "@/app/[lng]/hotContent/useHotContent";++import { useShallow } from "zustand/react/shallow";++import { platformApi, PlatformRanking } from "@/api/hot";++import HotContentLabel from "@/app/[lng]/hotContent/components/HotContentLabel";++import { Spin } from "antd";++import { ViralTitle } from "@/api/types/viralTitles";++import { HotTitleItem } from "@/app/[lng]/hotContent/components/HotTitle/components/HotTitleCommons";++import { useTransClient } from "@/app/i18n/client";++++export interface IHotTitleRef {}++++export interface IHotTitleProps {}++++const HotTitle = memo(++ forwardRef(({}: IHotTitleProps, ref: ForwardedRef<IHotTitleRef>) => {++ const {++ labelData,++ rankingData,++ currentRankCategory,++ twoMenuKey,++ setCurrentRankCategory,++ } = useHotContent(++ useShallow((state) => ({++ labelData: state.labelData,++ rankingData: state.rankingData,++ datesData: state.datesData,++ twoMenuKey: state.twoMenuKey,++ currentRankCategory: state.currentRankCategory,++ setCurrentRankCategory: state.setCurrentRankCategory,++ })),++ );++ const { t } = useTransClient("hot-content");++ const labelAll = useRef<string>(t("all"));++ // 当前选中的标签++ const [labelValue, setLabelValue] = useState(labelAll.current);++ const allDates = useRef<string[]>([++ t("last7days"),++ t("last30days"),++ t("last90days"),++ ]);++ // 当前选择的日期范围++ const [currDate, setCurrDate] = useState(allDates.current[0]);++ const [loading, setLoading] = useState(false);++ // 所有爆款标题前五条数据++ const [allHotTitleData, setAllHotTitleData] = useState<++ {++ category: string;++ titles: ViralTitle[];++ }[]++ >();++ // 爆款标题数据详情++ const [hotTitleData, setHotTitleData] = useState<ViralTitle[]>([]);++++ // 获取当前选中的标签、日期、榜单++ const selectedLabelInfo = useMemo(() => {++ const platId = twoMenuKey.split("_")[1];++ return {++ // 所有榜单++ allRanking: rankingData[platId] || [],++ // 当前选择榜单++ ranking: (rankingData[platId]?.find(++ (v) => v.id === currentRankCategory,++ ) ?? {}) as PlatformRanking,++ labelData: labelData[platId] || [],++ platId,++ };++ }, [labelData, rankingData, twoMenuKey, currentRankCategory]);++++ const dateValue = useMemo(() => {++ return currDate === t("last7days")++ ? "近7天"++ : currDate === t("last30days")++ ? "近30天"++ : currDate === t("last90days")++ ? "近90天"++ : "";++ }, [currDate]);++++ // 获取所有爆款数据++ const getAllData = useCallback(async () => {++ if (labelValue !== labelAll.current) return;++++ setLoading(true);++ const res = await platformApi.findTopByPlatformAndCategories(++ selectedLabelInfo.platId,++ dateValue,++ );++ setLoading(false);++ setAllHotTitleData(res?.data);++ }, [dateValue, selectedLabelInfo.platId]);++++ // 获取爆款数据详情++ const getDetailData = useCallback(async () => {++ if (labelValue === labelAll.current) return;++++ setLoading(true);++ const res = await platformApi.findByPlatformAndCategory(++ selectedLabelInfo.platId,++ {++ category: labelValue === labelAll.current ? t("all") : labelValue,++ page: 1,++ timeType: dateValue,++ pageSize: 50,++ },++ );++ setHotTitleData(res?.data.items || []);++ setLoading(false);++ }, [++ labelValue,++ dateValue,++ selectedLabelInfo.ranking.id,++ selectedLabelInfo.platId,++ ]);++++ useEffect(() => {++ getAllData();++ }, [twoMenuKey, dateValue]);++++ useEffect(() => {++ getDetailData();++ }, [labelValue, dateValue]);++++ return (++ <div className={styles.hotTitle}>++ <HotContentLabel++ style={{ marginBottom: "15px" }}++ labels={[labelAll.current, ...(selectedLabelInfo.labelData ?? [])]}++ value={labelValue}++ onChange={(value) => {++ setLabelValue(value);++ }}++ />++++ <HotContentLabel++ style={{ marginBottom: "15px" }}++ labels={allDates.current}++ value={currDate}++ onChange={(value) => {++ setCurrDate(value);++ }}++ />++++ <Spin wrapperClassName="hotTitle-content" spinning={loading}>++ <div++ className="hotTitle-content-wrapper"++ style={{++ display: labelValue === labelAll.current ? "flex" : "none",++ }}++ >++ {allHotTitleData?.map((v) => {++ return (++ <HotTitleItem++ data={v}++ key={v.category}++ style={{ width: "calc(50% - 15px)", marginBottom: "30px" }}++ onBottomLinkClick={() => {++ setLabelValue(v.category);++ }}++ bottomLinkText={t("viewMore")}++ />++ );++ })}++ </div>++++ <div++ className="hotTitle-content-wrapper-details"++ style={{++ display: labelValue !== labelAll.current ? "flex" : "none",++ }}++ >++ <HotTitleItem++ headRightElement={++ <>++ <a++ onClick={(e) => {++ e.preventDefault();++ setLabelValue(labelAll.current);++ }}++ >++ {t("backToAll")}++ </a>++ </>++ }++ data={{++ category: labelValue,++ titles: hotTitleData,++ }}++ key={labelValue}++ style={{ width: "100%", marginBottom: "30px" }}++ onBottomLinkClick={() => {++ setLabelValue(labelAll.current);++ }}++ bottomLinkText={t("collapse")}++ />++ </div>++ </Spin>++ </div>++ );++ }),++);++++export default HotTitle;diff --cc project/aitoearn-web/src/app/[lng]/hotContent/components/HotTitle/svgs/hotTitleBack.svgindex 00000000,00000000..28fd32e5new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/components/HotTitle/svgs/hotTitleBack.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="229.711" height="12.999" viewBox="0 0 229.711 12.999" class=" absolute top-[50%] left-0 -translate-y-[50%] z-[0]"><defs><linearGradient id="icon-titleBg_svg__a" x1="0.033" y1="0.5" x2="0.899" y2="0.509" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#ff2442" stop-opacity="0"></stop><stop offset="0.297" stop-color="#ff3e58"></stop><stop offset="0.473" stop-color="#0bdabb"></stop><stop offset="1" stop-color="#ffbfc8" stop-opacity="0"></stop></linearGradient></defs><path d="M221.9 12 210.78 0h5.526l11.117 12Zm-11.952 0-11.12-12h5.526l11.117 12Zm-11.951 0L186.878 0h5.522l11.12 12Zm-11.952 0L174.926 0h5.526l11.116 12Zm-10.864 0-11.12-12h5.526L180.7 12Zm-11.951 0L152.11 0h5.526l11.117 12Zm-11.952 0-11.12-12h5.526L156.8 12Zm-11.951 0-11.12-12h5.526l11.116 12Zm-10.866 0L117.342 0h5.526l11.116 12Zm-11.951 0L105.39 0h5.526l11.117 12Zm-11.952 0L93.438 0h5.526l11.117 12ZM92.6 12 81.487 0h5.526L98.13 12Zm-10.861 0L70.622 0h5.526l11.117 12Zm-11.951 0L58.672 0H64.2l11.114 12Zm-11.952 0L46.72 0h5.526l11.116 12Zm-11.951 0L34.769 0h5.526l11.117 12Zm-10.866 0L23.9 0h5.526l11.119 12ZM23.07 12 11.953 0h5.526L28.6 12Zm-11.952 0L0 0h5.527l11.117 12Z" transform="translate(1.143 .499)" style="stroke: transparent; stroke-miterlimit: 10; opacity: 0.2; fill: url("#icon-titleBg_svg__a");"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/hotContent.enum.tsindex 00000000,00000000..65a306d4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/hotContent.enum.ts@@@ -1,0 -1,0 +1,6 @@@++export enum HotType {++ hotContent = "hotContent",++ hotEvent = "hotEvent",++ hotFeatures = "HotFeatures",++ hotTitle = "hotTitle",++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/hotContent.module.scssindex 00000000,00000000..766cbe17new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/hotContent.module.scss@@@ -1,0 -1,0 +1,29 @@@++.hotContent {++ display: flex;++ height: 100%;++ width: 100%;++ min-height: 0;++ border-top: 1px solid var(--grayColor1);++ :global {++ .hotContent-wrapper {++ display: flex;++ height: 100%;++ max-width: 1920px;++ margin: 0 auto;++ .hotContent-content {++ padding: 15px 20px;++ box-sizing: border-box;++ flex: 1;++ min-width: 0;++ min-height: 0;++ overflow: auto;++ }++ }++++ .ant-spin-container {++ height: 100%;++ width: 100%;++ min-height: 0;++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/page.tsxindex 00000000,00000000..6b08a365new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/page.tsx@@@ -1,0 -1,0 +1,28 @@@++import { PageParams } from "@/app/globals";++import { getMetadata } from "@/utils/general";++import { HotContentCore } from "@/app/[lng]/hotContent/HotContentCore";++++export async function generateMetadata({ params }: PageParams) {++ return await getMetadata(++ {++ title: "热门内容",++ },++ "en",++ );++}++++export default async function Page() {++ // const res = await platformApi.getRankingContents(++ // "678f4a5618789840c02c8118",++ // 1,++ // 20,++ // "全部",++ // "2025-09-16",++ // );++++ return (++ <>++ <HotContentCore defaultHotContentData={undefined} />++ </>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/hotContent/svgs/hotContent.svgindex 00000000,00000000..aa8e62banew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/svgs/hotContent.svg@@@ -1,0 -1,0 +1,1 @@@++<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1757512376351" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4565" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"><path d="M605.37666333 110.33713778a407.2455589 407.2455589 0 0 0-90.24549888-64.15246223c-18.68989667-9.73331001-33.52044999-15.70436779-42.54985444-18.51998776A24.27259221 24.27259221 0 0 0 441.05121223 50.82074112c0 3.15543666-0.24272555 9.5634011-0.97090446 18.76271331a507.46709333 507.46709333 0 0 1-6.99050667 52.0404389c-10.00030777 53.98224555-28.01057223 107.94021888-55.92405333 158.11166777a422.82856334 422.82856334 0 0 1-82.81808555 106.0469578c-8.22840889-19.24816555-14.22373888-46.36065223-14.22373888-65.4146378a24.27259221 24.27259221 0 0 0-39.87987001-18.59280555C151.30927445 376.31620779 99.36592555 482.84861667 99.36592555 597.31816334c0 218.98732999 188.86504334 395.88598557 421.08093667 395.88598443s421.08093667-176.89865443 421.08093668-395.88598443c0-161.80110222-78.59465443-329.42762667-200.39452445-393.11891001-12.98583666-6.79632555-31.33591666-4.70888334-36.82152334 15.31600555-1.74762667 6.43223666-1.21363001 10.34012445 0.48545223 16.84518002 0.63108779 2.37871445 4.61179221 15.07328 5.75260445 19.17534777 3.39816334 12.16056889 5.33996999 23.54441443 5.46133333 34.29717333-21.82106112-72.62359666-60.12321223-132.13999445-110.63447779-179.49582222z m158.7670289 168.47606556l1.21362887 1.06799332-1.21362887-1.06799332z m128.8389211 318.50496c0 191.43793778-166.43716779 347.3408-372.53575111 347.3408C314.37255111 944.63468999 147.91111111 788.73182777 147.91111111 597.29388999c0-84.71134777 32.67091001-164.49536 90.34259001-226.77883221 6.84487111 27.45230222 18.59280555 54.22497223 33.64181333 69.12834332a24.27259221 24.27259221 0 0 0 32.30681998 1.67480889c47.81700779-38.54487666 85.97352334-85.14825443 115.36763336-138.0139611 30.68055666-55.14732999 50.34135666-114.00836779 61.26402332-172.86940444 2.8884389-15.53445888 5.00015445-30.26792334 6.43223666-43.98193778l5.4127889 2.76707555A358.99164445 358.99164445 0 0 1 572.19603001 145.72657778c58.93385443 55.29296555 98.95936 129.20300999 111.60537998 225.22538667a24.27259221 24.27259221 0 0 0 41.14204444 14.07810332 134.10607445 134.10607445 0 0 0 28.73875002-41.19058887c9.46631111-21.45697223 12.37902222-42.84112555 10.48576-65.02627556 78.88592555 70.29342777 128.8389211 196.24391111 128.8389211 318.50496z" p-id="4566"></path><path d="M468.67342222 597.68225223a162.60209778 162.60209778 0 0 1-8.93231445-18.78698666 97.57582222 97.57582222 0 0 1-2.18453334-5.89824c0.29127111 0.87381333 0.24272555 0.65536 0.24272669 3.76225109a24.27259221 24.27259221 0 0 0-36.40888889-21.02006443c-17.23354112 9.95176334-41.94304 28.54456889-66.65254002 55.65705444-41.77313223 45.8752-67.16226333 100.12444445-67.16226332 162.1409189 0 121.67850667 104.61487445 219.66696334 232.87125333 219.6669622 128.28065223 0 232.87125333-97.98845667 232.87125333-219.6669622 0-106.07123001-39.17596445-191.02530333-104.17796778-255.97876224a382.77878557 382.77878557 0 0 0-71.24005888-56.02114333 263.26053888 263.26053888 0 0 0-33.66608555-17.81608334 24.27259221 24.27259221 0 0 0-32.93790891 27.91348224c0.53399666 2.3544411 1.45635555 7.13614222 2.40298667 13.83537777 3.51952555 25.07358777 3.78652445 51.70062222-1.23790222 75.97321444-4.92733667 23.83568555-14.49073778 42.84112555-29.41838222 56.36096a95.9495589 95.9495589 0 0 1-14.36937444-20.12197888z m-46.65192334 16.96654222c12.67029333 23.54441443 33.27772445 48.49664 54.61333333 55.5356911a24.27259221 24.27259221 0 0 0 20.38897778-2.42725888c34.22435555-21.18997333 54.37060779-54.90460445 62.98737778-96.50782777 4.12634112-19.90352555 5.41278777-40.38959445 4.63606556-60.58439111a335.20450333 335.20450333 0 0 1 50.1957211 41.26340664c56.31241443 56.23959666 89.92995555 129.13019221 89.92995556 221.60877114 0 94.12911445-82.1869989 171.12177778-184.32606777 171.12177777s-184.32606777-76.99266333-184.32606777-171.12177777c0-48.54518557 20.24334222-91.82321778 54.51624221-129.44573668a278.16391111 278.16391111 0 0 1 31.38446222-29.44265444z" p-id="4567"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/svgs/hotEvent.svgindex 00000000,00000000..99727a05new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/svgs/hotEvent.svg@@@ -1,0 -1,0 +1,1 @@@++<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1757512424229" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8111" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"><path d="M695.145107 0.127984c20.221472 0 36.603425 16.381952 36.603424 36.603425v170.666666a36.603425 36.603425 0 0 1-73.206849 0V36.731409A36.667417 36.667417 0 0 1 695.145107 0.127984zM280.860892 0.127984c20.15748 0 36.603425 16.381952 36.603425 36.603425v170.666666a36.603425 36.603425 0 0 1-73.206849 0V36.731409c0-20.221472 16.381952-36.603425 36.603424-36.603425zM183.273091 755.745532a36.603425 36.603425 0 0 0 0 73.206849h268.126484a36.603425 36.603425 0 0 0 0-73.206849h-268.126484zM169.002875 585.078865c-12.350456 0-22.333208 16.445944-22.333209 36.603425 0 20.221472 9.982752 36.603425 22.333209 36.603424h371.345581c12.286464 0 22.269216-16.381952 22.269217-36.603424 0-20.15748-9.982752-36.603425-22.269217-36.603425H169.002875z m14.270216-170.538683a36.603425 36.603425 0 0 0 0 73.20685H622.066242a36.603425 36.603425 0 0 0 0-73.20685H183.273091z m792.220972 255.392076A262.367204 262.367204 0 1 0 588.918385 1024H49.209849a48.761905 48.761905 0 0 1-48.825897-48.761905V146.413698c0-26.87664 21.821272-48.825897 48.825897-48.825896h146.285714v109.682289a85.301337 85.301337 0 0 0 170.538683 0V97.587802H609.907762v109.682289a85.301337 85.301337 0 0 0 170.538682 0V97.587802h146.285714c26.87664 0 48.761905 21.75728 48.761905 48.825896v523.51856z" p-id="8112"></path><path d="M923.724534 739.875516c-0.767904 51.449569-23.165104 73.270841-23.165104 73.270841C898.447694 698.728659 777.11886 576.055993 777.11886 576.055993 817.241845 652.014498 639.984002 747.554556 639.984002 884.56143c0 85.941257 113.84177 149.101362 170.858643 138.222722 246.625172-46.778153 112.88189-282.844644 112.881889-282.844644zM799.964004 988.420447s-127.792026-58.552681-3.583552-188.328458c0 0 61.688289 58.232721 49.849769 112.433945 0 0 17.405824 1.727784 39.547057-27.772528 0 0 5.11936 82.357705-85.813274 103.667041z" p-id="8113"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/svgs/hotFeatures.svgindex 00000000,00000000..b9d5ae85new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/svgs/hotFeatures.svg@@@ -1,0 -1,0 +1,1 @@@++<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1757512458848" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9137" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"><path d="M413.538462 567.138462c-3.938462 0-7.876923 0-11.815385-3.938462-7.876923-3.938462-11.815385-11.815385-7.876923-19.692308l15.753846-102.4-74.830769-70.892307c0-3.938462-3.938462-11.815385 0-19.692308s7.876923-11.815385 15.753846-15.753846l102.4-15.753846 39.384615-82.707693c7.876923-15.753846 27.569231-15.753846 35.446154 0l43.323077 86.646154 98.461539 15.753846c7.876923 0 15.753846 7.876923 15.753846 15.753846 3.938462 7.876923 0 15.753846-3.938462 23.63077l-74.830769 74.830769 19.692308 98.461538c0 7.876923 0 15.753846-7.876923 19.692308-7.876923 3.938462-15.753846 3.938462-23.63077 0L512 515.938462l-86.646154 47.261538c-3.938462 3.938462-7.876923 3.938462-11.815384 3.938462z m-23.63077-196.923077l51.2 51.2c3.938462 3.938462 7.876923 11.815385 7.876923 19.692307l-11.815384 70.892308 66.953846-35.446154c7.876923-3.938462 15.753846-3.938462 19.692308 0l63.015384 31.507692-11.815384-70.892307c0-7.876923 0-15.753846 7.876923-19.692308l51.2-51.2-70.892308-11.815385c-7.876923 0-11.815385-3.938462-15.753846-11.815384l-31.507692-63.015385-31.507693 63.015385c-3.938462 7.876923-7.876923 11.815385-15.753846 11.815384l-78.769231 15.753847z" fill="" p-id="9138"></path><path d="M189.046154 972.8c-3.938462 0-11.815385 0-15.753846-3.938462-7.876923-3.938462-15.753846-15.753846-15.753846-23.630769V82.707692c0-15.753846 15.753846-27.569231 27.56923-27.56923H827.076923c15.753846 0 27.569231 15.753846 27.569231 27.56923v94.523077c0 15.753846-15.753846 27.569231-27.569231 27.569231-15.753846 0-27.569231-11.815385-27.569231-27.569231V114.215385H220.553846v783.753846l279.630769-141.784616c7.876923-3.938462 19.692308-3.938462 23.63077 0l275.692307 141.784616V374.153846c0-15.753846 15.753846-27.569231 27.569231-27.569231 15.753846 0 27.569231 15.753846 27.569231 27.569231V945.230769c0 11.815385-3.938462 19.692308-15.753846 23.630769-7.876923 3.938462-19.692308 7.876923-27.569231 0l-307.2-157.538461-311.138462 157.538461c7.876923 0 0 3.938462-3.938461 3.938462z" fill="" p-id="9139"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/svgs/hotTitle.svgindex 00000000,00000000..7548f1cbnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/svgs/hotTitle.svg@@@ -1,0 -1,0 +1,1 @@@++<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1757512517342" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16776" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"><path d="M692.99 195.59c36.376 22.046 65.643 167.343-24.511 172.825-4.003 0.26-7.89 0.377-11.632 0.377-184.978 0-108.196-287.286-108.196-287.286-262.225 78.262-199.83 289.985-199.83 289.985s-68.747-27.992-49.66-139.293c-111.126 71.3-84.876 256.365-84.876 256.365s-68.514-29.732-52.735-123.541c-30.92 56.39-44.526 113.07-44.526 181.96 0 218.424 176.828 395.513 394.96 395.513 218.163 0 394.99-177.089 394.99-395.512 0-153.072-86.933-285.662-213.984-351.392zM540.992 634.614h71.503v-29.79h-71.503v29.79z m-47.687-145.007v23.844H636.34c17.2 1.334 25.149-6.614 23.844-23.844H493.305z m47.687 81.452h71.503v-27.817h-71.503v27.817zM493.305 463.79h166.878v-25.816H493.305v25.816z m-13.894 286.039c-3.974-6.614-6.643-11.922-7.948-15.896-13.256 6.642-29.79 11.921-49.66 15.896v43.713c31.792-3.973 66.862-13.923 105.296-29.79h-39.74c-1.335-3.974-3.975-8.614-7.948-13.923zM312.56 465.763c1.306 51.662 6.586 98.044 15.867 139.06H290.69c-7.948-38.406-12.59-84.73-13.895-139.06h35.767z m236.38 379.412h-31.793v-33.764h11.922c17.2 1.306 25.149-6.642 23.844-23.844V686.274h51.661v105.267c1.278 37.071-17.229 54.94-55.635 53.634z m192.694-176.797h-83.424c17.172 21.203 44.99 37.767 83.424 49.66v33.793c-1.334 0-3.973-0.667-7.948-2.001-23.844-5.28-40.407-10.587-49.66-15.896-3.974 9.282-9.282 19.232-15.896 29.819h-29.79c31.762 3.945 64.86 13.894 99.32 29.79v43.685c-42.41-22.51-82.787-36.433-121.193-41.712V759.78l9.95 1.973c7.948-15.896 13.894-33.097 17.868-51.661-14.59-10.559-27.818-24.482-39.71-41.712h-55.637c-7.948 13.255-19.87 27.18-35.765 41.712h2.001c1.306 14.62 6.614 31.792 15.896 51.661l9.921-5.946v37.738c-37.1 19.87-77.477 33.097-121.162 39.74v-37.767c-27.818-26.454-47.021-54.939-57.608-85.397-14.59 54.302-43.075 99.959-85.426 137.059V799.49c25.149-41.016 41.016-79.45 47.688-115.216 6.585-33.069 9.92-89.37 9.92-168.851V392.259h51.633v95.375c2.64-1.306 6.614-2.64 11.922-3.973 3.973-1.306 13.923-4.641 29.819-9.95v49.66c-11.922 2.669-25.846 5.308-41.742 7.948-1.334 94.04 9.254 161.598 31.792 202.615v-15.867c35.766-13.227 60.916-29.819 75.477-49.688h-79.45v-33.764h75.505v-29.79h-63.583V571.06h63.583v-27.817H439.7V408.155h274.117v77.477c1.306 39.74-15.228 58.943-49.66 57.609v27.817h63.584v33.764h-63.584v29.79h77.478v33.766z" p-id="16777"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/svgs/uparrow.svgindex 00000000,00000000..d9bc42d8new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/svgs/uparrow.svg@@@ -1,0 -1,0 +1,1 @@@++<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1758027188174" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6886" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"><path d="M771.512499 514.290159 511.614214 64.132646 251.715929 514.290159 414.441057 514.290159 414.441057 959.653483 608.786347 959.653483 608.786347 514.290159Z" p-id="6887"></path></svg>diff --cc project/aitoearn-web/src/app/[lng]/hotContent/useHotContent.tsindex 00000000,00000000..d4d54eeenew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/hotContent/useHotContent.ts@@@ -1,0 -1,0 +1,165 @@@++import { create } from "zustand";++import { combine } from "zustand/middleware";++import lodash from "lodash";++import { Platform, platformApi, PlatformRanking, RankingDate } from "@/api/hot";++import { HotType } from "@/app/[lng]/hotContent/hotContent.enum";++++export interface IHotContentStore {++ // 当前选择的 热点分类++ hotType: HotType;++ // 热门内容平台list++ hotContentPlatformList: Platform[];++ // 爆款标题平台list++ hotTitlePlatformList: Platform[];++ // 数据loading++ dataLoading: boolean;++ // 当前侧边栏二级菜单选择的ID++ twoMenuKey: string;++ // 热门内容页面loading++ pageLoading: boolean;++ // 热门内容的标签数据 key=平台,value=标签数组++ labelData: {++ [key: string]: string[];++ };++ // 热门内容的榜单数据 key=平台ID,value=榜单数据++ rankingData: {++ [key: string]: PlatformRanking[];++ };++ // 日期数据 key=平台ID,value=日期数据++ datesData: {++ [key: string]: RankingDate[];++ };++ // 当前选择的榜单分类++ currentRankCategory: string;++}++++const store: IHotContentStore = {++ hotType: HotType.hotContent,++ hotContentPlatformList: [],++ dataLoading: false,++ twoMenuKey: "",++ hotTitlePlatformList: [],++ pageLoading: false,++ labelData: {},++ rankingData: {},++ datesData: {},++ currentRankCategory: "",++};++++const getStore = () => {++ return lodash.cloneDeep(store);++};++++/**++ * 热门内容数据存储++ */++export const useHotContent = create(++ combine(++ {++ ...getStore(),++ },++ (set, get, storeApi) => {++ const methods = {++ // 设置 currentRankCategory++ setCurrentRankCategory(currentRankCategory: string) {++ set({ currentRankCategory });++ },++ // 设置 当前侧边栏二级菜单选择的ID++ setTwoMenuKey(twoMenuKey: string) {++ set({ twoMenuKey });++ },++ // 设置当前选择的 热点分类++ setHotType(hotType: HotType) {++ set({ hotType });++ },++++ // 初始化++ async init() {++ set({ pageLoading: true });++ await Promise.all([++ methods.getHotContentPlatform(),++ methods.getHotTitlePlatform(),++ ]);++ set({ pageLoading: false });++ },++++ // 获取热门内容平台++ async getHotContentPlatform() {++ const res = await platformApi.getPlatformList();++ const twoMenuKey = `${HotType.hotContent}_${res?.data?.[0]?.id}`;++++ set({++ hotContentPlatformList: res?.data,++ twoMenuKey,++ });++++ methods.changeHotContentPlatform(twoMenuKey);++ },++++ // 获取爆款标题平台++ async getHotTitlePlatform() {++ const res = await platformApi.findPlatformsWithData();++++ set({++ hotTitlePlatformList: res?.data,++ });++ },++++ // 热门内容平台切换++ async changeHotContentPlatform(platformId: string) {++ const { rankingData } = get();++ platformId = platformId.split("_")[1];++++ set({++ pageLoading: true,++ });++++ if (!rankingData[platformId]) {++ const res = await platformApi.getPlatformRanking(platformId);++ if (res?.data?.length) {++ const newRankingData = {++ ...rankingData,++ [platformId]: res.data,++ };++ set({ rankingData: newRankingData });++ }++ }++++ set({++ currentRankCategory: get().rankingData[platformId]?.[0]?.id || "",++ });++++ const rankingItem = get().rankingData[platformId].find(++ (v) => v.id === get().currentRankCategory,++ )!;++ // 获取标签和日期数据++ if (!get().labelData[platformId]) {++ await Promise.all([++ platformApi.getRankingLabel(rankingItem.id),++ platformApi.getRankingDates(rankingItem.id),++ ]).then(([labelRes, dateRes]) => {++ const newLabelData = {++ ...get().labelData,++ [platformId]: labelRes!.data,++ };++ const newDatesData = {++ ...get().datesData,++ [platformId]: dateRes!.data,++ };++ set({++ labelData: newLabelData,++ datesData: newDatesData,++ });++ });++ }++++ set({++ pageLoading: false,++ });++ },++ };++++ return methods;++ },++ ),++);diff --cc project/aitoearn-web/src/app/[lng]/income/income.module.cssindex 00000000,00000000..601c9cdenew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/income/income.module.css@@@ -1,0 -1,0 +1,472 @@@++.container {++ padding: 24px;++ min-height: 100vh;++ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);++}++++/* 页面头部样式 */++.header {++ margin-bottom: 24px;++}++++.headerContent {++ display: flex;++ justify-content: space-between;++ align-items: center;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border-radius: 16px;++ padding: 24px;++ color: white;++ box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);++ position: relative;++ overflow: hidden;++}++++.headerContent::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);++ animation: shimmer 3s ease-in-out infinite;++}++++@keyframes shimmer {++ 0%, 100% { transform: translateX(-100%); }++ 50% { transform: translateX(100%); }++}++++.headerLeft {++ display: flex;++ align-items: center;++ gap: 16px;++ position: relative;++ z-index: 1;++}++++.headerIcon {++ width: 64px;++ height: 64px;++ background: rgba(255, 255, 255, 0.2);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 28px;++ backdrop-filter: blur(10px);++ border: 2px solid rgba(255, 255, 255, 0.3);++}++++.headerText {++ flex: 1;++}++++.headerTitle {++ font-size: 28px;++ font-weight: 700;++ margin: 0 0 8px 0;++ background: linear-gradient(135deg, #ffffff, #f0f0f0);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++}++++.headerSubtitle {++ font-size: 16px;++ margin: 0;++ color: rgba(255, 255, 255, 0.9);++ font-weight: 400;++}++++.headerRight {++ position: relative;++ z-index: 1;++ display: flex;++ flex-direction: column;++ align-items: center;++ gap: 8px;++}++++.balanceCard {++ background: rgba(255, 255, 255, 0.15);++ border-radius: 12px;++ padding: 20px;++ backdrop-filter: blur(10px);++ border: 1px solid rgba(255, 255, 255, 0.2);++ display: flex;++ align-items: center;++ gap: 12px;++ min-width: 200px;++}++++++.walletLink {++ display: inline-flex;++ align-items: center;++ padding: 6px 8px;++ color: #ffffff;++ opacity: 0.9;++ cursor: pointer;++ border-radius: 8px;++ transition: all 0.2s ease;++}++++.walletLink:hover {++ background: rgba(255, 255, 255, 0.18);++ opacity: 1;++}++++.balanceIcon {++ width: 48px;++ height: 48px;++ background: rgba(255, 255, 255, 0.2);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 20px;++ color: #fff;++}++++.balanceInfo {++ flex: 1;++}++++.balanceLabel {++ font-size: 14px;++ color: rgba(255, 255, 255, 0.8);++ margin-bottom: 4px;++}++++.balanceAmount {++ font-size: 24px;++ font-weight: 700;++ color: #fff;++ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);++}++++/* 主要内容样式 */++.content {++ background: rgba(255, 255, 255, 0.95);++ border-radius: 16px;++ padding: 24px;++ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);++ backdrop-filter: blur(10px);++ border: 1px solid rgba(255, 255, 255, 0.2);++}++++/* 标签页样式 */++.content .ant-tabs > .ant-tabs-nav {++ margin-bottom: 24px;++ background: rgba(255, 255, 255, 0.5);++ border-radius: 12px;++ padding: 4px;++ backdrop-filter: blur(10px);++}++++.content .ant-tabs > .ant-tabs-nav .ant-tabs-tab {++ padding: 12px 24px;++ font-size: 16px;++ font-weight: 600;++ border-radius: 8px;++ transition: all 0.3s ease;++ margin: 0 4px;++}++++.content .ant-tabs > .ant-tabs-nav .ant-tabs-tab-active {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);++}++++.content .ant-tabs > .ant-tabs-nav .ant-tabs-tab:hover {++ background: rgba(102, 126, 234, 0.1);++ color: #667eea;++}++++.content .ant-tabs > .ant-tabs-nav .ant-tabs-tab-active:hover {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++}++++/* 卡片样式 */++.content .ant-card {++ border-radius: 12px;++ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);++ border: 1px solid rgba(0, 0, 0, 0.06);++ overflow: hidden;++}++++.content .ant-card-head {++ background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);++ border-bottom: 1px solid rgba(0, 0, 0, 0.06);++}++++.content .ant-card-head-title {++ font-size: 18px;++ font-weight: 600;++ color: #495057;++}++++/* 表格样式 */++.content .ant-table-thead > tr > th {++ background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);++ color: #495057;++ font-weight: 600;++ font-size: 14px;++ padding: 16px 12px;++ border-bottom: 2px solid #dee2e6;++}++++.content .ant-table-tbody > tr:hover > td {++ background-color: rgba(102, 126, 234, 0.05);++}++++.content .ant-table-tbody > tr > td {++ padding: 12px;++ font-size: 14px;++ border-bottom: 1px solid #f0f0f0;++}++++.content .ant-table-tbody > tr:last-child > td {++ border-bottom: none;++}++++/* 按钮样式 */++.content .ant-btn {++ border-radius: 8px;++ font-weight: 500;++ transition: all 0.3s ease;++ border: none;++ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);++}++++.content .ant-btn-primary {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++}++++.content .ant-btn-primary:hover {++ background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);++ transform: translateY(-2px);++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);++}++++.content .ant-btn-primary:disabled {++ background: #d9d9d9;++ color: rgba(0, 0, 0, 0.25);++ transform: none;++ box-shadow: none;++}++++.content .ant-btn-default {++ background: white;++ color: #495057;++ border: 1px solid #d9d9d9;++}++++.content .ant-btn-default:hover {++ background: #f8f9fa;++ border-color: #667eea;++ color: #667eea;++ transform: translateY(-1px);++}++++/* 标签样式 */++.content .ant-tag {++ border-radius: 6px;++ font-size: 12px;++ padding: 4px 8px;++ font-weight: 500;++ border: none;++}++++/* 分页样式 */++.content .ant-pagination {++ margin-top: 24px;++ text-align: center;++}++++.content .ant-pagination .ant-pagination-item {++ border-radius: 8px;++ border: 1px solid #d9d9d9;++}++++.content .ant-pagination .ant-pagination-item-active {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border-color: #667eea;++}++++.content .ant-pagination .ant-pagination-item-active a {++ color: white;++}++++.content .ant-pagination .ant-pagination-prev,++.content .ant-pagination .ant-pagination-next {++ border-radius: 8px;++ border: 1px solid #d9d9d9;++}++++/* 提现弹窗样式 */++.withdrawModalContent {++ padding: 20px 0;++}++++.withdrawInfo {++ background: #f8f9fa;++ border-radius: 12px;++ padding: 20px;++ margin-bottom: 20px;++ border: 1px solid #e9ecef;++}++++.withdrawItem {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 12px;++ padding: 8px 0;++ border-bottom: 1px solid #e9ecef;++}++++.withdrawItem:last-child {++ margin-bottom: 0;++ border-bottom: none;++}++++.withdrawLabel {++ font-weight: 600;++ color: #495057;++ font-size: 14px;++}++++.withdrawValue {++ color: #6c757d;++ font-size: 14px;++ word-break: break-all;++ max-width: 200px;++ text-align: right;++}++++.withdrawAmount {++ color: #28a745;++ font-weight: 700;++ font-size: 16px;++}++++.withdrawWarning {++ background: #fff3cd;++ border: 1px solid #ffeaa7;++ border-radius: 8px;++ padding: 16px;++ color: #856404;++}++++.withdrawWarning p {++ margin: 0 0 8px 0;++ font-size: 14px;++ line-height: 1.5;++}++++.withdrawWarning p:last-child {++ margin-bottom: 0;++}++++/* 移动端适配 */++@media (max-width: 768px) {++ .container {++ padding: 12px;++ }++++ .headerContent {++ flex-direction: column;++ gap: 20px;++ padding: 20px;++ text-align: center;++ }++++ .headerLeft {++ flex-direction: column;++ gap: 12px;++ }++++ .headerIcon {++ width: 48px;++ height: 48px;++ font-size: 20px;++ }++++ .headerTitle {++ font-size: 24px;++ }++++ .headerSubtitle {++ font-size: 14px;++ }++++ .balanceCard {++ min-width: auto;++ width: 100%;++ justify-content: center;++ }++++ .balanceAmount {++ font-size: 20px;++ }++++ .content {++ padding: 16px;++ }++++ .content .ant-tabs > .ant-tabs-nav .ant-tabs-tab {++ padding: 8px 16px;++ font-size: 14px;++ }++++ .content .ant-table-thead > tr > th,++ .content .ant-table-tbody > tr > td {++ padding: 8px 6px;++ font-size: 12px;++ }++++ .content .ant-btn {++ font-size: 12px;++ padding: 4px 8px;++ }++++ .withdrawItem {++ flex-direction: column;++ align-items: flex-start;++ gap: 4px;++ }++++ .withdrawValue {++ max-width: none;++ text-align: left;++ }++}++++@media (max-width: 480px) {++ .headerContent {++ padding: 16px;++ }++++ .headerTitle {++ font-size: 20px;++ }++++ .balanceCard {++ padding: 16px;++ }++++ .content {++ padding: 12px;++ }++++ .content .ant-tabs > .ant-tabs-nav .ant-tabs-tab {++ padding: 6px 12px;++ font-size: 12px;++ }++}diff --cc project/aitoearn-web/src/app/[lng]/income/page.tsxindex 00000000,00000000..778ec295new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/income/page.tsx@@@ -1,0 -1,0 +1,445 @@@++"use client";++++import { useEffect, useState } from "react";++import { Card, Table, Button, message, Modal, Tabs, Tag, Space, Popconfirm, Descriptions, Input, Select, Form } from "antd";++import { DollarOutlined, HistoryOutlined, WalletOutlined, CheckCircleOutlined, ClockCircleOutlined, CloseCircleOutlined } from "@ant-design/icons";++import { useParams, useRouter } from "next/navigation";++import { useUserStore } from "@/store/user";++import { apiGetIncomeList, apiSubmitWithdraw } from "@/api/income";++import { apiGetWithdrawRecordList } from "@/api/withdraw";++import { IncomeRecord } from "@/api/types/income";++import { WithdrawRecord, WithdrawRecordStatus } from "@/api/types/withdraw";++import { useTransClient } from "@/app/i18n/client";++import styles from "./income.module.css";++import WalletAccountSelect from "@/components/WalletAccountSelect";++++const { TabPane } = Tabs;++const { Option } = Select;++++export default function IncomePage() {++ const router = useRouter();++ const params = useParams();++ const { userInfo, token, lang } = useUserStore();++ const { t } = useTransClient('income');++++ // 收入记录相关状态++ const [incomeRecords, setIncomeRecords] = useState<IncomeRecord[]>([]);++ const [incomeLoading, setIncomeLoading] = useState(false);++ const [incomePagination, setIncomePagination] = useState({++ current: 1,++ pageSize: 10,++ total: 0++ });++++ // 提现记录相关状态++ const [withdrawRecords, setWithdrawRecords] = useState<WithdrawRecord[]>([]);++ const [withdrawLoading, setWithdrawLoading] = useState(false);++ const [withdrawPagination, setWithdrawPagination] = useState({++ current: 1,++ pageSize: 10,++ total: 0++ });++++ // 提现申请状态++ const [withdrawModalVisible, setWithdrawModalVisible] = useState(false);++ const [selectedIncomeRecord, setSelectedIncomeRecord] = useState<IncomeRecord | null>(null);++ const [withdrawSubmitting, setWithdrawSubmitting] = useState(false);++++ // 获取收入记录++ const fetchIncomeRecords = async (page: number = 1, pageSize: number = 10) => {++ setIncomeLoading(true);++ try {++ const response = await apiGetIncomeList({ pageNo: page, pageSize }, {});++ if (response?.data) {++ setIncomeRecords(response.data.list || []);++ setIncomePagination({++ current: page,++ pageSize,++ total: response?.data?.total || 0++ });++ } else {++ message.error(t('messages.getIncomeRecordsFailed'));++ }++ } catch (error) {++ message.error(t('messages.getIncomeRecordsFailed'));++ } finally {++ setIncomeLoading(false);++ }++ };++++ // 获取提现记录++ const fetchWithdrawRecords = async (page: number = 1, pageSize: number = 10) => {++ setWithdrawLoading(true);++ try {++ const response = await apiGetWithdrawRecordList({ pageNo: page, pageSize }, {});++ if (response?.data) {++ setWithdrawRecords(response.data.list || []);++ setWithdrawPagination({++ current: page,++ pageSize,++ total: response.data.total || 0++ });++ } else {++ message.error(t('messages.getWithdrawRecordsFailed'));++ }++ } catch (error) {++ message.error(t('messages.getWithdrawRecordsFailed'));++ } finally {++ setWithdrawLoading(false);++ }++ };++++ // 提交提现申请++ const handleWithdraw = async (incomeRecord: IncomeRecord) => {++ setSelectedIncomeRecord(incomeRecord);++ setWithdrawModalVisible(true);++ };++++ // 确认提现申请++ const [form] = Form.useForm<{ userWalletAccountId: string }>();++++ const handleConfirmWithdraw = async () => {++ if (!selectedIncomeRecord) return;++ // 仅 status = 1 的收入记录可提现(按需求说明:1=可提现,0=已申请)++ // 如果后端收入列表中没有 status 字段,这里按前端约定:仅当类型为 task 时允许(已有逻辑),并在提现接口前再行校验++++ setWithdrawSubmitting(true);++ try {++ const values = await form.validateFields();++ const response = await apiSubmitWithdraw(selectedIncomeRecord._id, values.userWalletAccountId);++ if (response) {++ message.success(t('messages.withdrawSubmitted'));++ setWithdrawModalVisible(false);++ setSelectedIncomeRecord(null);++ // 刷新提现记录++ fetchWithdrawRecords(withdrawPagination.current, withdrawPagination.pageSize);++ } else {++ message.error(t('messages.withdrawFailed'));++ }++ } catch (error) {++ message.error(t('messages.withdrawFailed'));++ } finally {++ setWithdrawSubmitting(false);++ }++ };++++ // 获取收入类型显示文本++ const getIncomeTypeText = (type: string) => {++ const typeMap: { [key: string]: { color: string; text: string } } = {++ 'task': { color: 'green', text: t('incomeTypes.task') },++ 'task_back': { color: 'orange', text: t('incomeTypes.task_back') },++ 'reward_back': { color: 'blue', text: t('incomeTypes.reward_back') },++ 'task_withdraw': { color: 'purple', text: t('incomeTypes.task_withdraw' as any) }++ };++ const config = typeMap[type] || { color: 'default', text: type };++ return <Tag color={config.color}>{config.text}</Tag>;++ };++++ // 获取提现状态显示++ const getWithdrawStatusTag = (status: WithdrawRecordStatus) => {++ const statusMap = {++ [WithdrawRecordStatus.WAIT]: { color: 'orange', text: t('withdrawStatus.wait'), icon: <ClockCircleOutlined /> },++ [WithdrawRecordStatus.SUCCESS]: { color: 'green', text: t('withdrawStatus.success'), icon: <CheckCircleOutlined /> },++ [WithdrawRecordStatus.FAIL]: { color: 'red', text: t('withdrawStatus.fail'), icon: <CloseCircleOutlined /> },++ [WithdrawRecordStatus.TASK_WITHDRAW]: { color: 'blue', text: t('withdrawStatus.task_withdraw' as any), icon: <DollarOutlined /> }++ };++ const config = statusMap[status] || { color: 'default', text: '未知状态', icon: null };++ return (++ <Tag color={config.color} icon={config.icon}>++ {config.text}++ </Tag>++ );++ };++++ // 收入记录表格列++ const incomeColumns = [++ {++ title: t('incomeId'),++ dataIndex: '_id',++ key: '_id',++ ellipsis: true,++ width: 200,++ },++ {++ title: t('amount'),++ dataIndex: 'amount',++ key: 'amount',++ render: (amount: number) => (++ <span style={{ color: '#52c41a', fontWeight: 'bold' }}>++ CNY {amount/100}++ </span>++ ),++ },++ {++ title: t('type'),++ dataIndex: 'type',++ key: 'type',++ render: (type: string) => getIncomeTypeText(type),++ },++ {++ title: t('description'),++ dataIndex: 'desc',++ key: 'desc',++ ellipsis: true,++ },++ {++ title: t('createTime'),++ dataIndex: 'createdAt',++ key: 'createdAt',++ render: (date: Date) => new Date(date).toLocaleString(),++ },++ {++ title: t('actions'),++ key: 'action',++ render: (_: any, record: IncomeRecord) => (++ <Space>++ {record.type === 'task' && record.status === 0 ? (++ <Button++ type="primary"++ size="small"++ onClick={() => handleWithdraw(record)}++ >++ {t('applyWithdraw')}++ </Button>++ ) : null}++ </Space>++ ),++ },++ ];++++ // 提现记录表格列++ const withdrawColumns = [++ {++ title: t('withdrawId'),++ dataIndex: '_id',++ key: '_id',++ ellipsis: true,++ width: 200,++ },++ {++ title: t('amount'),++ dataIndex: 'amount',++ key: 'amount',++ render: (amount: number) => (++ <span style={{ color: '#1890ff', fontWeight: 'bold' }}>++ CNY {amount/100}++ </span>++ ),++ },++ {++ title: t('status'),++ dataIndex: 'status',++ key: 'status',++ render: (status: WithdrawRecordStatus) => getWithdrawStatusTag(status),++ },++ {++ title: t('description'),++ dataIndex: 'desc',++ key: 'desc',++ ellipsis: true,++ },++ {++ title: t('createTime'),++ dataIndex: 'createdAt',++ key: 'createdAt',++ render: (date: Date) => new Date(date).toLocaleString(),++ },++ {++ title: t('updateTime'),++ dataIndex: 'updatedAt',++ key: 'updatedAt',++ render: (date: Date) => new Date(date).toLocaleString(),++ },++ ];++++ useEffect(() => {++ if (!token) {++ message.error(t('messages.pleaseLoginFirst'));++ router.push('/login');++ return;++ }++++ // 初始加载数据++ fetchIncomeRecords(1, 10);++ fetchWithdrawRecords(1, 10);++ }, [token, router]);++++ return (++ <div className={styles.container}>++ {/* 页面头部 */}++ <div className={styles.header}>++ <div className={styles.headerContent}>++ <div className={styles.headerLeft}>++ <div className={styles.headerIcon}>++ <DollarOutlined />++ </div>++ <div className={styles.headerText}>++ <h1 className={styles.headerTitle}>{t('title')}</h1>++ <p className={styles.headerSubtitle}>{t('subtitle')}</p>++ </div>++ </div>++ <div className={styles.headerRight}>++ <div className={styles.balanceCard}>++ <div className={styles.balanceIcon}>++ <WalletOutlined />++ </div>++ <div className={styles.balanceInfo}>++ <div className={styles.balanceLabel}>{t('currentBalance')}</div>++ <div className={styles.balanceAmount}>CNY {(userInfo?.income as number / 100 || 0).toFixed(2)}</div>++ </div>++ </div>++ <span++ className={styles.walletLink}++ role="button"++ onClick={() => {++ const effectiveLng = (params as any)?.lng || lang || "zh-CN";++ router.push(`/${effectiveLng}/wallet`);++ }}++ >++ {t('myWallet')}++ </span>++ </div>++ </div>++ </div>++++ {/* 主要内容 */}++ <div className={styles.content}>++ <Tabs defaultActiveKey="income" size="large">++ <TabPane++ tab={++ <span>++ <DollarOutlined /> ++ {t('incomeRecords')}++ </span>++ }++ key="income"++ >++ <Card>++ <Table++ columns={incomeColumns}++ dataSource={incomeRecords}++ loading={incomeLoading}++ rowKey="_id"++ pagination={{++ current: incomePagination.current,++ pageSize: incomePagination.pageSize,++ total: incomePagination.total,++ onChange: (page, size) => {++ fetchIncomeRecords(page, size || 10);++ },++ showSizeChanger: true,++ showQuickJumper: true,++ showTotal: (total) => t('messages.totalRecords', { total }),++ pageSizeOptions: ['10', '20', '50'],++ }}++ scroll={{ x: 800 }}++ locale={{++ emptyText: incomeLoading ? t('messages.loading') : t('messages.noIncomeRecords')++ }}++ />++ </Card>++ </TabPane>++++ <TabPane++ tab={++ <span>++ <HistoryOutlined /> ++ {t('withdrawRecords')}++ </span>++ }++ key="withdraw"++ >++ <Card>++ <Table++ columns={withdrawColumns}++ dataSource={withdrawRecords}++ loading={withdrawLoading}++ rowKey="_id"++ pagination={{++ current: withdrawPagination.current,++ pageSize: withdrawPagination.pageSize,++ total: withdrawPagination.total,++ onChange: (page, size) => {++ fetchWithdrawRecords(page, size || 10);++ },++ showSizeChanger: true,++ showQuickJumper: true,++ showTotal: (total) => t('messages.totalRecords', { total }),++ pageSizeOptions: ['10', '20', '50'],++ }}++ scroll={{ x: 800 }}++ locale={{++ emptyText: withdrawLoading ? t('messages.loading') : t('messages.noWithdrawRecords')++ }}++ />++ </Card>++ </TabPane>++ </Tabs>++ </div>++++ {/* 提现确认弹窗 */}++ <Modal++ title={t('confirmWithdraw')}++ open={withdrawModalVisible}++ onCancel={() => {++ setWithdrawModalVisible(false);++ setSelectedIncomeRecord(null);++ }}++ footer={[++ <Button key="cancel" onClick={() => {++ setWithdrawModalVisible(false);++ setSelectedIncomeRecord(null);++ }}>++ {t('cancel')}++ </Button>,++ <Button++ key="confirm"++ type="primary"++ loading={withdrawSubmitting}++ onClick={handleConfirmWithdraw}++ >++ {t('confirm')}++ </Button>++ ]}++ width={500}++ centered++ >++ {selectedIncomeRecord && (++ <div className={styles.withdrawModalContent}>++ <div className={styles.withdrawInfo}>++ <div className={styles.withdrawItem}>++ <span className={styles.withdrawLabel}>{t('incomeId')}:</span>++ <span className={styles.withdrawValue}>{selectedIncomeRecord._id}</span>++ </div>++ <div className={styles.withdrawItem}>++ <span className={styles.withdrawLabel}>{t('withdrawAmount')}:</span>++ <span className={styles.withdrawAmount}>CNY {selectedIncomeRecord.amount/100}</span>++ </div>++ <div className={styles.withdrawItem}>++ <span className={styles.withdrawLabel}>{t('incomeType')}:</span>++ <span>{getIncomeTypeText(selectedIncomeRecord.type)}</span>++ </div>++ {selectedIncomeRecord.desc && (++ <div className={styles.withdrawItem}>++ <span className={styles.withdrawLabel}>{t('description')}:</span>++ <span className={styles.withdrawValue}>{selectedIncomeRecord.desc}</span>++ </div>++ )}++ </div>++++ <Form form={form} layout="vertical">++ <Form.Item name="userWalletAccountId" label={t('myWallet')} rules={[{ required: true, message: t('messages.pleaseLoginFirst') }]}>++ <WalletAccountSelect />++ </Form.Item>++ </Form>++++ <div className={styles.withdrawWarning}>++ <p>{t('withdrawWarning')}</p>++ <p>{t('withdrawWarning2')}</p>++ </div>++ </div>++ )}++ </Modal>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/interactive/interactive.module.cssindex 00000000,00000000..f09c34d5new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/interactive/interactive.module.css@@@ -1,0 -1,0 +1,569 @@@++.container {++ min-height: 0;++ height: 100%;++}++++/* 页面头部样式 */++.header {++ margin-bottom: 24px;++}++++.headerContent {++ display: flex;++ justify-content: space-between;++ align-items: center;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border-radius: 16px;++ padding: 24px;++ color: white;++ box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);++ position: relative;++ overflow: hidden;++}++++.headerContent::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);++ animation: shimmer 3s ease-in-out infinite;++}++++@keyframes shimmer {++ 0%, 100% { transform: translateX(-100%); }++ 50% { transform: translateX(100%); }++}++++.headerLeft {++ display: flex;++ align-items: center;++ gap: 16px;++ position: relative;++ z-index: 1;++}++++.headerIcon {++ width: 64px;++ height: 64px;++ background: rgba(255, 255, 255, 0.2);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 28px;++ backdrop-filter: blur(10px);++ border: 2px solid rgba(255, 255, 255, 0.3);++}++++.headerText {++ flex: 1;++}++++.headerTitle {++ font-size: 28px;++ font-weight: 700;++ margin: 0 0 8px 0;++ background: linear-gradient(135deg, #ffffff, #f0f0f0);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++}++++.headerSubtitle {++ font-size: 16px;++ margin: 0;++ color: rgba(255, 255, 255, 0.9);++ font-weight: 400;++}++++.headerRight {++ position: relative;++ z-index: 1;++ display: flex;++ flex-direction: column;++ align-items: center;++ gap: 8px;++}++++.balanceCard {++ background: rgba(255, 255, 255, 0.15);++ border-radius: 12px;++ padding: 20px;++ backdrop-filter: blur(10px);++ border: 1px solid rgba(255, 255, 255, 0.2);++ display: flex;++ align-items: center;++ gap: 12px;++ min-width: 200px;++}++++++.walletLink {++ display: inline-flex;++ align-items: center;++ padding: 6px 8px;++ color: #ffffff;++ opacity: 0.9;++ cursor: pointer;++ border-radius: 8px;++ transition: all 0.2s ease;++}++++.walletLink:hover {++ background: rgba(255, 255, 255, 0.18);++ opacity: 1;++}++++.balanceIcon {++ width: 48px;++ height: 48px;++ background: rgba(255, 255, 255, 0.2);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 20px;++ color: #fff;++}++++.balanceInfo {++ flex: 1;++}++++.balanceLabel {++ font-size: 14px;++ color: rgba(255, 255, 255, 0.8);++ margin-bottom: 4px;++}++++.balanceAmount {++ font-size: 24px;++ font-weight: 700;++ color: #fff;++ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);++}++++/* 主要内容样式 */++.content {++ background: rgba(255, 255, 255, 0.95);++ border-radius: 16px;++ padding: 24px;++ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);++ backdrop-filter: blur(10px);++ border: 1px solid rgba(255, 255, 255, 0.2);++}++++/* 标签页样式 */++.content .ant-tabs > .ant-tabs-nav {++ margin-bottom: 24px;++ background: rgba(255, 255, 255, 0.5);++ border-radius: 12px;++ padding: 4px;++ backdrop-filter: blur(10px);++}++++.content .ant-tabs > .ant-tabs-nav .ant-tabs-tab {++ padding: 12px 24px;++ font-size: 16px;++ font-weight: 600;++ border-radius: 8px;++ transition: all 0.3s ease;++ margin: 0 4px;++}++++.content .ant-tabs > .ant-tabs-nav .ant-tabs-tab-active {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);++}++++.content .ant-tabs > .ant-tabs-nav .ant-tabs-tab:hover {++ background: rgba(102, 126, 234, 0.1);++ color: #667eea;++}++++.content .ant-tabs > .ant-tabs-nav .ant-tabs-tab-active:hover {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++}++++/* 卡片样式 */++.content .ant-card {++ border-radius: 12px;++ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);++ border: 1px solid rgba(0, 0, 0, 0.06);++ overflow: hidden;++}++++.content .ant-card-head {++ background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);++ border-bottom: 1px solid rgba(0, 0, 0, 0.06);++}++++.content .ant-card-head-title {++ font-size: 18px;++ font-weight: 600;++ color: #495057;++}++++/* 表格样式 */++.content .ant-table-thead > tr > th {++ background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);++ color: #495057;++ font-weight: 600;++ font-size: 14px;++ padding: 16px 12px;++ border-bottom: 2px solid #dee2e6;++}++++.content .ant-table-tbody > tr:hover > td {++ background-color: rgba(102, 126, 234, 0.05);++}++++.content .ant-table-tbody > tr > td {++ padding: 12px;++ font-size: 14px;++ border-bottom: 1px solid #f0f0f0;++}++++.content .ant-table-tbody > tr:last-child > td {++ border-bottom: none;++}++++/* 按钮样式 */++.content .ant-btn {++ border-radius: 8px;++ font-weight: 500;++ transition: all 0.3s ease;++ border: none;++ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);++}++++.content .ant-btn-primary {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++}++++.content .ant-btn-primary:hover {++ background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);++ transform: translateY(-2px);++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);++}++++.content .ant-btn-primary:disabled {++ background: #d9d9d9;++ color: rgba(0, 0, 0, 0.25);++ transform: none;++ box-shadow: none;++}++++.content .ant-btn-default {++ background: white;++ color: #495057;++ border: 1px solid #d9d9d9;++}++++.content .ant-btn-default:hover {++ background: #f8f9fa;++ border-color: #667eea;++ color: #667eea;++ transform: translateY(-1px);++}++++/* 标签样式 */++.content .ant-tag {++ border-radius: 6px;++ font-size: 12px;++ padding: 4px 8px;++ font-weight: 500;++ border: none;++}++++/* 分页样式 */++.content .ant-pagination {++ margin-top: 24px;++ text-align: center;++}++++.content .ant-pagination .ant-pagination-item {++ border-radius: 8px;++ border: 1px solid #d9d9d9;++}++++.content .ant-pagination .ant-pagination-item-active {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border-color: #667eea;++}++++.content .ant-pagination .ant-pagination-item-active a {++ color: white;++}++++.content .ant-pagination .ant-pagination-prev,++.content .ant-pagination .ant-pagination-next {++ border-radius: 8px;++ border: 1px solid #d9d9d9;++}++++/* 提现弹窗样式 */++.withdrawModalContent {++ padding: 20px 0;++}++++.withdrawInfo {++ background: #f8f9fa;++ border-radius: 12px;++ padding: 20px;++ margin-bottom: 20px;++ border: 1px solid #e9ecef;++}++++.withdrawItem {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 12px;++ padding: 8px 0;++ border-bottom: 1px solid #e9ecef;++}++++.withdrawItem:last-child {++ margin-bottom: 0;++ border-bottom: none;++}++++.withdrawLabel {++ font-weight: 600;++ color: #495057;++ font-size: 14px;++}++++.withdrawValue {++ color: #6c757d;++ font-size: 14px;++ word-break: break-all;++ max-width: 200px;++ text-align: right;++}++++.withdrawAmount {++ color: #28a745;++ font-weight: 700;++ font-size: 16px;++}++++.withdrawWarning {++ background: #fff3cd;++ border: 1px solid #ffeaa7;++ border-radius: 8px;++ padding: 16px;++ color: #856404;++}++++.withdrawWarning p {++ margin: 0 0 8px 0;++ font-size: 14px;++ line-height: 1.5;++}++++.withdrawWarning p:last-child {++ margin-bottom: 0;++}++++/* 移动端适配 */++@media (max-width: 768px) {++ .container {++ padding: 12px;++ }++++ .headerContent {++ flex-direction: column;++ gap: 20px;++ padding: 20px;++ text-align: center;++ }++++ .headerLeft {++ flex-direction: column;++ gap: 12px;++ }++++ .headerIcon {++ width: 48px;++ height: 48px;++ font-size: 20px;++ }++++ .headerTitle {++ font-size: 24px;++ }++++ .headerSubtitle {++ font-size: 14px;++ }++++ .balanceCard {++ min-width: auto;++ width: 100%;++ justify-content: center;++ }++++ .balanceAmount {++ font-size: 20px;++ }++++ .content {++ padding: 16px;++ }++++ .content .ant-tabs > .ant-tabs-nav .ant-tabs-tab {++ padding: 8px 16px;++ font-size: 14px;++ }++++ .content .ant-table-thead > tr > th,++ .content .ant-table-tbody > tr > td {++ padding: 8px 6px;++ font-size: 12px;++ }++++ .content .ant-btn {++ font-size: 12px;++ padding: 4px 8px;++ }++++ .withdrawItem {++ flex-direction: column;++ align-items: flex-start;++ gap: 4px;++ }++++ .withdrawValue {++ max-width: none;++ text-align: left;++ }++}++++@media (max-width: 480px) {++ .headerContent {++ padding: 16px;++ }++++ .headerTitle {++ font-size: 20px;++ }++++ .balanceCard {++ padding: 16px;++ }++++ .content {++ padding: 12px;++ }++++ .content .ant-tabs > .ant-tabs-nav .ant-tabs-tab {++ padding: 6px 12px;++ font-size: 12px;++ }++}++++/* 互动卡片瀑布流 */++.grid {++ display: grid;++ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));++ gap: 18px;++}++++.postCard {++ background: #fff;++ border: 1px solid #e9ecef;++ border-radius: 8px;++ overflow: hidden;++ display: flex;++ flex-direction: column;++}++++.thumb {++ position: relative;++ width: 100%;++ padding-top: 75%;++ background: #fafafa;++}++.thumb img {++ position: absolute;++ inset: 0;++ width: 100%;++ height: 100%;++ object-fit: cover;++}++.playIcon{++ position: absolute;++ left: 50%;++ top: 50%;++ transform: translate(-50%, -50%);++ display: inline-flex;++ align-items: center;++ justify-content: center;++ width: 56px;++ height: 56px;++ border-radius: 50%;++ background: rgba(0,0,0,0.25);++}++.thumbPlaceholder {++ position: absolute;++ inset: 0;++ display: flex; align-items: center; justify-content: center;++ color: #999;++}++.mediaType {++ position: absolute;++ left: 8px; bottom: 8px;++}++.postMeta {++ padding: 12px;++}++.postFooter {++ display: flex;++ align-items: center;++ justify-content: space-between;++ margin-top: 8px;++}++.postTitle {++ font-size: 14px; font-weight: 600; color: #111;++ line-height: 1.4; max-height: 3.2em; overflow: hidden;++}++.postContent{++ margin-top: 6px;++ font-size: 12px;++ color: #4b5563;++ line-height: 1.6;++ max-height: 4.8em;++ overflow: hidden;++}++.statsRow {++ display: flex; gap: 12px; color: #666; font-size: 12px;++}++++/* 评论弹窗布局修正 */++.replyBlock {++ width: 100%;++ margin-top: 8px;++ margin-left: 36px; /* 与头像宽度一致的缩进,避免错位 */++}++++/* 评论按钮样式(图标按钮) */++.commentBtn {++ width: 44px;++ height: 44px;++ border-radius: 8px;++ border: 1px solid #e5e7eb;++ display: inline-flex;++ align-items: center;++ justify-content: center;++}++.commentBtn:hover {++ border-color: #d1d5db;++}diff --cc project/aitoearn-web/src/app/[lng]/interactive/page.tsxindex 00000000,00000000..065a3adfnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/interactive/page.tsx@@@ -1,0 -1,0 +1,475 @@@++"use client";++++import { useEffect, useRef, useState } from "react";++import { Card, Button, message, Tag, Space, Select, Modal, Input, List, Avatar } from "antd";++import { DollarOutlined, HistoryOutlined, WalletOutlined, CommentOutlined, LikeOutlined, EyeOutlined, PlayCircleOutlined } from "@ant-design/icons";++import { useParams, useRouter } from "next/navigation";++import { useUserStore } from "@/store/user";++import { apiGetEngagementPosts, apiGetEngagementComments, apiReplyEngagementComment, apiGetPostComments, apiPublishPostComment, apiPublishCommentReply, apiGetCommentReplies } from "@/api/engagement";++import { EngagementPostItem, EngagementPlatform } from "@/api/types/engagement";++import { useTransClient } from "@/app/i18n/client";++import styles from "./interactive.module.css";++import WalletAccountSelect from "@/components/WalletAccountSelect";++import { useAccountStore } from "@/store/account";++import { useShallow } from "zustand/react/shallow";++import AccountSidebar from "@/app/[lng]/accounts/components/AccountSidebar/AccountSidebar";++// import { NoSSR } from "@kwooshung/react-no-ssr";++++const { Option } = Select;++++export default function InteractivePage() {++ const router = useRouter();++ const { lng } = useParams();++ const { userInfo, token } = useUserStore();++ const { t } = useTransClient('interactive' as any);++++ // 账户侧边栏相关++ const { accountInit, accountActive, setAccountActive } = useAccountStore(++ useShallow((state) => ({++ accountInit: state.accountInit,++ accountActive: state.accountActive,++ setAccountActive: state.setAccountActive,++ })),++ );++++ // 互动帖子列表状态++ const [posts, setPosts] = useState<EngagementPostItem[]>([]);++ const [loading, setLoading] = useState(false);++ const [pagination, setPagination] = useState({ current: 1, pageSize: 20, total: 0 });++ const [hasMore, setHasMore] = useState(true);++ const [platform, setPlatform] = useState<EngagementPlatform | undefined>(undefined);++ const loadMoreRef = useRef<HTMLDivElement | null>(null);++ // 评论状态++ const [commentVisible, setCommentVisible] = useState(false);++ const [commentLoading, setCommentLoading] = useState(false);++ const [commentPost, setCommentPost] = useState<EngagementPostItem | null>(null);++ const [comments, setComments] = useState<any[]>([]);++ const [commentsCursor, setCommentsCursor] = useState<{ before?: string; after?: string } | undefined>();++ const [commentsTotal, setCommentsTotal] = useState<number | undefined>(undefined);++ const [replyText, setReplyText] = useState('');++ const [replyTarget, setReplyTarget] = useState<{ id: string; name: string } | null>(null);++ const [sending, setSending] = useState(false);++ const replyInputRef = useRef<any>(null);++ // 二级回复:按评论ID存储++ const [repliesByComment, setRepliesByComment] = useState<Record<string, { list: any[]; cursor?: { before?: string; after?: string }; loading: boolean; expanded: boolean }>>({});++++ // 获取互动帖子++ const fetchEngagementPosts = async (page: number = 1, pageSize: number = 20) => {++ if (!accountActive?.uid || !platform) return;++ setLoading(true);++ try {++ const res = await apiGetEngagementPosts({++ platform,++ uid: accountActive.uid,++ page,++ pageSize++ });++ if (res?.data) {++ const list = res.data.posts || [];++ setPosts(prev => page === 1 ? list : [...prev, ...list]);++ const total = res.data.total || 0;++ setPagination({ current: page, pageSize, total });++ const nextHasMore = typeof (res.data as any).hasMore === 'boolean' ? (res.data as any).hasMore : (page * pageSize) < total;++ setHasMore(nextHasMore);++ }++ } finally {++ setLoading(false);++ }++ };++++ // 账户或平台变化时刷新++ useEffect(() => {++ if (accountActive?.uid && platform) {++ setPosts([]);++ setHasMore(true);++ fetchEngagementPosts(1, pagination.pageSize);++ } else {++ setPosts([]);++ setPagination((prev) => ({ ...prev, total: 0, current: 1 }));++ setHasMore(false);++ }++ // eslint-disable-next-line react-hooks/exhaustive-deps++ }, [accountActive?.uid, platform]);++++ // 当切换账户时,自动根据账户平台设置 platform 并触发刷新++ useEffect(() => {++ if (!accountActive) return;++ const type = String((accountActive as any).type || '').toLowerCase();++ const map: Record<string, EngagementPlatform> = {++ bilibili: 'bilibili',++ douyin: 'douyin',++ facebook: 'facebook',++ wxgzh: 'wxGzh',++ wxsph: 'wxGzh',++ instagram: 'instagram',++ kwai: 'KWAI',++ kuaishou: 'KWAI',++ pinterest: 'pinterest',++ threads: 'threads',++ tiktok: 'tiktok',++ twitter: 'twitter',++ xhs: 'xhs',++ redbook: 'xhs',++ youtube: 'youtube',++ };++ const mapped = map[type];++ if (mapped && mapped !== platform) {++ setPlatform(mapped);++ }++ // 如果已有 platform 则不覆盖用户手动选择++ // eslint-disable-next-line react-hooks/exhaustive-deps++ }, [accountActive?.id]);++++ const PostCard = ({ item }: { item: EngagementPostItem }) => {++ return (++ <div className={styles.postCard}>++ <a href={item.permaLink} target="_blank" className={styles.thumb}>++ {item.thumbnail ? (++ <img src={item.thumbnail} alt={item.title} />++ ) : (++ <div className={styles.thumbPlaceholder}>{t('ui.noImage')}</div>++ )}++ {/* {item.mediaType === 'video' && (++ <span className={styles.playIcon}>++ <PlayCircleOutlined style={{ fontSize: 40, color: 'rgba(255,255,255,0.95)' }} />++ </span>++ )} */}++ <span className={styles.mediaType}>++ <Tag color={item.mediaType==='video'?'blue':item.mediaType==='image'?'green':'purple'}>{t(`mediaTypes.${item.mediaType}` as any)}</Tag>++ </span>++ </a>++ <div className={styles.postMeta}>++ <div className={styles.postTitle} title={item.title}>{item.title || '-'}</div>++ {item.content && (++ <div className={styles.postContent} title={item.content}>++ {item.content}++ </div>++ )}++ <div className={styles.postFooter}>++ <div className={styles.statsRow}>++ <span><LikeOutlined style={{ marginRight: 6 }} />{item.likeCount}</span>++ <span><CommentOutlined style={{ marginRight: 6 }} />{item.commentCount}</span>++ <span><EyeOutlined style={{ marginRight: 6 }} />{item.viewCount}</span>++ </div>++ <Space size={8}>++ <Button className={styles.commentBtn} type="text" onClick={() => openComments(item)}>++ <CommentOutlined style={{ fontSize: 22 }} />++ </Button>++ </Space>++ </div>++ </div>++ </div>++ );++ };++++ const openComments = async (item: EngagementPostItem) => {++ setCommentPost(item);++ setComments([]);++ setCommentVisible(true);++ setReplyTarget(null);++ await loadCommentsV2(item.postId, undefined, undefined);++ };++++ const loadCommentsV2 = async (postId: string, before?: string, after?: string) => {++ if (!accountActive?.id || !platform) return;++ setCommentLoading(true);++ try {++ const res = await apiGetPostComments({++ accountId: accountActive.id,++ platform: platform as any,++ postId,++ pagination: { before, after, limit: 20 }++ });++ if (res?.data) {++ const list = res.data.comments || [];++ setComments((prev) => after || before ? [...prev, ...list] : list);++ setCommentsTotal(res.data.total);++ setCommentsCursor(res.data.cursor);++ }++ } finally {++ setCommentLoading(false);++ }++ };++++ const expandReplies = async (commentId: string) => {++ if (!accountActive?.id || !platform) return;++ setRepliesByComment((prev) => ({++ ...prev,++ [commentId]: { ...(prev[commentId] || { list: [], cursor: {}, expanded: true }), loading: true, expanded: true },++ }));++ const res = await apiGetCommentReplies({++ accountId: accountActive.id,++ platform: platform as any,++ commentId,++ pagination: { limit: 20 },++ });++ setRepliesByComment((prev) => ({++ ...prev,++ [commentId]: {++ list: res?.data?.comments || [],++ cursor: res?.data?.cursor,++ loading: false,++ expanded: true,++ },++ }));++ };++++ const collapseReplies = (commentId: string) => {++ setRepliesByComment((prev) => ({++ ...prev,++ [commentId]: { ...(prev[commentId] || { list: [], cursor: {} }), expanded: false, loading: false },++ }));++ };++++ const loadMoreReplies = async (commentId: string) => {++ const state = repliesByComment[commentId];++ if (!state?.cursor?.after || !accountActive?.id || !platform) return;++ setRepliesByComment((prev) => ({ ...prev, [commentId]: { ...(prev[commentId] as any), loading: true } }));++ const res = await apiGetCommentReplies({++ accountId: accountActive.id,++ platform: platform as any,++ commentId,++ pagination: { after: state.cursor.after, limit: 20 },++ });++ setRepliesByComment((prev) => ({++ ...prev,++ [commentId]: {++ list: [ ...(prev[commentId]?.list || []), ...(res?.data?.comments || []) ],++ cursor: res?.data?.cursor,++ loading: false,++ expanded: true,++ },++ }));++ };++++ /**++ * 提交帖子评论++ */++ const submitPostComment = async () => {++ if (!commentPost || !replyText.trim() || !accountActive?.id || !platform || sending) return;++ setSending(true);++ try {++ const res = await apiPublishPostComment({ accountId: accountActive.id, platform: platform as any, postId: commentPost.postId, message: replyText.trim() });++ if (res) {++ setReplyText('');++ setReplyTarget(null);++ await loadCommentsV2(commentPost.postId);++ message.success(t('messages.commentSuccess'));++ }++ } catch (error) {++ message.error(t('messages.commentFailed'));++ } finally {++ setSending(false);++ }++ };++++ /**++ * 提交评论回复++ */++ const submitReply = async (parentId?: string) => {++ if (!commentPost || !replyText.trim() || !accountActive?.id || !platform || sending) return;++ setSending(true);++ try {++ const res = await apiPublishCommentReply({ accountId: accountActive.id, platform: platform as any, commentId: parentId || '', message: replyText.trim() });++ if (res) {++ setReplyText('');++ setReplyTarget(null);++ await loadCommentsV2(commentPost.postId);++ message.success(t('messages.replySuccess'));++ }++ } catch (error) {++ message.error(t('messages.replyFailed'));++ } finally {++ setSending(false);++ }++ };++++ // 删除与收入/提现相关方法(本页不需要)++++ // 删除收入/提现相关列定义(本页不需要)++++ useEffect(() => {++ if (!token) {++ message.error(t('messages.pleaseLoginFirst'));++ router.push('/login');++ return;++ }++++ // 初始化账户++ accountInit();++ }, [token, router]);++++ // 底部自动加载更多(IntersectionObserver)++ useEffect(() => {++ if (!loadMoreRef.current) return;++ const el = loadMoreRef.current;++ const io = new IntersectionObserver((entries) => {++ const first = entries[0];++ if (first.isIntersecting && hasMore && !loading) {++ fetchEngagementPosts(pagination.current + 1, pagination.pageSize);++ }++ }, { rootMargin: '200px' });++ io.observe(el);++ return () => io.disconnect();++ }, [loadMoreRef.current, hasMore, loading, pagination.current, pagination.pageSize]);++++ return (++ <>++ <div className={styles.container} style={{ display: 'flex', gap: 16 }}>++ {/* 左侧账户选择栏 */}++ <div >++ <AccountSidebar++ activeAccountId={accountActive?.id || ''}++ onAccountChange={(account) => {++ if (account.id === accountActive?.id) {++ setAccountActive(undefined);++ } else {++ setAccountActive(account);++ }++ }}++ isInteractivePage={true}++ />++ </div>++++ {/* 右侧内容 */}++ <div style={{ flex: 1, minWidth: 0, height: '100%', overflow: 'auto' }}>++ {!accountActive?.uid ? (++ <Card style={{ height: '100%', minHeight: 360, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>++ <div style={{ textAlign: 'center', maxWidth: 520 }}>++ <div style={{++ width: 72, height: 72, borderRadius: 16, border: '1px solid #e5e7eb',++ display: 'inline-flex', alignItems: 'center', justifyContent: 'center', marginBottom: 16++ }}>++ <CommentOutlined style={{ fontSize: 36, color: '#9ca3af' }} />++ </div>++ <div style={{ fontSize: 18, fontWeight: 600, color: '#111827', marginBottom: 8 }}>{t('ui.selectChannel')}</div>++ <div style={{ color: '#6b7280' }}>{t('ui.selectChannelDesc')}</div>++ </div>++ </Card>++ ) : (++ /* 主要内容:互动帖子卡片瀑布流 */++ <div className={styles.content}>++ <div className={styles.grid}>++ {posts.map((item) => (++ <PostCard key={`${item.platform}-${item.postId}`} item={item} />++ ))}++ </div>++ <div style={{ display: 'flex', justifyContent: 'center', marginTop: 12 }}>++ {hasMore ? (++ <Button++ loading={loading}++ onClick={() => fetchEngagementPosts(pagination.current + 1, pagination.pageSize)}++ disabled={loading}++ >++ {t('ui.loadMore')}++ </Button>++ ) : (++ <span style={{ color: '#999' }}>{t('ui.noMorePosts')}</span>++ )}++ </div>++ <div ref={loadMoreRef} style={{ height: 1 }} />++ </div>++ )}++ </div>++++ {/* 评论弹窗 */}++ <Modal++ open={commentVisible}++ onCancel={() => setCommentVisible(false)}++ title={commentPost?.title || t('ui.reply')}++ footer={null}++ width={600}++ >++ <List++ itemLayout="vertical"++ loading={commentLoading}++ dataSource={comments}++ renderItem={(c: any) => {++ const canExpand = !!c.hasReplies;++ const replyState = repliesByComment[c.id];++ const expanded = !!replyState?.expanded;++ return (++ <List.Item++ style={{ alignItems: 'flex-start' }}++ actions={[++ canExpand && !expanded ? (++ <a key="expand" onClick={() => expandReplies(c.id)}>{t('ui.expandReplies')}</a>++ ) : canExpand && expanded ? (++ <a key="collapse" onClick={() => collapseReplies(c.id)}>{t('ui.collapseReplies')}</a>++ ) : null,++ <a++ key="reply"++ onClick={() => {++ const name = c.author?.username || c.author?.name || c.author?.id || '';++ setReplyTarget({ id: c.id, name });++ setTimeout(() => replyInputRef.current?.focus?.(), 0);++ }}++ >++ {t('ui.reply')}++ </a>,++ ].filter(Boolean)}++ >++ <List.Item.Meta++ avatar={<Avatar src={c.author?.avatar} />}++ title={<span>{c.author?.username || c.author?.name} · {new Date(c.createdAt).toLocaleString()}</span>}++ description={c.message}++ />++ {expanded && (++ <div className={styles.replyBlock}>++ <List++ size="small"++ itemLayout="vertical"++ dataSource={replyState?.list || []}++ loading={replyState?.loading}++ renderItem={(r: any) => (++ <List.Item>++ <List.Item.Meta++ avatar={<Avatar src={r.author?.avatar} />}++ title={<span>{r.author?.username || r.author?.name} · {new Date(r.createdAt).toLocaleString()}</span>}++ description={r.message}++ />++ </List.Item>++ )}++ />++ <div style={{ display: 'flex', justifyContent: 'flex-start', paddingLeft: 40 }}>++ <Button size="small" type="link" onClick={() => loadMoreReplies(c.id)} disabled={!replyState?.cursor?.after} loading={replyState?.loading}>++ {t('ui.loadMoreReplies')}++ </Button>++ </div>++ </div>++ )}++ </List.Item>++ );++ }}++ />++ {commentsCursor?.after && (++ <div++ style={{ textAlign: 'center', marginTop: 10, color: '#1677ff', cursor: 'pointer' }}++ onClick={() => !commentLoading && loadCommentsV2(commentPost!.postId, undefined, commentsCursor?.after)}++ >++ {commentLoading ? t('ui.loading') : t('ui.loadMoreComments')}++ </div>++ )}++ <div style={{ display: 'flex', gap: 8, marginTop: 12, paddingBottom: 20 }}>++ <Input.TextArea++ ref={replyInputRef}++ value={replyText}++ onChange={(e) => setReplyText(e.target.value)}++ rows={1}++ placeholder={replyTarget ? t('ui.replyPlaceholder', { name: replyTarget.name }) : t('ui.commentPlaceholder')}++ />++ <Button++ type="primary"++ loading={sending}++ disabled={sending || !replyText.trim()}++ onClick={() => (replyTarget ? submitReply(replyTarget.id) : submitPostComment())}++ style={{ width: 88, minWidth: 88 }}++ >++ {sending ? t('ui.sending') : t('ui.send')}++ </Button>++ </div>++ </Modal>++ </div>++ </>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/layout.tsxindex 00000000,00000000..5f7f81e5new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/layout.tsx@@@ -1,0 -1,0 +1,51 @@@++import "@/app/var.css";++import "../globals.css";++import { Providers } from "../layout/Providers";++import { dir } from "i18next";++import { languages, fallbackLng } from "@/app/i18n/settings";++import { useTranslation } from "@/app/i18n";++import ConditionalHeader from "../layout/ConditionalHeader";++++export async function generateMetadata({++ params,++}: {++ params: Promise<{ lng: string }>;++}) {++ let { lng } = await params;++ if (languages.indexOf(lng) < 0) lng = fallbackLng;++ const { t } = await useTranslation(lng);++ return {++ title: t("title"),++ description: t("content"),++ keywords: "aitoearn, AiToEarn, ai, earn, aitoearn.com",++ };++}++++export default async function RootLayout({++ children,++ params,++}: Readonly<{++ children: React.ReactNode;++ params: Promise<{ lng: string }>;++}>) {++ const { lng } = await params;++ return (++ <html lang={lng} dir={dir(lng)}>++ <body>++ <Providers lng={lng}>++ <div++ style={{++ height: "100vh",++ display: "flex",++ flexDirection: "column",++ minHeight: "0",++ }}++ >++ <ConditionalHeader />++ {children}++ </div>++ </Providers>++ </body>++ </html>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/login/login.module.cssindex 00000000,00000000..cfcb409bnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/login/login.module.css@@@ -1,0 -1,0 +1,214 @@@++.container {++ min-height: 100vh;++ display: flex;++ justify-content: center;++ align-items: center;++ background-color: var(--background-color);++ padding: 20px;++}++++.loginBox {++ width: 100%;++ max-width: 420px;++ padding: 32px;++ background: var(--card-background);++ border-radius: 16px;++ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);++}++++.title {++ font-size: 28px;++ color: var(--text-color);++ text-align: center;++ margin-bottom: 32px;++ font-weight: 600;++}++++.form {++ display: flex;++ flex-direction: column;++ gap: 20px;++}++++.inputGroup {++ position: relative;++}++++.input {++ width: 100%;++ padding: 12px 16px;++ border: 1px solid var(--border-color);++ border-radius: 8px;++ font-size: 16px;++ transition: all 0.3s;++ background: var(--card-background);++}++++.input:focus {++ outline: none;++ border-color: var(--theColor5);++ box-shadow: 0 0 0 2px rgba(216, 181, 245, 0.1);++}++++.input::placeholder {++ color: var(--grayColor6);++}++++.submitButton {++ height: 44px !important;++ font-size: 16px !important;++ font-weight: 500 !important;++ border-radius: 8px !important;++ background: var(--theColor5) !important;++ border-color: var(--theColor5) !important;++ transition: all 0.3s !important;++}++++.submitButton:hover {++ background: var(--theColor6) !important;++ border-color: var(--theColor6) !important;++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(216, 181, 245, 0.2);++}++++.submitButton:active {++ transform: scale(0.98);++}++++.divider {++ display: flex;++ align-items: center;++ margin: 24px 0;++ color: var(--grayColor6);++}++++.divider::before,++.divider::after {++ content: '';++ flex: 1;++ height: 1px;++ background: var(--border-color);++}++++.divider span {++ padding: 0 12px;++}++++.googleButtonWrapper {++ width: 100%;++ margin-bottom: 24px;++}++++.links {++ display: flex;++ justify-content: space-between;++ margin-top: 16px;++}++++.link {++ color: var(--theColor5);++ text-decoration: none;++ transition: color 0.3s;++}++++.link:hover {++ color: var(--theColor6);++ text-decoration: underline;++}++++/* Modal 样式 */++.modalWrapper :global(.ant-modal-content) {++ border-radius: 16px !important;++ overflow: hidden;++}++++.modalWrapper :global(.ant-modal-header) {++ border-bottom: 1px solid var(--border-color);++ padding: 20px 24px;++}++++.modalWrapper :global(.ant-modal-title) {++ font-size: 20px !important;++ font-weight: 600 !important;++ color: var(--text-color) !important;++}++++.modalWrapper :global(.ant-modal-body) {++ padding: 24px !important;++}++++.modalWrapper :global(.ant-form-item-label > label) {++ color: var(--text-color) !important;++ font-size: 14px !important;++}++++.modalWrapper :global(.ant-input-affix-wrapper) {++ border-radius: 8px !important;++ border-color: var(--border-color) !important;++ padding: 8px 12px !important;++ transition: all 0.3s !important;++}++++.modalWrapper :global(.ant-input-affix-wrapper:hover) {++ border-color: var(--theColor5) !important;++}++++.modalWrapper :global(.ant-input-affix-wrapper-focused) {++ border-color: var(--theColor5) !important;++ box-shadow: 0 0 0 2px rgba(216, 181, 245, 0.1) !important;++}++++.modalWrapper :global(.ant-input) {++ font-size: 16px !important;++ color: var(--text-color) !important;++}++++.modalWrapper :global(.ant-input::placeholder) {++ color: var(--grayColor6) !important;++}++++.modalWrapper :global(.ant-btn-primary) {++ height: 44px !important;++ font-size: 16px !important;++ font-weight: 500 !important;++ border-radius: 8px !important;++ background: var(--theColor5) !important;++ border-color: var(--theColor5) !important;++ transition: all 0.3s !important;++}++++.modalWrapper :global(.ant-btn-primary:hover) {++ background: var(--theColor6) !important;++ border-color: var(--theColor6) !important;++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(216, 181, 245, 0.2);++}++++.modalWrapper :global(.ant-btn-primary:active) {++ transform: scale(0.98);++}++++/* 移动端适配 */++@media (max-width: 480px) {++ .loginBox {++ padding: 24px 16px;++ box-shadow: none;++ background: transparent;++ }++++ .title {++ font-size: 24px;++ margin-bottom: 24px;++ }++++ .input {++ padding: 10px 14px;++ font-size: 15px;++ }++++ .links {++ flex-direction: column;++ align-items: center;++ gap: 12px;++ }++}diff --cc project/aitoearn-web/src/app/[lng]/login/page.tsxindex 00000000,00000000..17a30e9dnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/login/page.tsx@@@ -1,0 -1,0 +1,273 @@@++"use client";++++import { useState, useEffect } from "react";++import Link from "next/link";++import { FcGoogle } from "react-icons/fc";++import { GoogleLogin } from "@react-oauth/google";++import { message, Modal, Form, Input, Button } from "antd";++import { useRouter } from "next/navigation";++import styles from "./login.module.css";++import {++ loginWithMailApi,++ getRegistUrlApi,++ checkRegistStatusApi,++ mailRegistApi,++ googleLoginApi,++ GoogleLoginParams++} from "@/api/apiReq";++import { useUserStore } from "@/store/user";++import { useTransClient } from "@/app/i18n/client";++++export default function LoginPage() {++ const router = useRouter();++ const { setToken, setUserInfo } = useUserStore();++ const { t } = useTransClient("login");++ const [email, setEmail] = useState("");++ const [password, setPassword] = useState("");++ const [isChecking, setIsChecking] = useState(false);++ const [isModalOpen, setIsModalOpen] = useState(false);++ const [registCode, setRegistCode] = useState("");++ const [form] = Form.useForm();++ const [isActivating, setIsActivating] = useState(false);++ const [activationTimer, setActivationTimer] = useState<NodeJS.Timeout | null>(null);++ const [registUrl, setRegistUrl] = useState("");++ const [showRegistModal, setShowRegistModal] = useState(false);++++ const handleSubmit = async (e: React.FormEvent) => {++ e.preventDefault();++ try {++ const response = await loginWithMailApi({ mail: email, password });++ if (!response) return;++++ if (response.code === 0) {++ if (response.data.type === 'regist') {++ // 用户未注册,显示弹窗提示,并设置表单的默认密码值++ setRegistCode(response.data.code || '');++ form.setFieldsValue({ password: password }); // 设置密码字段的默认值++ setIsModalOpen(true);++ setIsChecking(true);++ } else if (response.data.token) {++ // 登录成功++ setToken(response.data.token);++ if (response.data.userInfo) {++ setUserInfo(response.data.userInfo);++ }++ message.success(t('loginSuccess'));++ router.push('/accounts');++ }++ } else {++ message.error(response.message || t('loginFailed'));++ }++ } catch (error) {++ message.error(t('loginError'));++ }++ };++++ const handleRegistSubmit = async (values: { password: string; code: string; inviteCode?: string }) => {++ try {++ setIsActivating(true);++++ const response = await mailRegistApi({++ mail: email,++ code: values.code,++ password: values.password,++ inviteCode: values.inviteCode || ''++ });++++ if (!response) {++ message.error(t('registerError'));++ setIsActivating(false);++ return;++ }++++ if (response.code === 0 && response.data.token) {++ // 注册成功++ setIsActivating(false);++ setIsModalOpen(false);++ form.resetFields(); // 重置表单++ setToken(response.data.token);++ if (response.data.userInfo) {++ setUserInfo(response.data.userInfo);++ }++ message.success(t('registerSuccess'));++ router.push('/accounts');++ } else {++ message.error(response.message || t('registerError'));++ setIsActivating(false);++ }++ } catch (error) {++ message.error(t('registerError'));++ setIsActivating(false);++ }++ };++++ // 组件卸载时清除定时器++ useEffect(() => {++ return () => {++ if (activationTimer) {++ clearInterval(activationTimer);++ }++ };++ }, [activationTimer]);++++ const handleGoogleSuccess = async (credentialResponse: any) => {++ console.log('credentialResponse', credentialResponse)++++ try {++ const params: any = {++ platform: 'google',++ clientId: credentialResponse.clientId,++ credential: credentialResponse.credential++ };++++ const response: any = await googleLoginApi(params);++ console.log('login response', response)++ if (!response) {++ message.error(t('googleLoginFailed'));++ return;++ }++++ if (response.code === 0) {++ if (response.data.type === 'login') {++ // 直接登录成功++ setToken(response.data.token);++ if (response.data.userInfo) {++ setUserInfo(response.data.userInfo);++ }++ message.success(t('loginSuccess'));++ router.push('/');++ }++ } else {++ message.error(response.message || t('googleLoginFailed'));++ }++ } catch (error) {++ message.error(t('googleLoginFailed'));++ }++ };++++ const handleGoogleError = () => {++ console.log(t('googleLoginFailed'));++ };++++ return (++ <div className={styles.container}>++ <div className={styles.loginBox}>++ <h1 className={styles.title}>{t('welcomeBack')}</h1>++ <form onSubmit={handleSubmit} className={styles.form}>++ <div className={styles.inputGroup}>++ <input++ type="email"++ placeholder={t('emailPlaceholder')}++ value={email}++ onChange={(e) => setEmail(e.target.value)}++ className={styles.input}++ required++ />++ </div>++ <div className={styles.inputGroup}>++ <input++ type="password"++ placeholder={t('passwordPlaceholder')}++ value={password}++ onChange={(e) => setPassword(e.target.value)}++ className={styles.input}++ required++ />++ </div>++ <Button type="primary" htmlType="submit" block className={styles.submitButton}>++ {t('login')}++ </Button>++ </form>++++ <div className={styles.divider}>++ <span>{t('or')}</span>++ </div>++++ <div className={styles.googleButtonWrapper}>++ <GoogleLogin++ onSuccess={handleGoogleSuccess}++ onError={handleGoogleError}++ useOneTap={false}++ theme="outline"++ shape="rectangular"++ text="signin_with"++ locale="zh_CN"++ width="100%"++ size="large"++ />++ </div>++++ <div className={styles.links}>++ <Link href="/forgot-password" className={styles.link}>++ {t('forgotPassword')}++ </Link>++ </div>++ </div>++++ <Modal++ title={t('completeRegistration')}++ open={isModalOpen}++ onCancel={() => {++ setIsModalOpen(false);++ setIsChecking(false);++ setIsActivating(false);++ form.resetFields(); // 重置表单++ if (activationTimer) {++ clearInterval(activationTimer);++ }++ }}++ maskClosable={false}++ keyboard={false}++ closable={true}++ footer={null}++ className={styles.modalWrapper}++ >++ <Form++ form={form}++ onFinish={handleRegistSubmit}++ layout="vertical"++ >++ <Form.Item++ label={t('emailCode')}++ name="code"++ rules={[++ { required: true, message: t('emailCodeRequired') },++ { len: 6, message: t('emailCodeLength') }++ ]}++ >++ <Input placeholder={t('enterEmailCode')} maxLength={6} />++ </Form.Item>++++ <Form.Item++ label={t('setPassword')}++ name="password"++ rules={[++ { required: true, message: t('passwordRequired') },++ { min: 6, message: t('passwordMinLength') }++ ]}++ >++ <Input.Password placeholder={t('enterPassword')} />++ </Form.Item>++++ <Form.Item++ label={t('inviteCode')}++ name="inviteCode"++ >++ <Input placeholder={t('enterInviteCode')} />++ </Form.Item>++++ <Form.Item>++ <Button++ type="primary"++ htmlType="submit"++ block++ loading={isActivating}++ >++ {isActivating ? t('registering') : t('completeRegistration')}++ </Button>++ </Form.Item>++ </Form>++ </Modal>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/material/ai-generate/ai-generate.module.scssindex 00000000,22a1403c..22a1403cmode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/material/ai-generate/ai-generate.module.scss+++ b/project/aitoearn-web/src/app/[lng]/material/ai-generate/ai-generate.module.scssdiff --cc project/aitoearn-web/src/app/[lng]/material/ai-generate/md2card.tsindex 00000000,00000000..d56d7dfcnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/material/ai-generate/md2card.ts@@@ -1,0 -1,0 +1,55 @@@++// md2card 模板类++export interface Md2CardTemplate {++ id: string;++ nameCn: string;++ nameEn: string;++ preview: string;++}++++// md2card 模板列表++export const md2CardTemplates: Md2CardTemplate[] = [++ { id: 'apple-notes', nameCn: '苹果备忘录', nameEn: 'Apple Notes', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejygkwd-1755693300269_i3zsr.png' },++ { id: 'coil-notebook', nameCn: '线圈笔记本', nameEn: 'Coil Notebook', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyhp2j-1755693351620_z3qf1a.png' },++ { id: 'pop-art', nameCn: '波普艺术', nameEn: 'Pop Art', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyie9e-1755693384983_ycwt3.png' },++ { id: 'bytedance', nameCn: '字节范', nameEn: 'ByteDance', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyirt6-1755693402547_mf8mrr.png' },++ { id: 'alibaba', nameCn: '阿里橙', nameEn: 'Alibaba', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyj4ss-1755693419439_ymw3gj.png' },++ { id: 'art-deco', nameCn: '艺术装饰', nameEn: 'Art deco', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyjvys-1755693454633_f8pkvz.png' },++ { id: 'glassmorphism', nameCn: '玻璃拟态', nameEn: 'Glass Morphism', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejykeci-1755693478356_hc6yi4.png' },++ { id: 'warm', nameCn: '温暖柔和', nameEn: 'Warm & Soft', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejylfam-1755693526276_5oqzbu.png' },++ { id: 'minimal', nameCn: '简约高级灰', nameEn: 'Minimal Gray', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejym8cz-1755693564011_018x24.png' },++ { id: 'minimalist', nameCn: '极简黑白', nameEn: 'Minimalist B&W', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejymyb5-1755693597658_isxsr.png' },++ { id: 'dreamy', nameCn: '梦幻渐变', nameEn: 'Dreamy Gradient', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejynszl-1755693637391_bh0v2e.png' },++ { id: 'nature', nameCn: '清新自然', nameEn: 'Fresh Nature', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyo6pj-1755693655181_y8gfye.png' },++ { id: 'xiaohongshu', nameCn: '紫色小红书', nameEn: 'Purple Social', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyoksz-1755693673436_ma06wb.png' },++ { id: 'notebook', nameCn: '笔记本', nameEn: 'Notebook', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyp6nx-1755693701774_q9cet.png' },++ { id: 'darktech', nameCn: '暗黑科技', nameEn: 'Dark Tech', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejypk3o-1755693719227_0drm29.png' },++ { id: 'typewriter', nameCn: '复古打字机', nameEn: 'Vintage Typewriter', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejypwo3-1755693735431_19p6s4.png' },++ { id: 'watercolor', nameCn: '水彩艺术', nameEn: 'Watercolor Art', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyqc5i-1755693755298_2kncmc.png' },++ { id: 'traditional-chinese', nameCn: '中国传统', nameEn: 'Traditional Chinese', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyqsuc-1755693777223_oa1j2.png' },++ { id: 'fairytale', nameCn: '儿童童话', nameEn: "Children's Fairy Tale", preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyrimw-1755693810619_gm7tdq.png' },++ { id: 'business', nameCn: '商务简报', nameEn: 'Business Brief', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyrzsx-1755693832927_ig6pam.png' },++ { id: 'japanese-magazine', nameCn: '日本杂志', nameEn: 'Japanese Magazine', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyslq2-1755693861264_767tr.png' },++ { id: 'cyberpunk', nameCn: '赛博朋克', nameEn: 'Cyberpunk', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyt0xp-1755693880945_yj6yts.png' },++ { id: 'meadow-dawn', nameCn: '青野晨光', nameEn: 'meadow dawn', preview: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/md2card/mejyte9q-1755693897993_t99xm.png' },++];++++// 默认的Markdown内容++export const defaultMarkdown = `# Default Markdown++++This is a sample Markdown content. You can type the content you want to convert here.++++## Features++++- Supports multiple theme styles++- Customizable size++- Split mode supported++- MDX mode supported++++## How to Use++++1. Enter your Markdown content++2. Choose a suitable theme++3. Adjust parameter settings++4. Click the generate button++`;++diff --cc project/aitoearn-web/src/app/[lng]/material/ai-generate/page copy.tsxindex 00000000,00000000..bcf5675bnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/material/ai-generate/page copy.tsx@@@ -1,0 -1,0 +1,1211 @@@++"use client";++++import { useState, useEffect, useRef, useMemo } from "react";++import { useParams, useRouter, useSearchParams } from "next/navigation";++import {++ message,++ Input,++ Button,++ Select,++ Spin,++ Tabs,++ Row,++ Col,++ Modal,++ Progress,++} from "antd";++import {++ ArrowLeftOutlined,++ RobotOutlined,++ FireOutlined,++ PictureOutlined,++ FileTextOutlined,++ UploadOutlined,++ VideoCameraOutlined,++} from "@ant-design/icons";++import styles from "./ai-generate.module.scss";++import {++ generateImage,++ generateFireflyCard,++ getImageGenerationModels,++ generateVideo,++ getVideoTaskStatus,++ getVideoGenerationModels,++ generateMd2Card,++} from "@/api/ai";++import { getOssUrl } from "@/utils/oss";++import { uploadToOss } from "@/api/oss";++import { getMediaGroupList, createMedia } from "@/api/media";++import { useTransClient } from "@/app/i18n/client";++import { md2CardTemplates, defaultMarkdown } from "./md2card";++++const { TextArea } = Input;++const { Option } = Select;++const { TabPane } = Tabs;++++export default function AIGeneratePage() {++ const params = useParams();++ const router = useRouter();++ const searchParams = useSearchParams();++ const { t } = useTransClient('material');++ const albumId = params.id as string;++ const lng = (params as any).lng as string;++ const isEnglishLang = typeof lng === "string" ? lng.toLowerCase().startsWith("en") : false;++++ // 从URL参数获取默认标签++ const defaultTab = searchParams.get('tab') || 'textToImage';++++ const [prompt, setPrompt] = useState("");++ const [size, setSize] = useState("1024x1024");++ const [n, setN] = useState(1);++ const [quality, setQuality] = useState<"standard" | "hd">("standard");++ const [style, setStyle] = useState<"vivid" | "natural">("vivid");++ const [model, setModel] = useState("");++ const [loading, setLoading] = useState(false);++ const [result, setResult] = useState<string[] | null>(null);++++ const [content, setContent] = useState("");++ const [title, setTitle] = useState("");++ const [temp, setTemp] = useState("tempA");++ const [loadingFirefly, setLoadingFirefly] = useState(false);++ const [fireflyResult, setFireflyResult] = useState<string | null>(null);++ const TEMPLATE_BASE = "https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/firefly";++ const templateList = [++ { key: "tempA", name: t('aiGenerate.templateA') },++ { key: "tempB", name: t('aiGenerate.templateB') },++ { key: "tempC", name: t('aiGenerate.templateC') },++ { key: "tempJin", name: t('aiGenerate.templateJin') },++ { key: "tempMemo", name: t('aiGenerate.templateMemo') },++ { key: "tempEasy", name: t('aiGenerate.templateEasy') },++ { key: "tempE", name: t('aiGenerate.templateE') },++ { key: "tempWrite", name: t('aiGenerate.templateWrite') },++ { key: "tempD", name: t('aiGenerate.templateD') },++ ];++++ // 视频生成相关状态++ const [videoPrompt, setVideoPrompt] = useState("");++ const [videoModel, setVideoModel] = useState("");++ const [videoSize, setVideoSize] = useState("720p");++ const [videoDuration, setVideoDuration] = useState(5);++ const [videoMode, setVideoMode] = useState("text2video");++ const [videoImage, setVideoImage] = useState("");++ const [videoImageTail, setVideoImageTail] = useState("");++ const [loadingVideo, setLoadingVideo] = useState(false);++ const [videoTaskId, setVideoTaskId] = useState<string | null>(null);++ const [videoStatus, setVideoStatus] = useState<string>("");++ const [videoResult, setVideoResult] = useState<string | null>(null);++ const [checkingStatus, setCheckingStatus] = useState(false);++ const [videoProgress, setVideoProgress] = useState(0);++++ // 首帧/尾帧上传相关++ const firstFrameInputRef = useRef<HTMLInputElement | null>(null);++ const tailFrameInputRef = useRef<HTMLInputElement | null>(null);++ const [uploadingFirstFrame, setUploadingFirstFrame] = useState(false);++ const [uploadingTailFrame, setUploadingTailFrame] = useState(false);++++ // 文件大小限制常量(字节)++ const MAX_IMAGE_SIZE = 30 * 1024 * 1024; // 30MB++++ /**++ * 检查文件大小是否在限制范围内++ */++ const checkFileSize = (file: File): boolean => {++ if (file.size > MAX_IMAGE_SIZE) {++ const sizeInMB = (MAX_IMAGE_SIZE / (1024 * 1024)).toFixed(0);++ message.error(`${t('aiGenerate.imageSizeLimit' as any)}: ${sizeInMB}MB`);++ return false;++ }++ return true;++ };++++ /**++ * 检查图片文件格式++ */++ const checkImageFormat = (file: File): boolean => {++ const allowedTypes = ['image/jpeg', 'image/jpg', 'image/png', 'image/webp'];++ if (!allowedTypes.includes(file.type)) {++ message.error(`${t('aiGenerate.imageFormatSupport' as any)}: JPG, PNG, WEBP`);++ return false;++ }++ return true;++ };++++ const handlePickFirstFrame = () => {++ firstFrameInputRef.current?.click();++ };++++ const handlePickTailFrame = () => {++ tailFrameInputRef.current?.click();++ };++++ const handleFirstFrameChange = async (e: React.ChangeEvent<HTMLInputElement>) => {++ const file = e.target.files && e.target.files[0];++ if (!file) return;++++ // 检查文件大小和格式++ if (!checkFileSize(file) || !checkImageFormat(file)) {++ if (e.target) e.target.value = "";++ return;++ }++++ try {++ setUploadingFirstFrame(true);++ const key = await uploadToOss(file);++ const url = getOssUrl(key);++ setVideoImage(url);++ message.success(t('aiGenerate.uploadSuccess'));++ } catch (err) {++ message.error(t('aiGenerate.uploadFailed'));++ } finally {++ setUploadingFirstFrame(false);++ if (e.target) e.target.value = "";++ }++ };++++ const handleTailFrameChange = async (e: React.ChangeEvent<HTMLInputElement>) => {++ const file = e.target.files && e.target.files[0];++ if (!file) return;++++ // 检查文件大小和格式++ if (!checkFileSize(file) || !checkImageFormat(file)) {++ if (e.target) e.target.value = "";++ return;++ }++++ try {++ setUploadingTailFrame(true);++ const key = await uploadToOss(file);++ const url = getOssUrl(key);++ setVideoImageTail(url);++ message.success(t('aiGenerate.uploadSuccess'));++ } catch (err) {++ message.error(t('aiGenerate.uploadFailed'));++ } finally {++ setUploadingTailFrame(false);++ if (e.target) e.target.value = "";++ }++ };++++ // md2card相关状态++ const [markdownContent, setMarkdownContent] = useState(defaultMarkdown);++ const [selectedTheme, setSelectedTheme] = useState("apple-notes");++ const [themeMode, setThemeMode] = useState("light");++ const [cardWidth, setCardWidth] = useState(440);++ const [cardHeight, setCardHeight] = useState(586);++ const [splitMode, setSplitMode] = useState("noSplit");++ const [mdxMode, setMdxMode] = useState(false);++ const [overHiddenMode, setOverHiddenMode] = useState(false);++ const [loadingMd2Card, setLoadingMd2Card] = useState(false);++ const [md2CardResult, setMd2CardResult] = useState<string | null>(null);++++ const [mediaGroups, setMediaGroups] = useState<any[]>([]);++ const [selectedMediaGroup, setSelectedMediaGroup] = useState<string | null>(++ null,++ );++ const [uploadModalVisible, setUploadModalVisible] = useState(false);++ const [uploading, setUploading] = useState(false);++ const [loadingMediaGroups, setLoadingMediaGroups] = useState(false);++++ const [imageModels, setImageModels] = useState<any[]>([]);++ const [videoModels, setVideoModels] = useState<any[]>([]);++++ // 模型积分消耗映射 - 现在从接口获取,不再写死++ // const modelCreditCosts: Record<string, number> = {++ // 'gpt-image-1': 1,++ // 'doubao-seedream-3-0-t2i-250415': 2.6++ // };++++ // 视频模型积分消耗映射 - 现在从接口获取,不再写死++ // const videoModelCreditCosts: Record<string, Record<number, Record<string, number>>> = {++ // 'doubao-seedance-1-0-pro-250528': {++ // 5: { '480p': 7.2, '720p': 16.4, '1080p': 36.7 },++ // 10: { '480p': 14.4, '720p': 32.8, '1080p': 73.4 }++ // },++ // 'doubao-seedance-1-0-lite-i2v-250428': {++ // 5: { '480p': 5, '720p': 11, '1080p': 25 },++ // 10: { '480p': 10, '720p': 22, '1080p': 45 }++ // },++ // 'doubao-seedance-1-0-lite-t2v-250428': {++ // 5: { '480p': 5, '720p': 11, '1080p': 25 },++ // 10: { '480p': 10, '720p': 22, '1080p': 45 }++ // },++ // 'wan2-1-14b-i2v-250225': {++ // 5: { '480p': 12, '720p': 12, '1080p': 36 },++ // },++ // 'wan2-1-14b-t2v-250225': {++ // 5: { '480p': 12, '720p': 12, '1080p': 36 },++ // }++ // };++++ // 获取视频模型积分消耗 - 现在从接口数据获取++ const getVideoModelCreditCost = (modelName: string, duration: number, size: string): number => {++ const model = videoModels.find(m => m.name === modelName);++ if (!model || !model.pricing || !Array.isArray(model.pricing)) return 0;++++ // 在 pricing 数组中查找匹配的 duration 和 resolution++ const pricingItem = model.pricing.find((item: any) =>++ item.duration === duration && item.resolution === size++ );++++ return pricingItem ? pricingItem.price : 0;++ };++++ // 根据模式过滤视频模型列表++ const filteredVideoModels = useMemo(() => {++ if (!Array.isArray(videoModels)) return [] as any[];++ if (videoMode === "text2video") {++ return (videoModels as any[]).filter((m: any) => (m?.modes || []).includes("text2video"));++ }++ return (videoModels as any[]).filter((m: any) => {++ const modes: string[] = m?.modes || [];++ return modes.includes("image2video");++ });++ }, [videoModels, videoMode]);++++ // 获取图片生成模型++ const fetchImageModels = async () => {++ try {++ const response: any = await getImageGenerationModels();++ if (response.data) {++ setImageModels(response.data);++ if (response.data.length > 0) {++ setModel(response.data[0].name);++ }++ }++ } catch (error) {++ console.error(t('aiGenerate.getImageModelsFailed' as any), error);++ }++ };++++ // 获取视频生成模型++ const fetchVideoModels = async () => {++ try {++ const response: any = await getVideoGenerationModels();++ if (response.data) {++ setVideoModels(response.data);++ if (response.data.length > 0) {++ const first = response.data[0];++ setVideoModel(first.name);++ // 根据第一个模型的 modes 设置默认模式++ if (first?.modes?.length) {++ if (first.modes.includes("text2video")) {++ setVideoMode("text2video");++ } else if (first.modes.includes("image2video")) {++ setVideoMode("image2video");++ }++ }++ if (first?.durations?.length) {++ setVideoDuration(first.durations[0]);++ }++ if (first?.resolutions?.length) {++ setVideoSize(first.resolutions[0]);++ }++ }++ }++ } catch (error) {++ console.error(t('aiGenerate.getVideoModelsFailed' as any), error);++ }++ };++++ useEffect(() => {++ fetchImageModels();++ fetchVideoModels();++ }, []);++++ // 模式变化时,重置模型为过滤后的第一个;切换到文生视频时清空图片++ useEffect(() => {++ if ((filteredVideoModels as any[]).length > 0) {++ if (!(filteredVideoModels as any[]).find((m: any) => m.name === videoModel)) {++ setVideoModel((filteredVideoModels as any[])[0].name);++ }++ }++ if (videoMode === 'text2video') {++ setVideoImage("");++ setVideoImageTail("");++ }++ }, [videoMode, filteredVideoModels]);++++ // 切换模型时,根据模型能力校正模式/时长/尺寸(仅校正 size/duration)++ useEffect(() => {++ if (!videoModel || !videoModels?.length) return;++ const current = (videoModels as any[]).find((m) => m.name === videoModel);++ if (!current) return;++ const { durations = [], resolutions = [] } = current || {};++ if (durations.length && !durations.includes(videoDuration)) {++ setVideoDuration(durations[0]);++ }++ if (resolutions.length && !resolutions.includes(videoSize)) {++ setVideoSize(resolutions[0]);++ }++ // 按模型能力清理不支持的首/尾帧,避免带上无效参数++ const supportedParams: string[] = (current as any)?.supportedParameters || [];++ if (!supportedParams.includes('image') && videoImage) {++ setVideoImage("");++ }++ if (!supportedParams.includes('image_tail') && videoImageTail) {++ setVideoImageTail("");++ }++ }, [videoModel, videoModels]);++++ const fetchMediaGroups = async (type: "video" | "img" = 'img') => {++ try {++ setLoadingMediaGroups(true);++ const response: any = await getMediaGroupList(1, 100, type);++ if (response.data) {++ setMediaGroups(response.data.list || []);++ }++ } catch (error) {++ message.error(t('aiGenerate.getMediaGroupListFailed'));++ } finally {++ setLoadingMediaGroups(false);++ }++ };++++ const handleTextToImage = async () => {++ if (!prompt) {++ message.error(t('aiGenerate.pleaseEnterPrompt'));++ return;++ }++++ try {++ setLoading(true);++ const response: any = await generateImage({++ prompt,++ n,++ quality,++ style,++ size,++ model,++ response_format: "url",++ });++++ if (response.data && response.data.list) {++ const imageUrls = response.data.list.map((item: any) => item.url);++ setResult(imageUrls);++ } else {++ message.error(t('aiGenerate.imageGenerationFailed'));++ }++ } catch (error) {++ message.error(t('aiGenerate.imageGenerationFailed'));++ } finally {++ setLoading(false);++ }++ };++++ const handleTextToFireflyCard = async () => {++ if (!content || !title) {++ message.error(t('aiGenerate.pleaseEnterContentAndTitle'));++ return;++ }++++ try {++ setLoadingFirefly(true);++ const response: any = await generateFireflyCard({++ content,++ temp,++ title,++ });++++ if (response.data && response.data.image) {++ setFireflyResult(response.data.image);++ } else {++ message.error(t('aiGenerate.fireflyCardGenerationFailed'));++ }++ } catch (error) {++ message.error(t('aiGenerate.fireflyCardGenerationFailed'));++ } finally {++ setLoadingFirefly(false);++ }++ };++++ const handleVideoGeneration = async () => {++ if (!videoPrompt) {++ message.error(t('aiGenerate.pleaseEnterVideoDescription'));++ return;++ }++++ if (!videoModel) {++ message.error(t('aiGenerate.pleaseSelectVideoModel'));++ return;++ }++++ // 检查必传参数 - 只在 image2video 模式下检查图片参数++ if (videoMode === 'image2video') {++ const current: any = (filteredVideoModels as any[]).find((m: any) => m.name === videoModel) || {};++ const supportedParams: string[] = current?.supportedParameters || [];++++ // 如果模型要求 image 参数但用户没有上传首帧,则拦截++ if (supportedParams.includes('image') && !videoImage) {++ message.error(t('aiGenerate.pleaseUploadFirstFrame'));++ return;++ }++++ // 如果模型要求 image_tail 参数但用户没有上传尾帧,则拦截++ if (supportedParams.includes('image_tail') && !videoImageTail) {++ message.error(t('aiGenerate.pleaseUploadTailFrame'));++ return;++ }++ }++++ try {++ setLoadingVideo(true);++ setVideoStatus("submitted");++ setVideoProgress(10);++++ const requestData: any = {++ model: videoModel,++ prompt: videoPrompt,++ size: videoSize,++ duration: videoDuration,++ };++++ // 根据当前模型能力和模式决定携带哪些帧参数++ const current: any = (filteredVideoModels as any[]).find((m: any) => m.name === videoModel) || {};++ const supportedParams: string[] = current?.supportedParameters || [];++++ // 只在 image2video 模式下携带图片参数++ if (videoMode === 'image2video') {++ if (supportedParams.includes('image') && videoImage) {++ requestData.image = videoImage;++ }++ if (supportedParams.includes('image_tail') && videoImageTail) {++ requestData.image_tail = videoImageTail;++ }++ }++++ const response: any = await generateVideo(requestData);++++ if (response.data && response.data.task_id) {++ setVideoTaskId(response.data.task_id);++ setVideoStatus(response.data.status);++ message.success(t('aiGenerate.taskSubmittedSuccess'));++++ // 开始轮询任务状态++ pollVideoTaskStatus(response.data.task_id);++ } else {++ message.error(t('aiGenerate.videoGenerationFailed'));++ setVideoStatus("");++ }++ } catch (error) {++ message.error(t('aiGenerate.videoGenerationFailed'));++ setVideoStatus("");++ } finally {++ setLoadingVideo(false);++ }++ };++++ const pollVideoTaskStatus = async (taskId: string) => {++ const checkStatus = async () => {++ try {++ setCheckingStatus(true);++ const response: any = await getVideoTaskStatus(taskId);++++ if (response.data) {++ const { status, fail_reason, progress } = response.data;++ // 规范化状态以匹配UI展示++ const up = typeof status === 'string' ? status.toUpperCase() : '';++ const normalizedStatus = up === 'SUCCESS' ? 'completed'++ : up === 'FAILED' ? 'failed'++ : up === 'PROCESSING' ? 'processing'++ : up === 'NOT_START' || up === 'NOT_STARTED' || up === 'QUEUED' || up === 'PENDING' ? 'submitted'++ : (status || '').toString().toLowerCase();++ setVideoStatus(normalizedStatus);++++ // 解析进度:可能是 "0%"、0-1 或 0-100++ let percent = 0;++ if (typeof progress === 'string') {++ const m = progress.match(/(\d+)/);++ percent = m ? Number(m[1]) : 0;++ } else if (typeof progress === 'number') {++ percent = progress > -1 ? Math.round(progress) : Math.round(progress * 100);++ }++++ if (normalizedStatus === 'completed') {++ setVideoResult(fail_reason); // 成功时 fail_reason 字段包含视频URL++ setVideoProgress(100);++ message.success(t('aiGenerate.videoGenerationSuccess'));++ return true;++ }++ if (normalizedStatus === 'failed') {++ setVideoProgress(0);++ message.error(fail_reason || t('aiGenerate.videoGenerationFailed'));++ return true;++ }++ setVideoProgress(percent);++ return false;++ }++ return false;++ } catch (error) {++ console.error(t('aiGenerate.checkVideoTaskStatusFailed'), error);++ return false;++ } finally {++ setCheckingStatus(false);++ }++ };++++ // 轮询逻辑++ const poll = async () => {++ const isCompleted = await checkStatus();++ if (!isCompleted) {++ setTimeout(poll, 5000); // 每5秒检查一次++ }++ };++++ poll();++ };++++ const handleMd2CardGeneration = async () => {++ if (!markdownContent) {++ message.error(t('aiGenerate.pleaseEnterMarkdown'));++ return;++ }++++ try {++ setLoadingMd2Card(true);++ const response: any = await generateMd2Card({++ markdown: markdownContent,++ theme: selectedTheme,++ themeMode,++ width: cardWidth,++ height: cardHeight,++ splitMode,++ mdxMode,++ overHiddenMode,++ });++++ if (response.data && response.data.images && response.data.images.length > 0) {++ setMd2CardResult(response.data.images[0].url);++ } else {++ message.error(t('aiGenerate.cardGenerationFailed'));++ }++ } catch (error) {++ message.error(t('aiGenerate.cardGenerationFailed'));++ } finally {++ setLoadingMd2Card(false);++ }++ };++++ const handleUploadToMediaGroup = async (type: string = 'img') => {++ setSelectedMediaGroup(null);++ await fetchMediaGroups(type as "video" | "img");++ setUploadModalVisible(true);++ };++++ const handleUploadConfirm = async () => {++ if (!selectedMediaGroup) {++ message.error(t('aiGenerate.pleaseSelectMediaGroup'));++ return;++ }++++ try {++ setUploading(true);++ const mediaUrl = videoResult || fireflyResult || md2CardResult;++ const mediaType = videoResult ? "video" : "img";++++ const response: any = await createMedia({++ groupId: selectedMediaGroup,++ url: mediaUrl,++ type: mediaType,++ title: videoResult ? videoPrompt : title,++ desc: "",++ });++++ if (response.data) {++ message.success(videoResult ? t('aiGenerate.videoUploadSuccess') : md2CardResult ? t('aiGenerate.cardUploadSuccess') : t('aiGenerate.uploadSuccess'));++ setUploadModalVisible(false);++ } else {++ message.error(videoResult ? t('aiGenerate.videoUploadFailed') : md2CardResult ? t('aiGenerate.cardUploadFailed') : t('aiGenerate.uploadFailed'));++ }++ } catch (error) {++ message.error(videoResult ? t('aiGenerate.videoUploadFailed') : md2CardResult ? t('aiGenerate.cardUploadFailed') : t('aiGenerate.uploadFailed'));++ } finally {++ setUploading(false);++ }++ };++++ return (++ <div className={styles.container}>++ <div className={styles.header}>++ <div className={styles.headerLeft}>++ <button className={styles.backButton} onClick={() => router.back()}>++ <ArrowLeftOutlined />++ </button>++ <p>++ <RobotOutlined /> {t('aiGenerate.title')}++ </p>++ </div>++ </div>++++ <div className={styles.content}>++ <Tabs defaultActiveKey={defaultTab} className={styles.tabs}>++ <TabPane++ tab={++ <span>++ <PictureOutlined /> {t('aiGenerate.textToImage')}++ </span>++ }++ key="textToImage"++ >++ <div className={styles.section}>++ <div className={styles.form}>++ <TextArea++ placeholder={t('aiGenerate.promptPlaceholder')}++ value={prompt}++ onChange={(e) => setPrompt(e.target.value)}++ rows={4}++ />++ <div className={styles.dimensions}>++ <Select++ placeholder={t('aiGenerate.selectSizePlaceholder')}++ value={size}++ onChange={setSize}++ style={{ width: "100%" }}++ >++ <Option value="1024x1024">1024x1024</Option>++ <Option value="1792x1024">1792x1024</Option>++ <Option value="1024x1792">1024x1792</Option>++ </Select>++ <Select++ placeholder={t('aiGenerate.generateCountPlaceholder')}++ value={n}++ onChange={setN}++ style={{ width: "100%" }}++ >++ {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(num => (++ <Option key={num} value={num}>{num}</Option>++ ))}++ </Select>++ </div>++ <div className={styles.options}>++ <Select++ placeholder={t('aiGenerate.imageQualityPlaceholder')}++ value={quality}++ onChange={setQuality}++ style={{ width: "100%" }}++ >++ <Option value="standard">{t('aiGenerate.standard')}</Option>++ <Option value="hd">{t('aiGenerate.hd')}</Option>++ </Select>++ <Select++ placeholder={t('aiGenerate.imageStylePlaceholder')}++ value={style}++ onChange={setStyle}++ style={{ width: "100%" }}++ >++ <Option value="vivid">{t('aiGenerate.vivid')}</Option>++ <Option value="natural">{t('aiGenerate.natural')}</Option>++ </Select>++ </div>++ {imageModels.length > 0 && (++ <Select++ placeholder={t('aiGenerate.selectModelPlaceholder')}++ value={model}++ onChange={setModel}++ style={{ width: "100%" }}++ >++ {imageModels.map((modelItem) => {++ const creditCost = modelItem.pricing ? parseFloat(modelItem.pricing) : 0;++ return (++ <Option key={modelItem.name} value={modelItem.name}>++ {modelItem.name} {creditCost > 0 && `(${t('aiGenerate.estimatedCreditCost' as any)} ${creditCost} ${t('aiGenerate.credits' as any)})`}++ </Option>++ );++ })}++ </Select>++ )}++ {model && (() => {++ const selectedModel = imageModels.find(m => m.name === model);++ const creditCost = selectedModel?.pricing ? parseFloat(selectedModel.pricing) : 0;++ return creditCost > 0 ? (++ <div className={styles.creditCostInfo}>++ <span style={{ color: '#1890ff', fontSize: '14px' }}>++ 💰 {t('aiGenerate.estimatedCreditCost' as any)}: {creditCost} {t('aiGenerate.credits' as any)}++ </span>++ </div>++ ) : null;++ })()}++ <Button++ type="primary"++ onClick={handleTextToImage}++ loading={loading}++ disabled={!prompt}++ icon={<PictureOutlined />}++ >++ {t('aiGenerate.generate')}++ </Button>++ </div>++ {result && (++ <div className={styles.result}>++ <Row gutter={[16, 16]}>++ {result.map((img, index) => (++ <Col key={index} xs={24} sm={12} md={8} lg={6}>++ <img++ src={img}++ alt={`${t('aiGenerate.textToImage')} ${index + 1}`}++ style={{ width: "100%", borderRadius: "8px" }}++ />++ </Col>++ ))}++ </Row>++ </div>++ )}++ </div>++ </TabPane>++ <TabPane++ tab={++ <span>++ <FireOutlined /> {t('aiGenerate.fireflyCard')}++ </span>++ }++ key="textToFireflyCard"++ >++ <div className={styles.section}>++ <div className={styles.form}>++ <Input++ placeholder={t('aiGenerate.titlePlaceholder')}++ value={title}++ onChange={(e) => setTitle(e.target.value)}++ prefix={<FileTextOutlined />}++ />++ <TextArea++ placeholder={t('aiGenerate.contentPlaceholder')}++ value={content}++ onChange={(e) => setContent(e.target.value)}++ rows={4}++ />++ <div className={styles.templateGrid}>++ {templateList.map((item) => (++ <div++ key={item.key}++ className={`${styles.templateCard} ${temp === item.key ? styles.templateCardActive : ""}`}++ onClick={() => setTemp(item.key)}++ >++ <div className={styles.templateThumb}>++ <img++ src={`${TEMPLATE_BASE}/${item.key}.png`}++ alt={`${t('aiGenerate.template')} ${item.name}`}++ />++ </div>++ <div className={styles.templateLabel}>++ {item.name}++ </div>++ </div>++ ))}++ </div>++ <Button++ type="primary"++ onClick={handleTextToFireflyCard}++ loading={loadingFirefly}++ disabled={!content || !title}++ icon={<FireOutlined />}++ >++ {t('aiGenerate.generate')}++ </Button>++ </div>++ {fireflyResult && (++ <div className={styles.result}>++ <div++ style={{++ display: "flex",++ flexDirection: "column",++ gap: "10px",++ }}++ >++ <img++ src={getOssUrl(fireflyResult)}++ alt={t('aiGenerate.fireflyCard')}++ style={{ maxWidth: "100%", borderRadius: "8px" }}++ />++ <Button++ type="primary"++ onClick={() => handleUploadToMediaGroup('img')}++ icon={<UploadOutlined />}++ style={{++ padding: "1px",++ }}++ >++ {t('aiGenerate.uploadToMediaGroup')}++ </Button>++ </div>++ </div>++ )}++ </div>++ </TabPane>++ <TabPane++ tab={++ <span>++ <VideoCameraOutlined /> {t('aiGenerate.videoGeneration')}++ </span>++ }++ key="videoGeneration"++ >++++++ <div className={styles.section}>++ <div className={styles.form}>++ <TextArea++ placeholder={t('aiGenerate.videoPromptPlaceholder')}++ value={videoPrompt}++ onChange={(e) => setVideoPrompt(e.target.value)}++ rows={4}++ />++++ {/* 模式选择:仅显示两项base Tab 下拉:文生成视频/图文转视频 */}++ <div className={styles.options}>++ <Select++ placeholder={t('aiGenerate.videoMode')}++ value={videoMode}++ onChange={setVideoMode}++ style={{ width: "100%" }}++ >++ <Option value="text2video">{t('aiGenerate.textToVideo')}</Option>++ <Option value="image2video">{t('aiGenerate.imageToVideo')}</Option>++ </Select>++ </div>++++ {Array.isArray(filteredVideoModels) && filteredVideoModels.length > 0 && (++ <div style={{ width: "100%" }}>++ <Select++ placeholder={t('aiGenerate.selectVideoModelPlaceholder')}++ value={videoModel}++ onChange={setVideoModel}++ style={{ width: "100%" }}++ >++ {(filteredVideoModels as any[]).map((modelItem: any) => {++ const creditCost = getVideoModelCreditCost(modelItem.name, videoDuration, videoSize);++ return (++ <Option key={modelItem.name} value={modelItem.name}>++ {modelItem.name} {creditCost > 0 && `(${t('aiGenerate.estimatedCreditCost' as any)} ${creditCost} ${t('aiGenerate.credits' as any)})`}++ </Option>++ );++ })}++ </Select>++ </div>++ )}++ <div className={styles.dimensions}>++ <Select++ placeholder={t('aiGenerate.videoSize')}++ value={videoSize}++ onChange={setVideoSize}++ style={{ width: "100%" }}++ >++ {(() => {++ const selected: any = (filteredVideoModels as any[]).find((m: any) => m.name === videoModel) || {};++ const sizes: string[] = selected?.resolutions || [];++ return sizes.map((s) => (++ <Option key={s} value={s}>{s}</Option>++ ));++ })()}++ </Select>++ <Select++ placeholder={t('aiGenerate.videoDuration')}++ value={videoDuration}++ onChange={setVideoDuration}++ style={{ width: "100%" }}++ >++ {(() => {++ const selected: any = (filteredVideoModels as any[]).find((m: any) => m.name === videoModel) || {};++ const durations: number[] = selected?.durations || [];++ return durations.map((d) => (++ <Option key={d} value={d}>{d}{t('aiGenerate.seconds')}</Option>++ ));++ })()}++ </Select>++ </div>++++ {/* 首帧/尾帧上传控件:按选择的模式显示 */}++ <div className={styles.options}>++ {(() => {++ const selected: any = (filteredVideoModels as any[]).find((m: any) => m.name === videoModel) || {};++ const supportedParams: string[] = selected?.supportedParameters || [];++ return (++ <>++ {videoMode === 'image2video' && supportedParams.includes('image') && (++ <div style={{ display: "flex", alignItems: "center", gap: 12, width: "100%" }}>++ <Button onClick={handlePickFirstFrame} loading={uploadingFirstFrame}>++ {t('aiGenerate.uploadImage')} - {t('aiGenerate.firstFrame')}++ </Button>++ {videoImage && (++ <img++ src={videoImage}++ alt={t('aiGenerate.firstFrame')}++ style={{ width: 160, height: 90, objectFit: 'cover', borderRadius: 6, border: '1px solid #eee' }}++ />++ )}++ <input++ type="file"++ accept="image/*"++ ref={firstFrameInputRef}++ onChange={handleFirstFrameChange}++ style={{ display: "none" }}++ />++ </div>++ )}++ {videoMode === 'image2video' && supportedParams.includes('image_tail') && (++ <div style={{ display: "flex", alignItems: "center", gap: 12, width: "100%" }}>++ <Button onClick={handlePickTailFrame} loading={uploadingTailFrame}>++ {t('aiGenerate.uploadImage')} - {t('aiGenerate.tailFrame')}++ </Button>++ {videoImageTail && (++ <img++ src={videoImageTail}++ alt={t('aiGenerate.tailFrame')}++ style={{ width: 160, height: 90, objectFit: 'cover', borderRadius: 6, border: '1px solid #eee' }}++ />++ )}++ <input++ type="file"++ accept="image/*"++ ref={tailFrameInputRef}++ onChange={handleTailFrameChange}++ style={{ display: "none" }}++ />++ </div>++ )}++ </>++ );++ })()}++ </div>++++ {/* 显示当前选择的视频模型积分消耗 */}++ {videoModel && videoDuration && videoSize && (++ <div className={styles.creditCostInfo}>++ <span style={{ color: '#1890ff', fontSize: '14px' }}>++ 💰 {t('aiGenerate.estimatedCreditCost' as any)}: {getVideoModelCreditCost(videoModel, videoDuration, videoSize)} {t('aiGenerate.credits' as any)}++ </span>++ </div>++ )}++++ <Button++ type="primary"++ onClick={handleVideoGeneration}++ loading={loadingVideo}++ disabled={!videoPrompt || !videoModel}++ icon={<VideoCameraOutlined />}++ >++ {t('aiGenerate.generate')}++ </Button>++ </div>++++ {/* 视频生成状态和结果 */}++ {(videoStatus || videoResult) && (++ <div className={styles.result}>++ {videoStatus && (++ <div style={{ marginBottom: "16px" }}>++ <div style={{ marginBottom: "8px" }}>++ <strong>{t('aiGenerate.taskStatus')}: </strong>++ {videoStatus === "submitted" && t('aiGenerate.taskSubmitted')}++ {videoStatus === "processing" && t('aiGenerate.taskProcessing')}++ {videoStatus === "completed" && t('aiGenerate.taskCompleted')}++ {videoStatus === "failed" && t('aiGenerate.taskFailed')}++ </div>++ {videoProgress > 0 && videoProgress < 100 && (++ <Progress percent={videoProgress} status="active" />++ )}++ </div>++ )}++++ {videoResult && (++ <div++ style={{++ display: "flex",++ flexDirection: "column",++ gap: "10px",++ }}++ >++ <video++ src={getOssUrl(videoResult)}++ controls++ style={{ maxWidth: "100%", borderRadius: "8px" }}++ />++ <Button++ type="primary"++ onClick={() => handleUploadToMediaGroup('video')}++ icon={<UploadOutlined />}++ style={{++ padding: "1px",++ }}++ >++ {t('aiGenerate.uploadToMediaGroup')}++ </Button>++ </div>++ )}++ </div>++ )}++++ {/* 图片要求提示 */}++ <div className={styles.imageRequirements}>++ <h4>{t('aiGenerate.imageRequirements' as any)}</h4>++ <div className={styles.requirementsList}>++ <div className={styles.requirementItem}>++ <span className={styles.requirementLabel}>{t('aiGenerate.aspectRatioRange' as any)}:</span>++ <span className={styles.requirementValue}>{t('aiGenerate.aspectRatioRangeValue' as any)}</span>++ </div>++ <div className={styles.requirementItem}>++ <span className={styles.requirementLabel}>{t('aiGenerate.dimensionRange' as any)}:</span>++ <span className={styles.requirementValue}>{t('aiGenerate.dimensionRangeValue' as any)}</span>++ </div>++ <div className={styles.requirementItem}>++ <span className={styles.requirementLabel}>{t('aiGenerate.imageSizeLimit' as any)}:</span>++ <span className={styles.requirementValue}>{t('aiGenerate.imageSizeLimitValue' as any)}</span>++ </div>++ <div className={styles.requirementItem}>++ <span className={styles.requirementLabel}>{t('aiGenerate.imageFormatSupport' as any)}:</span>++ <span className={styles.requirementValue}>{t('aiGenerate.imageFormatSupportValue' as any)}</span>++ </div>++ </div>++ </div>++ </div>++ </TabPane>++ <TabPane++ tab={++ <span>++ <FileTextOutlined /> {t('aiGenerate.markdownToCard')}++ </span>++ }++ key="md2card"++ >++ <div className={styles.section}>++ <div className={styles.form}>++ <TextArea++ placeholder={t('aiGenerate.markdownPlaceholder')}++ value={markdownContent}++ onChange={(e) => setMarkdownContent(e.target.value)}++ rows={8}++ />++ <div className={styles.dimensions}>++ <Select++ placeholder={t('aiGenerate.themeModePlaceholder')}++ value={themeMode}++ onChange={setThemeMode}++ style={{ width: "100%" }}++ >++ <Option value="light">{t('aiGenerate.lightMode')}</Option>++ <Option value="dark">{t('aiGenerate.darkMode')}</Option>++ </Select>++ </div>++ <div className={styles.templateGrid}>++ {md2CardTemplates.map((theme) => (++ <div++ key={theme.id}++ className={`${styles.templateCard} ${selectedTheme === theme.id ? styles.templateCardActive : ""}`}++ onClick={() => setSelectedTheme(theme.id)}++ >++ <div className={styles.templateThumb}>++ <img src={theme.preview} alt={isEnglishLang ? theme.nameEn : theme.nameCn} />++ </div>++ <div className={styles.templateLabel}>{isEnglishLang ? theme.nameEn : theme.nameCn}</div>++ </div>++ ))}++ </div>++ <div className={styles.options}>++ <Input++ placeholder={t('aiGenerate.cardWidthPlaceholder')}++ type="number"++ value={cardWidth}++ onChange={(e) => setCardWidth(Number(e.target.value))}++ style={{ width: "100%" }}++ />++ <Input++ placeholder={t('aiGenerate.cardHeightPlaceholder')}++ type="number"++ value={cardHeight}++ onChange={(e) => setCardHeight(Number(e.target.value))}++ style={{ width: "100%" }}++ />++ </div>++ <div className={styles.options}>++ <Select++ placeholder={t('aiGenerate.splitModePlaceholder')}++ value={splitMode}++ onChange={setSplitMode}++ style={{ width: "100%" }}++ >++ <Option value="noSplit">{t('aiGenerate.noSplit')}</Option>++ <Option value="split">{t('aiGenerate.split')}</Option>++ </Select>++ <div style={{ display: "flex", gap: "8px", alignItems: "center" }}>++ <label>++ <input++ type="checkbox"++ checked={mdxMode}++ onChange={(e) => setMdxMode(e.target.checked)}++ />++ {t('aiGenerate.mdxMode')}++ </label>++ <label>++ <input++ type="checkbox"++ checked={overHiddenMode}++ onChange={(e) => setOverHiddenMode(e.target.checked)}++ />++ {t('aiGenerate.overHiddenMode')}++ </label>++ </div>++ </div>++ <Button++ type="primary"++ onClick={handleMd2CardGeneration}++ loading={loadingMd2Card}++ disabled={!markdownContent}++ icon={<FileTextOutlined />}++ >++ {t('aiGenerate.generateCard')}++ </Button>++ </div>++ {md2CardResult && (++ <div className={styles.result}>++ <div++ style={{++ display: "flex",++ flexDirection: "column",++ gap: "10px",++ }}++ >++ <img++ src={getOssUrl(md2CardResult)}++ alt={t('aiGenerate.markdownCard')}++ style={{ maxWidth: "100%", borderRadius: "8px" }}++ />++ <Button++ type="primary"++ onClick={() => handleUploadToMediaGroup('img')}++ icon={<UploadOutlined />}++ style={{++ padding: "1px",++ }}++ >++ {t('aiGenerate.uploadToMediaGroup')}++ </Button>++ </div>++ </div>++ )}++ </div>++ </TabPane>++ </Tabs>++ </div>++++ <Modal++ title={t('aiGenerate.selectMediaGroup')}++ open={uploadModalVisible}++ onOk={handleUploadConfirm}++ onCancel={() => setUploadModalVisible(false)}++ confirmLoading={uploading}++ >++ <Select++ placeholder={t('aiGenerate.selectMediaGroupPlaceholder')}++ value={selectedMediaGroup}++ onChange={setSelectedMediaGroup}++ style={{ width: "100%" }}++ loading={loadingMediaGroups}++ >++ {mediaGroups.map((group) => (++ <Option key={group._id} value={group._id}>++ {group.title} - {group.type}++ </Option>++ ))}++ </Select>++ </Modal>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/material/ai-generate/page.tsxindex 00000000,a4f0befc..a4f0befcmode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/material/ai-generate/page.tsx+++ b/project/aitoearn-web/src/app/[lng]/material/ai-generate/page.tsxdiff --cc project/aitoearn-web/src/app/[lng]/material/album/[id]/album.module.scssindex 00000000,00000000..fd8b3d02new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/material/album/[id]/album.module.scss@@@ -1,0 -1,0 +1,294 @@@++.container {++ padding: 24px;++ width: 100%;++ margin: 0 auto;++ box-sizing: border-box;++}++++.header {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 32px;++++ h2 {++ margin: 0;++ font-size: 24px;++ color: #333;++ }++}++++.uploadButton {++ background-color: var(--theColor5);++ color: white;++ border: none;++ padding: 8px 16px;++ border-radius: 4px;++ cursor: pointer;++ display: flex;++ align-items: center;++ gap: 8px;++ transition: all 0.3s ease;++++ &:hover {++ background-color: var(--theColor6);++ }++++ &:active {++ background-color: var(--theColor7);++ }++}++++.mediaGrid {++ display: grid;++ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));++ gap: 24px;++}++++.mediaCard {++ background: white;++ border-radius: 8px;++ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);++ overflow: hidden;++ transition: transform 0.3s, box-shadow 0.3s;++++ &:hover {++ transform: translateY(-4px);++ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);++ }++}++++.mediaWrapper {++ position: relative;++ padding-top: 75%;++ background: #f5f5f5;++ cursor: pointer;++++ img, video, audio {++ position: absolute;++ top: 0;++ left: 0;++ width: 100%;++ height: 100%;++ object-fit: cover;++ }++}++++.mediaActions {++ position: absolute;++ top: 8px;++ right: 8px;++ display: flex;++ gap: 8px;++ opacity: 0;++ transition: opacity 0.3s;++}++++.mediaWrapper:hover .mediaActions {++ opacity: 1;++}++++.headerActions{++ display: flex;++ flex-direction: row;++ align-items: center;++ gap: 10px;++}++++.actionButton {++ background: rgba(255, 255, 255, 0.9);++ border: none;++ padding: 6px 12px;++ border-radius: 4px;++ cursor: pointer;++ display: flex;++ align-items: center;++ gap: 4px;++ font-size: 14px;++ color: var(--theColor5);++ transition: all 0.3s ease;++++ &:hover {++ background: white;++ color: var(--theColor6);++ }++++ &:active {++ color: var(--theColor7);++ }++++ &.delete {++ color: var(--error-color);++++ &:hover {++ color: #ff7875;++ }++++ &:active {++ color: #d9363e;++ }++ }++}++++.mediaInfo {++ padding: 16px;++++ h3 {++ margin: 0 0 8px 0;++ font-size: 16px;++ color: #333;++ }++++ p {++ margin: 0;++ color: #666;++ font-size: 14px;++ }++}++++.emptyState {++ text-align: center;++ padding: 48px 24px;++ background: white;++ border-radius: 8px;++ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);++++ h3 {++ margin: 0 0 16px 0;++ color: #333;++ }++++ p {++ color: #666;++ margin-bottom: 24px;++ }++}++++.modal {++ position: fixed;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: rgba(0, 0, 0, 0.8);++ display: flex;++ align-items: center;++ justify-content: center;++ z-index: 1000;++}++++.modalContent {++ background: white;++ padding: 24px;++ border-radius: 8px;++ width: 90%;++ max-width: 1200px;++ max-height: 90vh;++ display: flex;++ flex-direction: column;++ gap: 16px;++}++++.modalHeader {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 8px;++++ h3 {++ margin: 0;++ font-size: var(--fs-lg);++ color: var(--text-primary);++ }++++ button {++ background: none;++ border: none;++ font-size: 24px;++ cursor: pointer;++ color: var(--grayColor8);++ padding: 4px;++ line-height: 1;++++ &:hover {++ color: var(--text-primary);++ }++ }++}++++.previewContent {++ flex: 1;++ display: flex;++ align-items: center;++ justify-content: center;++ min-height: 0;++ overflow: hidden;++++ img, video, audio {++ max-width: 100%;++ max-height: calc(90vh - 100px);++ object-fit: contain;++ }++++ video {++ width: 100%;++ height: auto;++ }++++ audio {++ width: 100%;++ }++}++++.form {++ display: flex;++ flex-direction: column;++ gap: 16px;++}++++.formGroup {++ display: flex;++ flex-direction: column;++ gap: 8px;++++ label {++ font-weight: 500;++ color: #333;++ }++++ input, textarea {++ padding: 8px 12px;++ border: 1px solid #d9d9d9;++ border-radius: 4px;++ font-size: 14px;++++ &:focus {++ outline: none;++ border-color: #40a9ff;++ }++ }++++ textarea {++ min-height: 100px;++ resize: vertical;++ }++}++++.submitButton {++ background: var(--theColor5);++ color: white;++ border: none;++ padding: 8px 16px;++ border-radius: 4px;++ cursor: pointer;++ align-self: flex-start;++ transition: all 0.3s ease;++++ &:hover {++ background: var(--theColor6);++ }++++ &:active {++ background: var(--theColor7);++ }++}diff --cc project/aitoearn-web/src/app/[lng]/material/album/[id]/albumDetailCore.tsxindex 00000000,00000000..5baea5f4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/material/album/[id]/albumDetailCore.tsx@@@ -1,0 -1,0 +1,119 @@@++"use client";++++import { useEffect, useState } from "react";++import { Card, Row, Col, Typography, Button, Upload, message } from "antd";++import { useRouter } from "next/navigation";++import { PlusOutlined, PlayCircleOutlined, PictureOutlined, SoundOutlined } from "@ant-design/icons";++import styles from "./albumDetail.module.scss";++++const { Title } = Typography;++++interface Material {++ id: string;++ name: string;++ url: string;++ type: 'video' | 'img';++ createTime: string;++}++++interface AlbumDetailCoreProps {++ albumId: string;++}++++export const AlbumDetailCore = ({ albumId }: AlbumDetailCoreProps) => {++ const router = useRouter();++ const [materials, setMaterials] = useState<Material[]>([]);++ const [albumInfo, setAlbumInfo] = useState({++ name: "视频素材",++ type: "video" as 'video' | 'img',++ count: 0++ });++++ useEffect(() => {++ // 这里应该调用API获取素材库信息和素材列表++ // 暂时使用模拟数据++ setMaterials([++ {++ id: "1",++ name: "示例视频1",++ url: "https://example.com/video1.mp4",++ type: "video",++ createTime: "2024-01-01"++ },++ // 更多素材...++ ]);++ }, [albumId]);++++ const handleUpload = (file: File) => {++ // 这里应该调用API上传素材++ message.success('上传成功');++ return false;++ };++++ const getTypeIcon = (type: string) => {++ switch (type) {++ case 'video':++ return <PlayCircleOutlined />;++ case 'img':++ return <PictureOutlined />;++ case 'audio':++ return <SoundOutlined />;++ default:++ return null;++ }++ };++++ return (++ <div className={styles.albumDetailContainer}>++ <div className={styles.header}>++ <div className={styles.titleSection}>++ <Title level={2}>{albumInfo.name}</Title>++ <span className={styles.typeTag}>++ {albumInfo.type === 'video' ? '视频' : '图片'}++ </span>++ </div>++ <Upload++ accept={albumInfo.type === 'video' ? 'video/*' : 'image/*'}++ showUploadList={false}++ beforeUpload={handleUpload}++ >++ <Button type="primary" icon={<PlusOutlined />}>++ 上传素材++ </Button>++ </Upload>++ </div>++++ <Row gutter={[24, 24]}>++ {materials.map((material) => (++ <Col xs={24} sm={12} md={8} lg={6} key={material.id}>++ <Card++ hoverable++ cover={++ <div className={styles.coverWrapper}>++ <img alt={material.name} src={material.url} />++ {material.type === 'video' && (++ <div className={styles.videoIcon}>++ <PlayCircleOutlined />++ </div>++ )}++ </div>++ }++ >++ <Card.Meta++ title={material.name}++ description={++ <div className={styles.materialInfo}>++ <span>{material.createTime}</span>++ <span className={styles.typeIcon}>++ {getTypeIcon(material.type)}++ </span>++ </div>++ }++ />++ </Card>++ </Col>++ ))}++ </Row>++ </div>++ );++};diff --cc project/aitoearn-web/src/app/[lng]/material/album/[id]/page.tsxindex 00000000,0095d059..0095d059mode 000000,100644..100644--- a/project/aitoearn-web/src/app/[lng]/material/album/[id]/page.tsx+++ b/project/aitoearn-web/src/app/[lng]/material/album/[id]/page.tsxdiff --cc project/aitoearn-web/src/app/[lng]/material/materialPageCore.tsxindex 00000000,00000000..2304407fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/material/materialPageCore.tsx@@@ -1,0 -1,0 +1,536 @@@++"use client";++++import { useState, useEffect, useRef } from "react";++import { useRouter } from "next/navigation";++import { Input, Modal, Popconfirm, Select, message } from "antd";++import { useTransClient } from "@/app/i18n/client";++import {++ PlusOutlined,++ VideoCameraOutlined,++ PictureOutlined,++ FolderOutlined,++ EditOutlined,++ DeleteOutlined,++ RobotOutlined++} from "@ant-design/icons";++import styles from "./styles/material.module.scss";++import { createMediaGroup, getMediaGroupList, deleteMediaGroup, updateMediaGroupInfo } from "@/api/media";++import { getOssUrl } from "@/utils/oss";++++const { Option } = Select;++const { TextArea } = Input;++++interface MediaGroup {++ _id: string;++ title: string;++ desc: string;++ cover: string;++ count: number;++ type: 'video' | 'img';++ mediaList?: {++ list: Array<{++ _id: string;++ url: string;++ type: 'video' | 'img';++ }>;++ total: number;++ };++ previewMedia?: {++ type: 'video' | 'img';++ url: string;++ } | null;++}++++// 视频预览组件 - 由于 CORS 问题,直接显示预览框++const VideoThumbnail = ({ videoUrl, className, onLoad }: {++ videoUrl: string;++ className?: string;++ onLoad?: (thumbnail: string) => void;++}) => {++ // 直接显示视频预览框,不尝试加载视频(避免 CORS 问题)++ return (++ <div className={`${className} ${styles.videoPreview}`}>++ <div className={styles.videoPreviewContent}>++ <VideoCameraOutlined className={styles.videoPreviewIcon} />++ <div className={styles.videoPreviewText}>视频预览</div>++ <div className={styles.videoPreviewPlayButton}>++ <svg width="24" height="24" viewBox="0 0 24 24" fill="none">++ <path d="M8 5v14l11-7z" fill="currentColor"/>++ </svg>++ </div>++ </div>++ </div>++ );++};++++export const MaterialPageCore = () => {++ const router = useRouter();++ const { t } = useTransClient("material");++ const [groups, setGroups] = useState<MediaGroup[]>([]);++ const [loading, setLoading] = useState(false);++ const [currentPage, setCurrentPage] = useState(1);++ const [total, setTotal] = useState(0);++ const pageSize = 12;++++ const [isModalVisible, setIsModalVisible] = useState(false);++ const [isEditModalVisible, setIsEditModalVisible] = useState(false);++ const [newGroupTitle, setNewGroupTitle] = useState("");++ const [newGroupDesc, setNewGroupDesc] = useState("");++ const [newGroupType, setNewGroupType] = useState<'video' | 'img'>('video');++ const [editingGroup, setEditingGroup] = useState<MediaGroup | null>(null);++++ useEffect(() => {++ fetchGroups();++ }, [currentPage]);++++ const fetchGroups = async () => {++ try {++ setLoading(true);++ const response:any = await getMediaGroupList(currentPage, pageSize);++ if (response?.data) {++ // 处理每个组的封面和资源数量++ const processedGroups = response.data.list.map((group: MediaGroup) => {++ const mediaList = group.mediaList;++++ // 查找第一个视频或图片作为预览++ let previewMedia = null;++ if (mediaList && mediaList.list.length > 0) {++ // 优先查找视频,如果没有视频则使用图片++ previewMedia = mediaList.list.find(media => media.type === 'video') || mediaList.list[0];++ console.log('Found preview media for group:', group.title, previewMedia);++ }++++ const processedGroup = {++ ...group,++ // 使用找到的预览媒体作为封面++ cover: previewMedia ? getOssUrl(previewMedia.url) : group.cover,++ // 使用 mediaList 的 total 作为资源数量++ count: mediaList ? mediaList.total : group.count,++ // 保存预览媒体的类型和URL信息++ previewMedia: previewMedia ? {++ type: previewMedia.type,++ url: previewMedia.url++ } : null++ };++++ return processedGroup;++ });++ setGroups(processedGroups);++ setTotal(response.data.total);++ }++ } catch (error) {++ message.error(t('mediaManagement.getListFailed'));++ } finally {++ setLoading(false);++ }++ };++++ const handleGroupClick = (group: MediaGroup) => {++ // 通过 URL 参数传递组信息++ const params = new URLSearchParams({++ title: group.title,++ type: group.type,++ desc: group.desc++ });++ router.push(`/material/album/${group._id}?${params.toString()}`);++ };++++ const handleCreateGroup = async () => {++ if (!newGroupTitle) return;++++ try {++ await createMediaGroup({++ title: newGroupTitle,++ desc: newGroupDesc,++ type: newGroupType++ });++ message.success(t('mediaManagement.createSuccess'));++ fetchGroups();++ setIsModalVisible(false);++ setNewGroupTitle("");++ setNewGroupDesc("");++ } catch (error) {++ message.error(t('mediaManagement.createFailed'));++ }++ };++++ const handleDeleteGroup = async (groupId: string) => {++ try {++ await deleteMediaGroup(groupId);++ message.success(t('mediaManagement.deleteSuccess'));++ fetchGroups();++ } catch (error) {++ message.error(t('mediaManagement.deleteFailed'));++ }++ };++++ const handleUpdateGroup = async () => {++ if (!editingGroup || !newGroupTitle) return;++++ try {++ await updateMediaGroupInfo(editingGroup._id, {++ title: newGroupTitle,++ desc: newGroupDesc,++ type: newGroupType++ });++ message.success(t('mediaManagement.updateSuccess'));++ fetchGroups();++ setIsEditModalVisible(false);++ setEditingGroup(null);++ setNewGroupTitle("");++ setNewGroupDesc("");++ } catch (error) {++ message.error(t('mediaManagement.updateFailed'));++ }++ };++++ const showEditModal = (group: MediaGroup) => {++ setEditingGroup(group);++ setNewGroupTitle(group.title);++ setNewGroupDesc(group.desc);++ setNewGroupType(group.type);++ setIsEditModalVisible(true);++ };++++ // 获取封面图片或图标++ const getCoverDisplay = (group: MediaGroup) => {++ // 如果有预览媒体,优先显示预览媒体++ if (group.previewMedia) {++ console.log('Using preview media:', group.previewMedia);++ if (group.previewMedia.type === 'video') {++ const videoUrl = getOssUrl(group.previewMedia.url);++ console.log('Video URL:', videoUrl);++ return (++ <div className={styles.coverContent}>++ <VideoThumbnail++ videoUrl={videoUrl}++ className={styles.coverImage}++ />++ <div className={styles.videoTypeIcon}>++ <VideoCameraOutlined />++ </div>++ </div>++ );++ } else {++ return (++ <div className={styles.coverContent}>++ <img++ alt={group.title}++ src={getOssUrl(group.previewMedia.url)}++ className={styles.coverImage}++ />++ <div className={styles.imageTypeIcon}>++ <PictureOutlined />++ </div>++ </div>++ );++ }++ }++++ // 如果没有预览媒体但有 mediaList,尝试使用第一个媒体++ if (group.mediaList?.list && group.mediaList.list.length > 0) {++ const firstMedia = group.mediaList.list[0];++ console.log('Using first media from mediaList:', firstMedia);++++ if (firstMedia.type === 'video') {++ const videoUrl = getOssUrl(firstMedia.url);++ console.log('Video URL from mediaList:', videoUrl);++ return (++ <div className={styles.coverContent}>++ <VideoThumbnail++ videoUrl={videoUrl}++ className={styles.coverImage}++ />++ <div className={styles.videoTypeIcon}>++ <VideoCameraOutlined />++ </div>++ </div>++ );++ } else {++ return (++ <div className={styles.coverContent}>++ <img++ alt={group.title}++ src={getOssUrl(firstMedia.url)}++ className={styles.coverImage}++ />++ <div className={styles.imageTypeIcon}>++ <PictureOutlined />++ </div>++ </div>++ );++ }++ }++++ // 如果有封面图片,显示图片++ if (group.cover && group.cover !== '') {++ return (++ <div className={styles.coverContent}>++ {group.type === 'video' ? (++ <div className={styles.videoTypeIcon}>++ <VideoCameraOutlined />++ <VideoThumbnail++ videoUrl={group.cover}++ className={styles.coverImage}++ />++ </div>++ ) : (++ <img++ alt={group.title}++ src={group.cover}++ className={styles.coverImage}++ />++ )}++ </div>++ );++ }++++ // 如果mediaList存在且有内容,显示第一个媒体++ if (group.mediaList?.list && group.mediaList.list.length > 0) {++ const firstMedia = group.mediaList.list[0];++++ if (firstMedia.type === 'video') {++ return (++ <div className={styles.coverContent}>++ <VideoThumbnail++ videoUrl={getOssUrl(firstMedia.url)}++ className={styles.coverImage}++ />++ <div className={styles.videoTypeIcon}>++ <VideoCameraOutlined />++ </div>++ </div>++ );++ } else {++ return (++ <div className={styles.coverContent}>++ <img++ alt={group.title}++ src={getOssUrl(firstMedia.url)}++ className={styles.coverImage}++ />++ <div className={styles.imageTypeIcon}>++ <PictureOutlined />++ </div>++ </div>++ );++ }++ }++++ // 否则显示类型图标++ return (++ <div className={styles.iconCover}>++ {group.type === 'video' ? (++ <VideoCameraOutlined className={styles.typeIcon} />++ ) : (++ <PictureOutlined className={styles.typeIcon} />++ )}++ </div>++ );++ };++++ return (++ <div className={styles.materialContainer}>++ <div className={styles.header}>++ <h3>{t('mediaManagement.title')}</h3>++ <div className={styles.headerActions}>++ <button++ className={styles.aiGenerateButton}++ onClick={() => router.push('/material/ai-generate?tab=videoGeneration')}++ >++ <RobotOutlined />++ <span>{t('mediaManagement.aiVideoGenerate')}</span>++ </button>++ <button++ className={styles.createButton}++ onClick={() => setIsModalVisible(true)}++ >++ <PlusOutlined />++ <span>{t('mediaManagement.createGroup')}</span>++ </button>++ </div>++ </div>++++ {groups.length > 0 ? (++ <div className={styles.mediaGrid}>++ {groups.map((group) => (++ <div key={group._id} className={styles.mediaCard} onClick={() => handleGroupClick(group)}>++ <div className={styles.coverWrapper}>++ {getCoverDisplay(group)}++ <div className={styles.cardActions}>++ <button++ className={styles.actionButton}++ onClick={(e) => {++ e.stopPropagation();++ showEditModal(group);++ }}++ >++ <EditOutlined />++ </button>++ <Popconfirm++ title={t('mediaManagement.deleteConfirm')}++ onConfirm={(e) => {++ e?.stopPropagation();++ handleDeleteGroup(group._id);++ }}++ onCancel={(e) => e?.stopPropagation()}++ okText={t('mediaManagement.delete')}++ cancelText={t('mediaManagement.cancel')}++ >++ <button++ className={`${styles.actionButton} ${styles.delete}`}++ onClick={(e) => e.stopPropagation()}++ >++ <DeleteOutlined />++ </button>++ </Popconfirm>++ </div>++ <div className={styles.resourceBadge}>++ <span className={styles.badgeText}>++ {group.count}{t('mediaManagement.resources')}++ </span>++ </div>++ </div>++ <div className={styles.cardContent}>++ <h3 className={styles.cardTitle}>{group.title}</h3>++ <div className={styles.albumInfo}>++ <p className={styles.description}>{group.desc || t('mediaManagement.noDescription')}</p>++ <div className={styles.typeTag}>++ {group.type === 'video' ? (++ <>++ <VideoCameraOutlined />++ <span>{t('mediaManagement.video')}</span>++ </>++ ) : (++ <>++ <PictureOutlined />++ <span>{t('mediaManagement.image')}</span>++ </>++ )}++ </div>++ </div>++ </div>++ </div>++ ))}++ </div>++ ) : (++ <div className={styles.emptyContainer}>++ <div className={styles.emptyIcon}>++ <FolderOutlined />++ </div>++ <h3>{t('mediaManagement.noGroups')}</h3>++ <p>{t('mediaManagement.noGroupsDesc')}</p>++ <button++ className={styles.emptyCreateButton}++ onClick={() => setIsModalVisible(true)}++ >++ <PlusOutlined />++ {t('mediaManagement.createNow')}++ </button>++ </div>++ )}++++ {/* Modal components */}++ <Modal++ title={t('mediaManagement.createGroup')}++ open={isModalVisible}++ onOk={handleCreateGroup}++ onCancel={() => {++ setIsModalVisible(false);++ setNewGroupTitle("");++ setNewGroupDesc("");++ setNewGroupType('video');++ }}++ okText={t('mediaManagement.create')}++ cancelText={t('mediaManagement.cancel')}++ confirmLoading={loading}++ >++ <div className={styles.form}>++ <div className={styles.formGroup}>++ <label>{t('mediaManagement.groupName')}</label>++ <Input++ value={newGroupTitle}++ onChange={(e) => setNewGroupTitle(e.target.value)}++ placeholder={t('mediaManagement.groupNamePlaceholder')}++ />++ </div>++ <div className={styles.formGroup}>++ <label>{t('mediaManagement.description')}</label>++ <Input.TextArea++ value={newGroupDesc}++ onChange={(e) => setNewGroupDesc(e.target.value)}++ placeholder={t('mediaManagement.descriptionPlaceholder')}++ rows={3}++ />++ </div>++ <div className={styles.formGroup}>++ <label>{t('mediaManagement.type')}</label>++ <Select++ value={newGroupType}++ onChange={(value) => setNewGroupType(value)}++ style={{ width: '100%' }}++ >++ <Select.Option value="video">{t('mediaManagement.video')}</Select.Option>++ <Select.Option value="img">{t('mediaManagement.image')}</Select.Option>++ </Select>++ </div>++ </div>++ </Modal>++++ <Modal++ title={t('mediaManagement.editGroup')}++ open={isEditModalVisible}++ onOk={handleUpdateGroup}++ onCancel={() => {++ setIsEditModalVisible(false);++ setEditingGroup(null);++ }}++ okText={t('mediaManagement.save')}++ cancelText={t('mediaManagement.cancel')}++ confirmLoading={loading}++ >++ {editingGroup && (++ <div className={styles.form}>++ <div className={styles.formGroup}>++ <label>{t('mediaManagement.groupName')}</label>++ <Input++ value={editingGroup.title}++ onChange={(e) => setEditingGroup({++ ...editingGroup,++ title: e.target.value++ })}++ placeholder={t('mediaManagement.groupNamePlaceholder')}++ />++ </div>++ <div className={styles.formGroup}>++ <label>{t('mediaManagement.description')}</label>++ <Input.TextArea++ value={editingGroup.desc}++ onChange={(e) => setEditingGroup({++ ...editingGroup,++ desc: e.target.value++ })}++ placeholder={t('mediaManagement.descriptionPlaceholder')}++ rows={3}++ />++ </div>++ <div className={styles.formGroup}>++ <label>{t('mediaManagement.type')}</label>++ <Select++ value={editingGroup.type}++ onChange={(value) => setEditingGroup({++ ...editingGroup,++ type: value++ })}++ style={{ width: '100%' }}++ >++ <Select.Option value="video">{t('mediaManagement.video')}</Select.Option>++ <Select.Option value="img">{t('mediaManagement.image')}</Select.Option>++ </Select>++ </div>++ </div>++ )}++ </Modal>++ </div>++ );++};diff --cc project/aitoearn-web/src/app/[lng]/material/page.tsxindex 00000000,00000000..87fcf593new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/material/page.tsx@@@ -1,0 -1,0 +1,27 @@@++import { useTranslation } from "@/app/i18n";++import { PageParams } from "@/app/globals";++import * as React from "react";++import { getMetadata } from "@/utils/general";++import { MaterialPageCore } from "@/app/[lng]/material/materialPageCore";++++export async function generateMetadata({ params }: PageParams) {++ const { lng } = await params;++ const { t } = await useTranslation(lng, "material");++ return await getMetadata(++ {++ title: "素材库",++ },++ lng,++ );++}++++export default async function Page({ params }: PageParams) {++ const { lng } = await params;++ const { t } = await useTranslation(lng, "material");++++ return (++ <>++ <MaterialPageCore />++ </>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/material/styles/material.module.scssindex 00000000,00000000..e4c21b77new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/material/styles/material.module.scss@@@ -1,0 -1,0 +1,774 @@@++.materialContainer {++ padding: 32px;++ min-height: 100vh;++++ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;++}++++.header {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 40px;++ padding: 0 8px;++++ h3 {++ margin: 0;++ font-size: 24px;++ font-weight: 700;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++ }++}++++.headerActions {++ display: flex;++ gap: 12px;++ align-items: center;++}++++.aiGenerateButton {++ background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);++ color: white;++ border: none;++ padding: 10px 20px;++ border-radius: 8px;++ cursor: pointer;++ display: flex;++ align-items: center;++ gap: 8px;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++ font-size: 14px;++ font-weight: 500;++ box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);++++ &:hover {++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);++ }++++ &:active {++ transform: translateY(0);++ }++++ :global(.anticon) {++ font-size: 20px;++ }++}++++.createButton {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++ border: none;++ padding: 10px 20px;++ border-radius: 8px;++ cursor: pointer;++ display: flex;++ align-items: center;++ gap: 8px;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++ font-size: 14px;++ font-weight: 500;++ box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);++++ &:hover {++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);++ }++++ &:active {++ transform: translateY(0);++ }++++ :global(.anticon) {++ font-size: 20px;++ }++}++++.mediaGrid {++ display: grid;++ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));++ gap: 32px;++ margin-bottom: 40px;++++ @media (max-width: 768px) {++ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));++ gap: 24px;++ }++++ @media (max-width: 480px) {++ grid-template-columns: 1fr;++ gap: 20px;++ }++}++++.mediaCard {++ background: white;++ border-radius: 20px;++ overflow: hidden;++ transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);++ cursor: pointer;++ position: relative;++ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);++ border: 1px solid rgba(255, 255, 255, 0.2);++++ &:hover {++ transform: translateY(-8px) scale(1.02);++ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);++++ .cardActions {++ opacity: 1;++ transform: translateY(0);++ }++++ .coverImage {++ transform: scale(1.05);++ }++++ .iconCover .typeIcon {++ transform: scale(1.1);++ color: #667eea;++ }++ }++}++++.coverWrapper {++ position: relative;++ height: 200px;++ // background: linear-gradient(135deg, #f093fb 0%, #C5B1CA 100%);++ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);++ overflow: hidden;++ display: flex;++ align-items: center;++ justify-content: center;++}++++.coverContent {++ position: relative;++ width: 100%;++ height: 100%;++ display: flex;++ align-items: center;++ justify-content: center;++}++++.coverImage {++ width: 100%;++ height: 100%;++ object-fit: cover;++ transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);++}++++.iconCover {++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ backdrop-filter: blur(10px);++}++++.typeIcon {++ font-size: 64px;++ color: #667eea;++ margin-bottom: 16px;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++}++++// 视频类型图标覆盖层++.videoTypeIcon {++ position: absolute;++ top: 12px;++ left: 12px;++ width: 40px;++ height: 40px;++ background: rgba(0, 0, 0, 0.7);++ border-radius: 10px;++ display: flex;++ align-items: center;++ justify-content: center;++ color: white;++ font-size: 20px;++ backdrop-filter: blur(10px);++ z-index: 5;++ transition: all 0.3s ease;++++ &:hover {++ background: rgba(0, 0, 0, 0.8);++ transform: scale(1.05);++ }++}++++// 图片类型图标覆盖层++.imageTypeIcon {++ position: absolute;++ top: 12px;++ left: 12px;++ width: 40px;++ height: 40px;++ background: rgba(102, 126, 234, 0.8);++ border-radius: 10px;++ display: flex;++ align-items: center;++ justify-content: center;++ color: white;++ font-size: 20px;++ backdrop-filter: blur(10px);++ z-index: 5;++ transition: all 0.3s ease;++++ &:hover {++ background: rgba(102, 126, 234, 0.9);++ transform: scale(1.05);++ }++}++++// 视频预览相关样式++.videoLoading,++.videoError,++.videoDefault {++ width: 100%;++ height: 100%;++ border-radius: 8px;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 24px;++ transition: all 0.3s ease;++}++++.videoLoading {++ background-color: #f5f5f5;++ color: #999;++}++++.videoError {++ background-color: #fff2f0;++ color: #ff4d4f;++}++++.videoPreviewFallback {++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ height: 100%;++ color: #ff4d4f;++}++++// 视频预览样式++.videoPreview {++ width: 100%;++ height: 100%;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border-radius: 8px;++ display: flex;++ align-items: center;++ justify-content: center;++ position: relative;++ overflow: hidden;++}++++.videoPreviewContent {++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ color: white;++ text-align: center;++}++++.videoPreviewIcon {++ font-size: 32px;++ margin-bottom: 8px;++ color: white;++}++++.videoPreviewText {++ font-size: 12px;++ font-weight: 500;++ margin-bottom: 12px;++}++++.videoPreviewPlayButton {++ width: 48px;++ height: 48px;++ background: rgba(255, 255, 255, 0.2);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ color: white;++ backdrop-filter: blur(10px);++ transition: all 0.3s ease;++++ &:hover {++ background: rgba(255, 255, 255, 0.3);++ transform: scale(1.1);++ }++}++++.videoDefault {++ background-color: #f0f0f0;++ color: #666;++}++++.videoIcon {++ position: absolute;++ top: 50%;++ left: 50%;++ transform: translate(-50%, -50%);++ width: 56px;++ height: 56px;++ background: rgba(0, 0, 0, 0.7);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ color: white;++ font-size: 24px;++ backdrop-filter: blur(10px);++ transition: all 0.3s ease;++++ &:hover {++ background: rgba(0, 0, 0, 0.8);++ transform: translate(-50%, -50%) scale(1.1);++ }++}++++.cardActions {++ position: absolute;++ top: 12px;++ right: 12px;++ display: flex;++ gap: 8px;++ opacity: 0;++ transform: translateY(-10px);++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++ z-index: 10;++}++++.actionButton {++ background: rgba(255, 255, 255, 0.95);++ border: none;++ width: 44px;++ height: 44px;++ border-radius: 12px;++ cursor: pointer;++ display: flex;++ align-items: center;++ justify-content: center;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++ font-size: 18px;++ backdrop-filter: blur(10px);++ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);++ color: #667eea;++++ &:hover {++ background: white;++ transform: scale(1.1);++ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);++ }++++ &.delete {++ color: #ff4757;++++ &:hover {++ color: #ff3742;++ background: #fff5f5;++ }++ }++}++++.resourceBadge {++ position: absolute;++ bottom: 12px;++ left: 12px;++ background: rgba(0, 0, 0, 0.7);++ color: white;++ padding: 8px 16px;++ border-radius: 20px;++ backdrop-filter: blur(10px);++ font-size: 14px;++ font-weight: 600;++}++++.badgeText {++ color: inherit;++}++++.cardContent {++ padding: 28px;++}++++.cardTitle {++ margin: 0 0 16px 0;++ font-size: 22px;++ color: #2c3e50;++ font-weight: 700;++ line-height: 1.3;++ display: -webkit-box;++ -webkit-line-clamp: 2;++ -webkit-box-orient: vertical;++ overflow: hidden;++}++++.albumInfo {++ display: flex;++ flex-direction: column;++ gap: 16px;++}++++.description {++ margin: 0;++ color: #7f8c8d;++ font-size: 16px;++ line-height: 1.6;++ display: -webkit-box;++ -webkit-line-clamp: 2;++ -webkit-box-orient: vertical;++ overflow: hidden;++}++++.typeTag {++ display: flex;++ align-items: center;++ gap: 8px;++ color: #667eea;++ font-size: 16px;++ font-weight: 600;++++ span {++ color: inherit;++ }++++ :global(.anticon) {++ font-size: 18px;++ }++}++++.emptyContainer {++ text-align: center;++ padding: 80px 32px;++ background: white;++ border-radius: 20px;++ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);++ border: 1px solid rgba(255, 255, 255, 0.2);++ margin: 40px auto;++ max-width: 500px;++}++++.emptyIcon {++ font-size: 100px;++ color: #bdc3c7;++ margin-bottom: 32px;++++ :global(.anticon) {++ transition: all 0.3s ease;++++ &:hover {++ color: #667eea;++ transform: scale(1.1);++ }++ }++}++++.emptyContainer h3 {++ margin: 0 0 16px 0;++ color: #2c3e50;++ font-size: 20px;++ font-weight: 600;++}++++.emptyContainer p {++ color: #7f8c8d;++ margin-bottom: 24px;++ font-size: 14px;++ line-height: 1.5;++}++++.emptyCreateButton {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++ border: none;++ padding: 10px 20px;++ border-radius: 8px;++ cursor: pointer;++ display: inline-flex;++ align-items: center;++ gap: 8px;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++ font-size: 14px;++ font-weight: 500;++ box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);++++ &:hover {++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);++ }++++ :global(.anticon) {++ font-size: 14px;++ }++}++++.form {++ display: flex;++ flex-direction: column;++ gap: 24px;++}++++.formGroup {++ display: flex;++ flex-direction: column;++ gap: 10px;++++ label {++ font-weight: 600;++ color: #2c3e50;++ font-size: 16px;++ margin-bottom: 6px;++ }++++ :global(.ant-input) {++ padding: 14px 18px;++ border: 2px solid #e9ecef;++ border-radius: 12px;++ font-size: 16px;++ color: #2c3e50;++ background: white;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++++ &:focus {++ border-color: #667eea;++ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);++ }++++ &::placeholder {++ color: #adb5bd;++ }++ }++++ :global(.ant-input-affix-wrapper) {++ padding: 14px 18px;++ border: 2px solid #e9ecef;++ border-radius: 12px;++ font-size: 16px;++++ &:focus-within {++ border-color: #667eea;++ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);++ }++++ :global(.ant-input) {++ padding: 0;++ border: none;++ box-shadow: none;++++ &:focus {++ border: none;++ box-shadow: none;++ }++ }++ }++++ :global(.ant-select) {++ .ant-select-selector {++ padding: 14px 18px !important;++ border: 2px solid #e9ecef !important;++ border-radius: 12px !important;++ font-size: 16px;++ height: auto !important;++ min-height: 52px;++++ .ant-select-selection-search-input {++ height: auto !important;++ font-size: 16px;++ }++++ .ant-select-selection-item {++ font-size: 16px;++ line-height: 1.4;++ }++ }++++ &.ant-select-focused .ant-select-selector {++ border-color: #667eea !important;++ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;++ }++ }++++ input, textarea, select {++ padding: 14px 18px;++ border: 2px solid #e9ecef;++ border-radius: 12px;++ font-size: 16px;++ color: #2c3e50;++ background: white;++ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);++++ &:focus {++ outline: none;++ border-color: #667eea;++ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);++ }++++ &::placeholder {++ color: #adb5bd;++ }++ }++++ textarea {++ min-height: 120px;++ resize: vertical;++ font-family: inherit;++ }++++ select {++ cursor: pointer;++ appearance: none;++ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");++ background-position: right 18px center;++ background-repeat: no-repeat;++ background-size: 16px;++ padding-right: 50px;++ }++}++++// Modal 和 Popover 全局样式++.materialContainer {++ :global {++ .ant-modal-footer {++ padding: 24px 32px 32px;++++ .ant-btn {++ height: 44px;++ padding: 0 24px;++ font-size: 16px;++ font-weight: 600;++ border-radius: 8px;++++ &.ant-btn-primary {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border: none;++++ &:hover {++ background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);++ }++ }++ }++ }++++ .ant-popover {++ .ant-popover-buttons {++ .ant-btn {++ height: 36px;++ padding: 0 16px;++ font-size: 14px;++ font-weight: 500;++ border-radius: 6px;++++ &.ant-btn-primary {++ background: #ff4757;++ border-color: #ff4757;++++ &:hover {++ background: #ff3742;++ border-color: #ff3742;++ }++ }++ }++ }++ }++ }++}++++// 动画++@keyframes fadeInUp {++ from {++ opacity: 0;++ transform: translateY(30px);++ }++ to {++ opacity: 1;++ transform: translateY(0);++ }++}++++@keyframes pulse {++ 0%, 100% {++ transform: scale(1);++ }++ 50% {++ transform: scale(1.05);++ }++}++++.mediaCard {++ animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);++}++++.emptyIcon {++ animation: pulse 2s infinite;++}++++// 响应式设计++@media (max-width: 768px) {++ .materialContainer {++ padding: 20px 16px;++ }++++ .header {++ flex-direction: column;++ gap: 20px;++ text-align: center;++++ h2 {++ font-size: 32px;++ }++ }++++ .createButton {++ width: 100%;++ justify-content: center;++ font-size: 16px;++ padding: 14px 28px;++ }++++ .cardContent {++ padding: 24px;++ }++++ .cardTitle {++ font-size: 20px;++ }++++ .description {++ font-size: 15px;++ }++++ .typeTag {++ font-size: 15px;++ }++++ .emptyContainer {++ padding: 60px 24px;++ margin: 20px;++++ h3 {++ font-size: 24px;++ }++++ p {++ font-size: 16px;++ }++ }++++ .emptyCreateButton {++ font-size: 16px;++ padding: 16px 32px;++ }++}diff --cc project/aitoearn-web/src/app/[lng]/not-found.tsxindex 00000000,00000000..da7ba1ebnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/not-found.tsx@@@ -1,0 -1,0 +1,46 @@@++"use client";++++import Link from "next/link";++import { useGetClientLng } from "@/hooks/useSystem";++++export default function NotFound() {++ const lng = useGetClientLng();++++ return (++ <div++ style={{++ display: "flex",++ justifyContent: "center",++ alignItems: "center",++ flexDirection: "column",++ minHeight: "100vh",++ background: "var(--background-color)",++ color: "var(--text-color)",++ }}++ >++ <span style={{ fontSize: "60px", color: "var(--theColor5)" }}>404</span>++ <Link++ href={`/${lng}`}++ style={{++ marginTop: "20px",++ color: "var(--theColor5)",++ textDecoration: "none",++ padding: "8px 16px",++ border: "1px solid var(--theColor5)",++ borderRadius: "8px",++ transition: "all 0.3s"++ }}++ onMouseOver={(e) => {++ e.currentTarget.style.background = "var(--theColor5)";++ e.currentTarget.style.color = "white";++ }}++ onMouseOut={(e) => {++ e.currentTarget.style.background = "transparent";++ e.currentTarget.style.color = "var(--theColor5)";++ }}++ >++ 返回首页++ </Link>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/page.tsxindex 00000000,00000000..50a44928new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/page.tsx@@@ -1,0 -1,0 +1,1422 @@@++"use client";++++import { useEffect, useRef, useState } from "react";++import styles from "./styles/difyHome.module.scss";++import { directTrans, useTransClient } from "../i18n/client";++import { MAIN_APP_DOWNLOAD_URL, getMainAppDownloadUrl } from "../config/appDownloadConfig";++++import logo from '@/assets/images/logo.png';++++// 导入SVG图标++import gongzhonghao from '@/assets/images/gongzhonghao.jpg';++import bilibiliIcon from '@/assets/svgs/plat/bilibili.svg';++import douyinIcon from '@/assets/svgs/plat/douyin.svg';++import tiktokIcon from '@/assets/svgs/plat/tiktok.svg';++import ksIcon from '@/assets/svgs/plat/ks.svg';++import wxSphIcon from '@/assets/svgs/plat/wx-sph.svg';++import gongzhonghaoIcon from '@/assets/svgs/plat/gongzhonghao.png';++import xhsIcon from '@/assets/svgs/plat/xhs.svg';++import youtubeIcon from '@/assets/svgs/plat/youtube.png';++import TwitterIcon from '@/assets/svgs/plat/twitter.png';++import FacebookIcon from '@/assets/svgs/plat/facebook.png';++import InstagramIcon from '@/assets/svgs/plat/instagram.png';++import LinkedInIcon from '@/assets/svgs/plat/linkedin.png';++import PinterestIcon from '@/assets/svgs/plat/pinterest.png';++import ThreadsIcon from '@/assets/svgs/plat/threads.png';++++// 资料图片++import publish1 from '@/assets/images/publish1.png';++++++// 外部图片 URL 常量++const IMAGE_URLS = {++ calendar: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/1.%20content%20publish/calendar.jpeg',++ supportChannels: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/1.%20content%20publish/support_channels.jpeg',++ hotspot: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/2.%20content%20hotspot/hotspot.jpg',++ hotspot2: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/2.%20content%20hotspot/hotspot2.jpeg',++ hotspot3: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/2.%20content%20hotspot/hotspot3.jpeg',++ hotspot4: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/2.%20content%20hotspot/hotspot4.jpeg',++ contentSearch: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/3.%20content%20search/contentsearch.gif',++ contentSearch1: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/3.%20content%20search/contentsearch1.jpeg',++ contentSearch2: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/3.%20content%20search/contentsearch2.jpeg',++ contentSearch4: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/3.%20content%20search/contentsearch4.jpeg',++ commentFilter: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/4.%20comments%20search/commentfilter.jpeg',++ commentFilter2: 'https://aitoearn.s3.ap-southeast-1.amazonaws.com/common/web/app-screenshot/5.%20content%20engagement/commentfilter2.jpeg',++};++++++import Link from "next/link";++import Image from "next/image";++import { useRouter } from "next/navigation";++import { Button } from "antd";++import { GlobalOutlined } from "@ant-design/icons";++import { useUserStore } from "@/store/user";++import { useParams } from "next/navigation";++import { AndroidOutlined } from '@ant-design/icons';++++// 版本发布横幅++function ReleaseBanner() {++ const { t } = useTransClient('home');++++ return (++ <div className={styles.releaseBanner}>++ <div className={styles.bannerContent}>++ {/* <span className={styles.releaseTag}>{t('releaseBanner.tag')}</span> */}++ <span className={styles.releaseText}>Unlimited use of free nano banana !</span>++ {/* <svg className={styles.arrowIcon} width="16" height="16" viewBox="0 0 16 16" fill="none">++ <path d="m6 12 4-4-4-4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>++ </svg> */}++ </div>++ </div>++ );++}++++++// Hero 主标题区++function Hero() {++ const { t } = useTransClient('home');++ const [displayedText, setDisplayedText] = useState('');++ const [currentIndex, setCurrentIndex] = useState(0);++ const [isTypingComplete, setIsTypingComplete] = useState(false);++ const [hideCursor, setHideCursor] = useState(false);++ const [startTyping, setStartTyping] = useState(false);++ const router = useRouter();++++ // 要显示的完整文本++ const fullText = t('hero.title');++ const typingSpeed = 120; // 打字速度(毫秒)++ const initialDelay = 800; // 初始延迟(毫秒)++ const cursorHideDelay = 2000; // 打字完成后光标消失的延迟++++ useEffect(() => {++ // 初始延迟后开始打字++ const startTimer = setTimeout(() => {++ setStartTyping(true);++ }, initialDelay);++++ return () => clearTimeout(startTimer);++ }, []);++++ useEffect(() => {++ if (startTyping && currentIndex < fullText.length) {++ const currentChar = fullText[currentIndex];++++ // 根据字符类型调整打字速度++ let currentSpeed = typingSpeed;++ if (currentChar === '\n') {++ currentSpeed = typingSpeed * 2; // 换行时稍作停顿++ } else if (currentChar === ' ') {++ currentSpeed = typingSpeed * 0.5; // 空格快一点++ } else if (/[,。!?;:]/.test(currentChar)) {++ currentSpeed = typingSpeed * 1.5; // 标点符号稍作停顿++ } else {++ // 添加一些随机性,使打字更自然++ currentSpeed = typingSpeed + Math.random() * 50 - 25;++ }++++ const timer = setTimeout(() => {++ setDisplayedText(prev => prev + fullText[currentIndex]);++ setCurrentIndex(prev => prev + 1);++ }, currentSpeed);++++ return () => clearTimeout(timer);++ } else if (currentIndex >= fullText.length && !isTypingComplete) {++ setIsTypingComplete(true);++ // 打字完成后延迟隐藏光标++ setTimeout(() => {++ setHideCursor(true);++ }, cursorHideDelay);++ }++ }, [startTyping, currentIndex, fullText, typingSpeed, isTypingComplete, cursorHideDelay]);++++ // 将文本转换为JSX,处理换行++ const renderText = () => {++ return displayedText.split('\n').map((line, index, array) => (++ <span key={index}>++ {line}++ {index < array.length - 1 && <br />}++ </span>++ ));++ };++++ return (++ <section className={styles.hero}>++ <div className={styles.heroContainer}>++ <div className={styles.githubStars} onClick={() => {++ window.open('https://github.com/yikart/AiToEarn/releases', '_blank');++ }}>++ <img src={'https://img.shields.io/github/stars/yikart/AiToEarn.svg'} alt="logo" className={styles.logo} />++ <span className={styles.starText}>{t('hero.starsText')}</span>++ <span className={styles.githubText}>{t('hero.github')}</span>++ </div>++++ <h1 className={styles.heroTitle}>++ {renderText()}++ <span className={`${styles.cursor} ${hideCursor ? styles.cursorHidden : styles.cursorVisible}`}>|</span>++ </h1>++++ <p className={styles.heroSubtitle}>++ {t('hero.subtitle')}++ </p>++++ <button onClick={() => {++ router.push("/accounts");++ }} className={styles.heroBtn}>++ {t('hero.getStarted')}++ <svg className={styles.btnArrow} width="16" height="16" viewBox="0 0 16 16" fill="none">++ <path d="m6 12 4-4-4-4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>++ </svg>++ </button>++ <p++ className={styles.heroMobileLink}++ style={{ marginTop: '10px' }}++ onClick={() => {++ const el = document.getElementById('download');++ if (el) {++ el.scrollIntoView({ behavior: 'smooth' });++ }++ }}++ >++ {t('hero.useMobilePhone' as any)}++ </p>++ </div>++ </section>++ );++}++++// 品牌合作伙伴 Logo 区 - 社交媒体平台(无限滚动)++function BrandBar() {++ const { t } = useTransClient('home');++ const { lng } = useParams();++++ // 平台数据配置++ const platforms = [++ { name: 'YouTube', key: 'YouTube', hasIcon: true, iconPath: youtubeIcon.src },++ { name: 'TikTok', key: 'TikTok', hasIcon: true, iconPath: tiktokIcon },++ { name: '小红书', key: 'Rednote', hasIcon: true, iconPath: xhsIcon },++ { name: '抖音', key: 'Douyin', hasIcon: true, iconPath: douyinIcon },++ { name: '快手', key: 'Kwai', hasIcon: true, iconPath: ksIcon },++ { name: '公众号', key: 'Wechat Offical Account', hasIcon: true, iconPath: gongzhonghaoIcon.src },++ { name: '视频号', key: 'Wechat Channels', hasIcon: true, iconPath: wxSphIcon },++ { name: 'Bilibili', key: 'Bilibili', hasIcon: true, iconPath: bilibiliIcon },++ { name: 'Facebook', key: 'Facebook', hasIcon: true, iconPath: FacebookIcon.src },++ { name: 'Instagram', key: 'Instagram', hasIcon: true, iconPath: InstagramIcon.src },++ { name: 'LinkedIn', key: 'LinkedIn', hasIcon: true, iconPath: LinkedInIcon.src },++ { name: 'Pinterest', key: 'Pinterest', hasIcon: true, iconPath: PinterestIcon.src },++ { name: 'Threads', key: 'Threads', hasIcon: true, iconPath: ThreadsIcon.src },++ { name: 'X (Twitter)', key: 'X (Twitter)', hasIcon: true, iconPath: TwitterIcon.src },++ ];++++ // 为了实现无缝滚动,复制一份数据++ const duplicatedPlatforms = [...platforms, ...platforms];++++ // 获取平台显示名称++ const getPlatformDisplayName = (platform: any) => {++ if (lng === 'en') {++ return platform.key;++ }++ return platform.name;++ };++++ return (++ <section className={styles.brandBar}>++ <div className={styles.brandContainer}>++ <div className={styles.brandTitle}>{t('brandBar.title')}</div>++ <div className={styles.scrollContainer}>++ <div className={styles.scrollTrack}>++ {duplicatedPlatforms.map((platform, index) => (++ <div key={index} className={styles.platformItem}>++ <div className={styles.platformIcon}>++ {platform.hasIcon ? (++ <img++ src={platform.iconPath}++ alt={`${getPlatformDisplayName(platform)} logo`}++ className={styles.platformSvg}++ />++ ) : (++ <span className={styles.platformEmoji}>{getPlatformDisplayName(platform)}</span>++ )}++ </div>++ <span className={styles.platformName}>{getPlatformDisplayName(platform)}</span>++ </div>++ ))}++ </div>++ </div>++ </div>++ </section>++ );++}++++// 1. Content Publishing — 一键发布 · 多平台触达++function ContentPublishingSection() {++ const { t } = useTransClient('home');++ const [currentImageIndex, setCurrentImageIndex] = useState(0);++ const [autoRotate, setAutoRotate] = useState(true);++ const images = [IMAGE_URLS.calendar, IMAGE_URLS.supportChannels];++ const autoRotateRef = useRef<NodeJS.Timeout | null>(null);++ const carouselRef = useRef<HTMLDivElement>(null);++++ // 自动轮播++ useEffect(() => {++ if (autoRotate) {++ autoRotateRef.current = setInterval(() => {++ setCurrentImageIndex(prev => (prev + 1) % images.length);++ }, 3000);++ } else {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ autoRotateRef.current = null;++ }++ }++++ return () => {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ }++ };++ }, [autoRotate, images.length]);++++ // 滚轮控制++ useEffect(() => {++ const handleWheel = (e: WheelEvent) => {++ if (carouselRef.current && carouselRef.current.contains(e.target as Node)) {++ e.preventDefault();++++ if (e.deltaY > 0) {++ if (currentImageIndex < images.length - 1) {++ setCurrentImageIndex(prev => prev + 1);++ setAutoRotate(false);++ } else {++ setAutoRotate(true);++ return;++ }++ } else {++ if (currentImageIndex > 0) {++ setCurrentImageIndex(prev => prev - 1);++ setAutoRotate(false);++ }++ }++++ setTimeout(() => {++ setAutoRotate(true);++ }, 3000);++ }++ };++++ const carousel = carouselRef.current;++ if (carousel) {++ carousel.addEventListener('wheel', handleWheel, { passive: false });++++ return () => {++ carousel.removeEventListener('wheel', handleWheel);++ };++ }++ }, [currentImageIndex, images.length]);++++ return (++ <section className={styles.buildSection}>++ <div className={styles.buildContainer}>++ <div className={styles.sectionBadge}>++ <div className={styles.badgeIcon}></div>++ <span>{t('buildSection.badge')}</span>++ </div>++++ <div className={styles.buildContent}>++ <div className={styles.buildLeft}>++ <h2 className={styles.buildTitle}>++ {t('buildSection.title')}++ <span className={styles.titleBlue}>{t('buildSection.titleBlue')}</span>++ </h2>++++ <div className={styles.featureList}>++ <div className={styles.featureItem}>++ <h3>{t('buildSection.features.hotTopic.title')}</h3>++ <p>{t('buildSection.features.hotTopic.description')}</p>++ </div>++++ <div className={styles.featureItem}>++ <h3>{t('buildSection.features.international.title')}</h3>++ <p>{t('buildSection.features.international.description')}</p>++ </div>++ </div>++ </div>++++ <div className={styles.buildRight}>++ <div++ className={styles.imageCarousel}++ ref={carouselRef}++ >++ <div className={`${styles.carouselContainer} ${styles.mobileContainer}`}>++ {images.map((image, index) => (++ <div++ key={index}++ className={`${styles.carouselSlide} ${index === currentImageIndex ? styles.active : ''}`}++ >++ <img++ src={image}++ alt={`Content Publishing ${index + 1}`}++ className={styles.mobileCarouselImage}++ />++ </div>++ ))}++ </div>++++ <div className={styles.carouselIndicators}>++ {images.map((_, index) => (++ <button++ key={index}++ className={`${styles.indicator} ${index === currentImageIndex ? styles.active : ''}`}++ onClick={() => {++ setCurrentImageIndex(index);++ setAutoRotate(false);++ setTimeout(() => setAutoRotate(true), 3000);++ }}++ />++ ))}++ </div>++++ <div className={styles.carouselHint}>++ <span>使用滚轮切换图片</span>++ </div>++ </div>++ </div>++ </div>++ </div>++ </section>++ );++}++++// 2. Content Hotspot — 爆款灵感引擎++function ContentHotspotSection() {++ const { t } = useTransClient('home');++ const [currentImageIndex, setCurrentImageIndex] = useState(0);++ const [autoRotate, setAutoRotate] = useState(true);++ const images = [IMAGE_URLS.hotspot, IMAGE_URLS.hotspot2, IMAGE_URLS.hotspot3, IMAGE_URLS.hotspot4];++ const autoRotateRef = useRef<NodeJS.Timeout | null>(null);++ const carouselRef = useRef<HTMLDivElement>(null);++++ // 自动轮播++ useEffect(() => {++ if (autoRotate) {++ autoRotateRef.current = setInterval(() => {++ setCurrentImageIndex(prev => (prev + 1) % images.length);++ }, 3000);++ } else {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ autoRotateRef.current = null;++ }++ }++++ return () => {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ }++ };++ }, [autoRotate, images.length]);++++ // 滚轮控制++ useEffect(() => {++ const handleWheel = (e: WheelEvent) => {++ if (carouselRef.current && carouselRef.current.contains(e.target as Node)) {++ e.preventDefault();++++ if (e.deltaY > 0) {++ if (currentImageIndex < images.length - 1) {++ setCurrentImageIndex(prev => prev + 1);++ setAutoRotate(false);++ } else {++ setAutoRotate(true);++ return;++ }++ } else {++ if (currentImageIndex > 0) {++ setCurrentImageIndex(prev => prev - 1);++ setAutoRotate(false);++ }++ }++++ setTimeout(() => {++ setAutoRotate(true);++ }, 3000);++ }++ };++++ const carousel = carouselRef.current;++ if (carousel) {++ carousel.addEventListener('wheel', handleWheel, { passive: false });++++ return () => {++ carousel.removeEventListener('wheel', handleWheel);++ };++ }++ }, [currentImageIndex, images.length]);++++ return (++ <section className={styles.buildSection}>++ <div className={styles.buildContainer}>++ <div className={styles.sectionBadge}>++ <div className={styles.badgeIcon}></div>++ <span>{t('hotspotSection.badge' as any)}</span>++ </div>++++ <div className={styles.buildContent}>++ <div className={styles.buildLeft}>++ <h2 className={styles.buildTitle}>++ {t('hotspotSection.title' as any)}++ <span className={styles.titleBlue}>{t('hotspotSection.titleBlue' as any)}</span>++ </h2>++++ <div className={styles.featureList}>++ <div className={styles.featureItem}>++ <h3>{t('hotspotSection.features.hotTopic.title' as any)}</h3>++ <p>{t('hotspotSection.features.hotTopic.description' as any)}</p>++ </div>++++ <div className={styles.featureItem}>++ <h3>{t('hotspotSection.features.international.title' as any)}</h3>++ <p>{t('hotspotSection.features.international.description' as any)}</p>++ </div>++ </div>++ </div>++++ <div className={styles.buildRight}>++ <div++ className={styles.imageCarousel}++ ref={carouselRef}++ >++ <div className={`${styles.carouselContainer} ${styles.mobileContainer}`}>++ {images.map((image, index) => (++ <div++ key={index}++ className={`${styles.carouselSlide} ${index === currentImageIndex ? styles.active : ''}`}++ >++ <img++ src={image}++ alt={`Content Hotspot ${index + 1}`}++ className={styles.mobileCarouselImage}++ />++ </div>++ ))}++ </div>++++ <div className={styles.carouselIndicators}>++ {images.map((_, index) => (++ <button++ key={index}++ className={`${styles.indicator} ${index === currentImageIndex ? styles.active : ''}`}++ onClick={() => {++ setCurrentImageIndex(index);++ setAutoRotate(false);++ setTimeout(() => setAutoRotate(true), 3000);++ }}++ />++ ))}++ </div>++++ <div className={styles.carouselHint}>++ <span>使用滚轮切换图片</span>++ </div>++ </div>++ </div>++ </div>++ </div>++ </section>++ );++}++++// 3. Content Search — 品牌与市场洞察++function ContentSearchSection() {++ const { t } = useTransClient('home');++ const [currentImageIndex, setCurrentImageIndex] = useState(0);++ const [autoRotate, setAutoRotate] = useState(true);++ const images = [IMAGE_URLS.contentSearch, IMAGE_URLS.contentSearch1, IMAGE_URLS.contentSearch2, IMAGE_URLS.contentSearch4];++ const autoRotateRef = useRef<NodeJS.Timeout | null>(null);++ const carouselRef = useRef<HTMLDivElement>(null);++++ // 自动轮播++ useEffect(() => {++ if (autoRotate) {++ autoRotateRef.current = setInterval(() => {++ setCurrentImageIndex(prev => (prev + 1) % images.length);++ }, 3000);++ } else {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ autoRotateRef.current = null;++ }++ }++++ return () => {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ }++ };++ }, [autoRotate, images.length]);++++ // 滚轮控制++ useEffect(() => {++ const handleWheel = (e: WheelEvent) => {++ if (carouselRef.current && carouselRef.current.contains(e.target as Node)) {++ e.preventDefault();++++ if (e.deltaY > 0) {++ if (currentImageIndex < images.length - 1) {++ setCurrentImageIndex(prev => prev + 1);++ setAutoRotate(false);++ } else {++ setAutoRotate(true);++ return;++ }++ } else {++ if (currentImageIndex > 0) {++ setCurrentImageIndex(prev => prev - 1);++ setAutoRotate(false);++ }++ }++++ setTimeout(() => {++ setAutoRotate(true);++ }, 3000);++ }++ };++++ const carousel = carouselRef.current;++ if (carousel) {++ carousel.addEventListener('wheel', handleWheel, { passive: false });++++ return () => {++ carousel.removeEventListener('wheel', handleWheel);++ };++ }++ }, [currentImageIndex, images.length]);++++ return (++ <section className={styles.buildSection}>++ <div className={styles.buildContainer}>++ <div className={styles.sectionBadge}>++ <div className={styles.badgeIcon}></div>++ <span>{t('searchSection.badge' as any)}</span>++ </div>++++ <div className={styles.buildContent}>++ <div className={styles.buildLeft}>++ <h2 className={styles.buildTitle}>++ {t('searchSection.title' as any)}++ <span className={styles.titleBlue}>{t('searchSection.titleBlue' as any)}</span>++ </h2>++++ <div className={styles.featureList}>++ <div className={styles.featureItem}>++ <h3>{t('searchSection.features.hotTopic.title' as any)}</h3>++ <p>{t('searchSection.features.hotTopic.description' as any)}</p>++ </div>++++ <div className={styles.featureItem}>++ <h3>{t('searchSection.features.international.title' as any)}</h3>++ <p>{t('searchSection.features.international.description' as any)}</p>++ </div>++ </div>++ </div>++++ <div className={styles.buildRight}>++ <div++ className={styles.imageCarousel}++ ref={carouselRef}++ >++ <div className={`${styles.carouselContainer} ${styles.mobileContainer}`}>++ {images.map((image, index) => (++ <div++ key={index}++ className={`${styles.carouselSlide} ${index === currentImageIndex ? styles.active : ''}`}++ >++ <img++ src={image}++ alt={`Content Search ${index + 1}`}++ className={styles.mobileCarouselImage}++ />++ </div>++ ))}++ </div>++++ <div className={styles.carouselIndicators}>++ {images.map((_, index) => (++ <button++ key={index}++ className={`${styles.indicator} ${index === currentImageIndex ? styles.active : ''}`}++ onClick={() => {++ setCurrentImageIndex(index);++ setAutoRotate(false);++ setTimeout(() => setAutoRotate(true), 3000);++ }}++ />++ ))}++ </div>++++ <div className={styles.carouselHint}>++ <span>使用滚轮切换图片</span>++ </div>++ </div>++ </div>++ </div>++ </div>++ </section>++ );++}++++// 4. Comments Search — 精准用户挖掘++function CommentsSearchSection() {++ const { t } = useTransClient('home');++ const [currentImageIndex, setCurrentImageIndex] = useState(0);++ const [autoRotate, setAutoRotate] = useState(true);++ const images = [IMAGE_URLS.commentFilter];++ const autoRotateRef = useRef<NodeJS.Timeout | null>(null);++ const carouselRef = useRef<HTMLDivElement>(null);++++ // 自动轮播++ useEffect(() => {++ if (autoRotate) {++ autoRotateRef.current = setInterval(() => {++ setCurrentImageIndex(prev => (prev + 1) % images.length);++ }, 3000);++ } else {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ autoRotateRef.current = null;++ }++ }++++ return () => {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ }++ };++ }, [autoRotate, images.length]);++++ // 滚轮控制++ useEffect(() => {++ const handleWheel = (e: WheelEvent) => {++ if (carouselRef.current && carouselRef.current.contains(e.target as Node)) {++ e.preventDefault();++++ if (e.deltaY > 0) {++ if (currentImageIndex < images.length - 1) {++ setCurrentImageIndex(prev => prev + 1);++ setAutoRotate(false);++ } else {++ setAutoRotate(true);++ return;++ }++ } else {++ if (currentImageIndex > 0) {++ setCurrentImageIndex(prev => prev - 1);++ setAutoRotate(false);++ }++ }++++ setTimeout(() => {++ setAutoRotate(true);++ }, 3000);++ }++ };++++ const carousel = carouselRef.current;++ if (carousel) {++ carousel.addEventListener('wheel', handleWheel, { passive: false });++++ return () => {++ carousel.removeEventListener('wheel', handleWheel);++ };++ }++ }, [currentImageIndex, images.length]);++++ return (++ <section className={styles.buildSection}>++ <div className={styles.buildContainer}>++ <div className={styles.sectionBadge}>++ <div className={styles.badgeIcon}></div>++ <span>{t('commentsSection.badge' as any)}</span>++ </div>++++ <div className={styles.buildContent}>++ <div className={styles.buildLeft}>++ <h2 className={styles.buildTitle}>++ {t('commentsSection.title' as any)}++ <span className={styles.titleBlue}>{t('commentsSection.titleBlue' as any)}</span>++ </h2>++++ <div className={styles.featureList}>++ <div className={styles.featureItem}>++ <h3>{t('commentsSection.features.hotTopic.title' as any)}</h3>++ <p>{t('commentsSection.features.hotTopic.description' as any)}</p>++ </div>++++ <div className={styles.featureItem}>++ <h3>{t('commentsSection.features.international.title' as any)}</h3>++ <p>{t('commentsSection.features.international.description' as any)}</p>++ </div>++ </div>++ </div>++++ <div className={styles.buildRight}>++ <div++ className={styles.imageCarousel}++ ref={carouselRef}++ >++ <div className={`${styles.carouselContainer} ${styles.mobileContainer}`}>++ {images.map((image, index) => (++ <div++ key={index}++ className={`${styles.carouselSlide} ${index === currentImageIndex ? styles.active : ''}`}++ >++ <img++ src={image}++ alt={`Comments Search ${index + 1}`}++ className={styles.mobileCarouselImage}++ />++ </div>++ ))}++ </div>++++ <div className={styles.carouselIndicators}>++ {images.map((_, index) => (++ <button++ key={index}++ className={`${styles.indicator} ${index === currentImageIndex ? styles.active : ''}`}++ onClick={() => {++ setCurrentImageIndex(index);++ setAutoRotate(false);++ setTimeout(() => setAutoRotate(true), 3000);++ }}++ />++ ))}++ </div>++++ <div className={styles.carouselHint}>++ <span>使用滚轮切换图片</span>++ </div>++ </div>++ </div>++ </div>++ </div>++ </section>++ );++}++++// 5. Content Engagement — 互动与增长引擎++function ContentEngagementSection() {++ const { t } = useTransClient('home');++ const [currentImageIndex, setCurrentImageIndex] = useState(0);++ const [autoRotate, setAutoRotate] = useState(true);++ const images = [IMAGE_URLS.commentFilter2];++ const autoRotateRef = useRef<NodeJS.Timeout | null>(null);++ const carouselRef = useRef<HTMLDivElement>(null);++++ // 自动轮播++ useEffect(() => {++ if (autoRotate) {++ autoRotateRef.current = setInterval(() => {++ setCurrentImageIndex(prev => (prev + 1) % images.length);++ }, 3000);++ } else {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ autoRotateRef.current = null;++ }++ }++++ return () => {++ if (autoRotateRef.current) {++ clearInterval(autoRotateRef.current);++ }++ };++ }, [autoRotate, images.length]);++++ // 滚轮控制++ useEffect(() => {++ const handleWheel = (e: WheelEvent) => {++ if (carouselRef.current && carouselRef.current.contains(e.target as Node)) {++ e.preventDefault();++++ if (e.deltaY > 0) {++ if (currentImageIndex < images.length - 1) {++ setCurrentImageIndex(prev => prev + 1);++ setAutoRotate(false);++ } else {++ setAutoRotate(true);++ return;++ }++ } else {++ if (currentImageIndex > 0) {++ setCurrentImageIndex(prev => prev - 1);++ setAutoRotate(false);++ }++ }++++ setTimeout(() => {++ setAutoRotate(true);++ }, 3000);++ }++ };++++ const carousel = carouselRef.current;++ if (carousel) {++ carousel.addEventListener('wheel', handleWheel, { passive: false });++++ return () => {++ carousel.removeEventListener('wheel', handleWheel);++ };++ }++ }, [currentImageIndex, images.length]);++++ return (++ <section className={styles.buildSection}>++ <div className={styles.buildContainer}>++ <div className={styles.sectionBadge}>++ <div className={styles.badgeIcon}></div>++ <span>{t('connectSection.badge' as any)}</span>++ </div>++++ <div className={styles.buildContent}>++ <div className={styles.buildLeft}>++ <h2 className={styles.buildTitle}>++ {t('connectSection.title' as any)}++ <span className={styles.titleBlue}>{t('connectSection.titleBlue' as any)}</span>++ </h2>++++ <div className={styles.featureList}>++ <div className={styles.featureItem}>++ <h3>{t('connectSection.features.creation.title' as any)}</h3>++ <p>{t('connectSection.features.creation.description' as any)}</p>++ </div>++++ <div className={styles.featureItem}>++ <h3>{t('connectSection.features.distribution.title' as any)}</h3>++ <p>{t('connectSection.features.distribution.description' as any)}</p>++ </div>++ </div>++ </div>++++ <div className={styles.buildRight}>++ <div++ className={styles.imageCarousel}++ ref={carouselRef}++ >++ <div className={`${styles.carouselContainer} ${styles.mobileContainer}`}>++ {images.map((image, index) => (++ <div++ key={index}++ className={`${styles.carouselSlide} ${index === currentImageIndex ? styles.active : ''}`}++ >++ <img++ src={image}++ alt={`Content Engagement ${index + 1}`}++ className={styles.mobileCarouselImage}++ />++ </div>++ ))}++ </div>++++ <div className={styles.carouselIndicators}>++ {images.map((_, index) => (++ <button++ key={index}++ className={`${styles.indicator} ${index === currentImageIndex ? styles.active : ''}`}++ onClick={() => {++ setCurrentImageIndex(index);++ setAutoRotate(false);++ setTimeout(() => setAutoRotate(true), 3000);++ }}++ />++ ))}++ </div>++++ <div className={styles.carouselHint}>++ <span>使用滚轮切换图片</span>++ </div>++ </div>++ </div>++ </div>++ </div>++ </section>++ );++}++++// 6-8. 即将上线功能整合模块++function UpcomingFeaturesSection() {++ const { t } = useTransClient('home');++++ return (++ <section className={styles.buildSection}>++ <div className={styles.buildContainer}>++ <div className={styles.sectionBadge}>++ <div className={styles.badgeIcon}></div>++ <span>{t('upcomingSection.badge' as any)}</span>++ </div>++++ <div className={styles.buildContent}>++ <div className={styles.buildLeft}>++ <h2 className={styles.buildTitle}>++ {t('upcomingSection.title' as any)}++ <span className={styles.titleBlue}>{t('upcomingSection.titleBlue' as any)}</span>++ </h2>++++ <div className={styles.featureList}>++ <div className={styles.featureItem}>++ <h3>{t('upcomingSection.features.smartImport.title' as any)}</h3>++ <p>{t('upcomingSection.features.smartImport.description' as any)}</p>++ </div>++++ <div className={styles.featureItem}>++ <h3>{t('upcomingSection.features.analytics.title' as any)}</h3>++ <p>{t('upcomingSection.features.analytics.description' as any)}</p>++ </div>++++ <div className={styles.featureItem}>++ <h3>{t('upcomingSection.features.aiCreation.title' as any)}</h3>++ <p>{t('upcomingSection.features.aiCreation.description' as any)}</p>++ </div>++++ <div className={styles.featureItem}>++ <h3>{t('upcomingSection.features.marketplace.title' as any)}</h3>++ <p>{t('upcomingSection.features.marketplace.description' as any)}</p>++ </div>++ </div>++ </div>++++ <div className={styles.buildRight} style={{ minHeight: '500px' }}>++ <div className={styles.imageCarousel}>++ <div className={styles.carouselContainer}>++ <div className={`${styles.carouselSlide} ${styles.active}`}>++ <video++ src={'https://aitoearn.s3.ap-southeast-1.amazonaws.com/production/temp/uploads/890044ad-c3a3-4a4c-8981-0eb72abff538.mp4'}++ controls++ className={styles.desktopCarouselImage}++ style={{ borderRadius: '16px', boxShadow: '0 20px 60px rgba(0, 0, 0, 0.2)' }}++ />++ </div>++ </div>++ </div>++ </div>++ </div>++ </div>++ </section>++ );++}++++// 移动应用下载区++import { QRCode } from 'react-qrcode-logo';++function DownloadSection() {++ const { t } = useTransClient('home');++++ return (++ <section className={styles.downloadSection} id="download">++ <div className={styles.downloadContainer}>++ <div className={styles.downloadContent}>++ <div className={styles.downloadLeft}>++ <h2 className={styles.downloadTitle}>++ {t('downloadSection.title')}<br />++ <span className={styles.titleBlue}>{t('downloadSection.titleBlue')}</span>++ </h2>++++ <p className={styles.downloadDescription}>++ {t('downloadSection.description')}++ </p>++++ <div className={styles.downloadButtons}>++ <a href={getMainAppDownloadUrl()} className={styles.downloadBtn} target="_blank" rel="noopener noreferrer">++ <div className={styles.downloadBtnContent}>++ <AndroidOutlined className={styles.downloadIcon} style={{ fontSize: '24px' }} />++ <div className={styles.downloadBtnText}>++ <span className={styles.downloadOn}>立即下载</span>++ <span className={styles.downloadStore}>Android APK</span>++ </div>++ </div>++ </a>++ <a href="https://play.google.com/store/apps/details?id=com.yika.aitoearn.aitoearn_app" className={styles.downloadBtn} target="_blank" rel="noopener noreferrer">++ <div className={styles.downloadBtnContent}>++ <AndroidOutlined className={styles.downloadIcon} style={{ fontSize: '24px' }} />++ <div className={styles.downloadBtnText}>++ <span className={styles.downloadOn}>Get it on</span>++ <span className={styles.downloadStore}>Google Play</span>++ </div>++ </div>++ </a>++ </div>++ </div>++++ <div className={styles.downloadRight}>++ <div className={styles.phoneContainer}>++++ <div className={styles.qrCode}>++ {/* <div className={styles.qrCodeImage}> */}++ <QRCode++ value={getMainAppDownloadUrl()}++ size={120}++ />++ {/* </div> */}++ <p className={styles.qrCodeText}>{t('downloadSection.qrCodeText' as any)}</p>++ </div>++++++ <div className={styles.phoneFrame}>++ <div className={styles.phoneScreen}>++ <div className={styles.phoneStatusBar}>++ <span className={styles.phoneTime}>9:41</span>++ <div className={styles.phoneSignals}>++ <div className={styles.phoneSignal}></div>++ <div className={styles.phoneBattery}></div>++ </div>++ </div>++++ <div className={styles.phoneContent}>++ <div className={styles.phoneHeader}>++ <h3>Create</h3>++ <span className={styles.phoneCounter}>280</span>++ </div>++++ <div className={styles.phoneVideoCard}>++ <span className={styles.phoneVideoTitle}>Example video</span>++ <div className={styles.phoneVideoPreview}>++ <img src={publish1.src} alt="Video preview" className={styles.phoneVideoImg} />++ </div>++ <div className={styles.phoneVideoMeta}>++ <span>Consumer</span>++ <span>⌚ 15</span>++ </div>++ </div>++++ <div className={styles.phoneCreatePrompt}>++ <div className={styles.phoneAddBtn}>+</div>++ <span>What do you want to create?</span>++ </div>++ </div>++ </div>++ </div>++++++ </div>++ </div>++ </div>++ </div>++ </section>++ );++}++++++++// Enterprise 区块++function EnterpriseSection() {++ const { t } = useTransClient('home');++++ return (++ <section className={styles.enterpriseSection}>++ <div className={styles.enterpriseContainer}>++ <div className={styles.sectionBadge}>++ <div className={styles.badgeIcon}></div>++ <span>{t('enterpriseSection.badge')}</span>++ </div>++++ <h2 className={styles.enterpriseTitle}>++ {t('enterpriseSection.title')}<br />++ <span className={styles.titleBlue}>{t('enterpriseSection.titleBlue')}</span>++ </h2>++++ <p className={styles.enterpriseSubtitle}>++ {t('enterpriseSection.subtitle')}++ </p>++ </div>++ </section>++ );++}++++// 数据统计区++function StatsSection() {++ const { t } = useTransClient('home');++++ return (++ <section className={styles.statsSection}>++ <div className={styles.statsContainer}>++ <div className={styles.statsGrid}>++ <div className={styles.statItem}>++ <div className={styles.statNumber}>{t('statsSection.stats.users.number')}</div>++ <div className={styles.statLabel}>{t('statsSection.stats.users.label')}</div>++ </div>++ <div className={styles.statItem}>++ <div className={styles.statNumber}>{t('statsSection.stats.platforms.number')}</div>++ <div className={styles.statLabel}>{t('statsSection.stats.platforms.label')}</div>++ </div>++ <div className={styles.statItem}>++ <div className={styles.statNumber}>{t('statsSection.stats.countries.number')}</div>++ <div className={styles.statLabel}>{t('statsSection.stats.countries.label')}</div>++ </div>++ <div className={styles.statItem}>++ <div className={styles.statNumber}>{t('statsSection.stats.content.number')}</div>++ <div className={styles.statLabel}>{t('statsSection.stats.content.label')}</div>++ </div>++ </div>++++ <div className={styles.testimonialCard}>++ <div className={styles.testimonialContent}>++ <p>"{t('statsSection.testimonial.quote')}"</p>++ <div className={styles.testimonialAuthor}>++ <div className={styles.authorName}>{t('statsSection.testimonial.author')}</div>++ <div className={styles.authorTitle}>{t('statsSection.testimonial.title')}</div>++ </div>++ </div>++ </div>++++ <div className={styles.caseStudies}>++ <div className={styles.caseStudy}>++ <div className={styles.caseTitle}>{t('statsSection.caseStudies.timeSaved.title')}</div>++ <div className={styles.caseNumber}>{t('statsSection.caseStudies.timeSaved.number')}</div>++ </div>++ <div className={styles.caseStudy}>++ <div className={styles.caseTitle}>{t('statsSection.caseStudies.aiAssistant.title')}</div>++ </div>++ </div>++ </div>++ </section>++ );++}++++// 社区区块++function CommunitySection() {++ const { t } = useTransClient('home');++ const [hoveredButton, setHoveredButton] = useState<string | null>(null);++++ return (++ <section className={styles.communitySection}>++ <div className={styles.communityContainer}>++ <div className={styles.sectionBadge}>++ <div className={styles.badgeIcon}></div>++ <span>{t('communitySection.badge')}</span>++ </div>++++ <h2 className={styles.communityTitle}>++ {t('communitySection.title')}<br />++ <span className={styles.titleBlue}>{t('communitySection.titleBlue')}</span>++ </h2>++++ <p className={styles.communitySubtitle}>++ {t('communitySection.subtitle')}++ </p>++++ <div className={styles.communityButtons}>++ <div className={styles.buttonWrapper}>++ <button++ className={styles.githubBtn}++ onMouseEnter={() => setHoveredButton('wechat')}++ onMouseLeave={() => setHoveredButton(null)}++ >++ {t('communitySection.buttons.wechat')}++ <svg className={styles.btnArrow} width="16" height="16" viewBox="0 0 16 16" fill="none">++ <path d="m6 12 4-4-4-4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>++ </svg>++ </button>++ {hoveredButton === 'wechat' && (++ <div className={styles.qrCodePopup}>++ <Image src={gongzhonghao} alt="微信公众号" width={200} height={200} className={styles.qrCodeImage} />++ <p className={styles.qrCodeText}>{t('communitySection.wechatPopup' as any)}</p>++ </div>++ )}++ </div>++++ <div className={styles.buttonWrapper}>++ <button++ className={styles.discordBtn}++ onMouseEnter={() => setHoveredButton('community')}++ onMouseLeave={() => setHoveredButton(null)}++ >++ {t('communitySection.buttons.community')}++ <svg className={styles.btnArrow} width="16" height="16" viewBox="0 0 16 16" fill="none">++ <path d="m6 12 4-4-4-4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>++ </svg>++ </button>++ {hoveredButton === 'community' && (++ <div className={styles.qrCodePopup}>++ <Image src={gongzhonghao} alt="社区公众号" width={200} height={200} className={styles.qrCodeImage} />++ <p className={styles.qrCodeText}>{t('communitySection.communityPopup' as any)}</p>++ </div>++ )}++ </div>++ </div>++++ <div className={styles.communityStats}>++ <div className={styles.communityStat}>++ <div className={styles.statNumber}>{t('communitySection.stats.downloads.number')}</div>++ <div className={styles.statLabel}>{t('communitySection.stats.downloads.label')}</div>++ </div>++ <div className={styles.communityStat}>++ <div className={styles.statNumber}>{t('communitySection.stats.members.number')}</div>++ <div className={styles.statLabel}>{t('communitySection.stats.members.label')}</div>++ </div>++ <div className={styles.communityStat}>++ <div className={styles.statNumber}>{t('communitySection.stats.creators.number')}</div>++ <div className={styles.statLabel}>{t('communitySection.stats.creators.label')}</div>++ </div>++ </div>++++ <div className={styles.tweets}>++ {/* 用户分享卡片区域 */}++ </div>++ </div>++ </section>++ );++}++++// Footer++function Footer() {++ const { t } = useTransClient('home');++ const [isHovered, setIsHovered] = useState(false);++ const [currentImageIndex, setCurrentImageIndex] = useState(0);++ const intervalRef = useRef<NodeJS.Timeout | null>(null);++ const router = useRouter();++ // 背景图片数组++ const backgroundImages = [++ IMAGE_URLS.hotspot,++ IMAGE_URLS.hotspot2,++ IMAGE_URLS.hotspot3,++ IMAGE_URLS.hotspot4,++ ];++++ useEffect(() => {++ if (isHovered) {++ intervalRef.current = setInterval(() => {++ setCurrentImageIndex(prev => (prev + 1) % backgroundImages.length);++ }, 1000);++ } else {++ if (intervalRef.current) {++ clearInterval(intervalRef.current);++ intervalRef.current = null;++ }++ setCurrentImageIndex(0);++ }++++ return () => {++ if (intervalRef.current) {++ clearInterval(intervalRef.current);++ }++ };++ }, [isHovered, backgroundImages.length]);++++ return (++ <footer className={styles.footer}>++ <div className={styles.footerContainer}>++ {/* 上半部分:Resources 和 Company */}++ <div className={styles.footerTop}>++ <div className={styles.footerColumns}>++ {/* <div className={styles.footerColumn}>++ <h4>{t('footer.resources.title')}</h4>++ <a href="#docs">{t('footer.resources.links.docs')}</a>++ <a href="#blog">{t('footer.resources.links.blog')}</a>++ <a href="#education">{t('footer.resources.links.education')}</a>++ <a href="#partner">{t('footer.resources.links.partner')}</a>++ <a href="#support">{t('footer.resources.links.support')}</a>++ <a href="#roadmap">{t('footer.resources.links.roadmap')}</a>++ </div> */}++++ <div className={styles.footerColumn}>++ <h4>{t('footer.company.title')}</h4>++ <a onClick={() => {++ router.push("/websit/terms-of-service");++ }}>{t('footer.company.links.terms')}</a>++ <a onClick={() => {++ router.push("/websit/privacy-policy");++ }}>{t('footer.company.links.privacy')}</a>++ <a onClick={() => {++ router.push("/websit/data-deletion");++ }}>{t('footer.company.links.data')}</a>++ </div>++ </div>++++ <div className={styles.footerInfo}>++ <div className={styles.footerText}>++ {t('footer.description')}++ </div>++++ {/* <div className={styles.socialLinks}>++ <a href="#github">{t('footer.social.github')}</a>++ <a href="#discord">{t('footer.social.discord')}</a>++ <a href="#youtube">{t('footer.social.youtube')}</a>++ <a href="#linkedin">{t('footer.social.linkedin')}</a>++ <a href="#twitter">{t('footer.social.twitter')}</a>++ </div> */}++ </div>++ </div>++++ {/* 下半部分:imagine if */}++ <div className={styles.footerBottom}>++ <div++ className={styles.bigText}++ onMouseEnter={() => setIsHovered(true)}++ onMouseLeave={() => setIsHovered(false)}++ >++ {t('footer.bigText')}++ <span++ className={styles.ifText}++ style={{++ marginLeft: '80px',++ backgroundImage: isHovered ? `url(${backgroundImages[currentImageIndex]})` : 'none',++ backgroundSize: 'cover',++ backgroundPosition: 'center',++ backgroundClip: 'text',++ WebkitBackgroundClip: 'text',++ color: isHovered ? 'transparent' : '#733DEC',++ textShadow: '0 2px 4px rgba(0, 0, 0, 0.2)'++ }}++ >++ Earn++ </span>++ </div>++++ <div className={styles.footerCopyright}>++ <div className={styles.copyright}>{t('footer.copyright')}</div>++ <div className={styles.tagline}>{t('footer.tagline')}</div>++ </div>++++ {/* <div className={styles.dataDeletionDoc}>++ <h1>{t('footer.dataDeletion.title')}</h1>++++ <p><strong>Last Updated:</strong> 2025.6.27</p>++++ <h2>For Pre-Launch Users:</h2>++ <p>{t('footer.dataDeletion.prelaunch')}</p>++++ <h2>{t('footer.dataDeletion.standardTitle')}</h2>++ <ol>++ <li>{t('footer.dataDeletion.standardSteps.0')}</li>++ <li>{t('footer.dataDeletion.standardSteps.1')}</li>++ <li>{t('footer.dataDeletion.standardSteps.2')}</li>++ <li>{t('footer.dataDeletion.standardSteps.3')}</li>++ </ol>++++ <h2>{t('footer.dataDeletion.contactTitle')}</h2>++ <p>{t('footer.dataDeletion.contactEmail')}</p>++ </div> */}++ </div>++ </div>++ </footer>++ );++}++++export default function Home() {++ return (++ <div className={styles.difyHome}>++ <ReleaseBanner />++ <Hero />++ <BrandBar />++ <ContentPublishingSection />++ <ContentHotspotSection />++ <ContentSearchSection />++ <CommentsSearchSection />++ <ContentEngagementSection />++ <UpcomingFeaturesSection />++ <DownloadSection />++ {/*<EnterpriseSection />++ <StatsSection /> */}++ {/* <CommunitySection /> */}++ <Footer />++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/pinterest/page.tsxindex 00000000,00000000..57d88c06new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/pinterest/page.tsx@@@ -1,0 -1,0 +1,1100 @@@++"use client";++++import { useState, useEffect, useRef } from "react";++import {++ Button,++ Tabs,++ Modal,++ Form,++ Input,++ Select,++ Upload,++ message,++ Pagination,++ Spin,++ Popconfirm,++ Badge,++ Card,++ Row,++ Col,++ Statistic,++ Typography,++ Empty,++ Divider++} from "antd";++import {++ PlusOutlined,++ DeleteOutlined,++ EditOutlined,++ PictureOutlined,++ ReloadOutlined,++ SearchOutlined,++ UploadOutlined,++ EyeOutlined,++ LinkOutlined,++ BarsOutlined,++ PushpinOutlined,++ UserOutlined,++ BarChartOutlined++} from "@ant-design/icons";++import styles from "./pinterest.module.scss";++import {++ getPinterestBoardListApi,++ createPinterestBoardApi,++ deletePinterestBoardApi,++ getPinterestPinListApi,++ createPinterestPinApi,++ deletePinterestPinApi,++ getPinterestAccountApi,++ getPinterestBoardApi,++ getPinterestPinApi++} from "@/api/pinterest";++import { getAccountListApi } from "@/api/account";++import { PlatType } from "@/app/config/platConfig";++import { uploadToOss } from "@/api/oss";++import { getOssUrl } from "@/utils/oss";++import { useTransClient } from "@/app/i18n/client";++++const { Search } = Input;++const { TextArea } = Input;++const { Text, Title } = Typography;++++// 自定义颜色选择器组件++const CustomColorPicker = ({ value, onChange }: { value?: string; onChange?: (value: string) => void }) => {++ const { t } = useTransClient('pinterest');++++ return (++ <div className={styles.colorPickerContainer}>++ <input++ type="color"++ className={styles.colorPicker}++ value={value || "#e60023"}++ onChange={(e) => onChange?.(e.target.value)}++ />++ <Text type="secondary" className={styles.colorPickerTip}>++ {t('pin.dominantColorTip')}++ </Text>++ </div>++ );++};++++export default function PinterestPage() {++ // 翻译函数++ const { t } = useTransClient('pinterest');++++ // 状态管理++ const [activeTab, setActiveTab] = useState("boards");++ const [loading, setLoading] = useState(false);++ const [accounts, setAccounts] = useState<any[]>([]);++ const [boards, setBoards] = useState<any[]>([]);++ const [pins, setPins] = useState<any[]>([]);++ const [selectedAccount, setSelectedAccount] = useState<any>(null);++++ // 模态框状态++ const [boardModalVisible, setBoardModalVisible] = useState(false);++ const [pinModalVisible, setPinModalVisible] = useState(false);++ const [boardDetailModalVisible, setBoardDetailModalVisible] = useState(false);++ const [pinDetailModalVisible, setPinDetailModalVisible] = useState(false);++++ // 表单++ const [boardForm] = Form.useForm();++ const [pinForm] = Form.useForm();++++ // 分页++ const [currentPage, setCurrentPage] = useState(1);++ const [pageSize, setPageSize] = useState(10);++ const [total, setTotal] = useState(0);++++ // 搜索++ const [searchKeyword, setSearchKeyword] = useState("");++++ // 选中的项目++ const [selectedBoard, setSelectedBoard] = useState<any>(null);++ const [selectedPin, setSelectedPin] = useState<any>(null);++++ // 图片上传++ const [imageFile, setImageFile] = useState<File | null>(null);++ const [imagePreview, setImagePreview] = useState<string>("");++ const [imageUrl, setImageUrl] = useState<string>("");++ const [uploading, setUploading] = useState(false);++ const fileInputRef = useRef<HTMLInputElement>(null);++++ // 初始化数据++ useEffect(() => {++ loadAccountList();++ }, []);++++ // 当selectedAccount变化时重新加载数据++ useEffect(() => {++ if (selectedAccount?.id) {++ if (activeTab === "boards") {++ loadBoards(1, 20);++ } else {++ loadPins(1, 10);++ }++ }++ }, [selectedAccount, activeTab]);++++++ // 加载账户列表++ const loadAccountList = async () => {++ try {++ setLoading(true);++ const response = await getAccountListApi();++ if (response?.code === 0) {++ // 过滤出Pinterest账户++ const pinterestAccounts = response.data.filter((account: any) => account.type === PlatType.Pinterest);++ setAccounts(pinterestAccounts);++ if (pinterestAccounts.length > 0) {++ setSelectedAccount(pinterestAccounts[0]);++ }++ }++ } catch (error) {++ message.error(t('messages.loadAccountsFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 加载boards++ const loadBoards = async (page = 1, size = 20) => {++ if (!selectedAccount?.id) return;++++ try {++ setLoading(true);++ const response = await getPinterestBoardListApi({ page, size }, selectedAccount.id);++ if (response?.code === 0) {++ setBoards(response.data?.list || []);++ setTotal(response.data?.count || 0);++ }++ } catch (error) {++ message.error(t('messages.loadBoardsFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 加载pins++ const loadPins = async (page = 1, size = 10) => {++ if (!selectedAccount?.id) return;++++ try {++ setLoading(true);++ const response = await getPinterestPinListApi({ page: page, size }, selectedAccount.id);++ if (response?.code === 0) {++ setPins(response.data?.list || []);++ setTotal(response.data?.count || 0);++ setCurrentPage(page);++ setPageSize(size);++ }++ } catch (error) {++ message.error(t('messages.loadPinsFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 创建Board++ const handleCreateBoard = async (values: any) => {++ if (!selectedAccount?.id) {++ message.error(t('messages.loadAccountsFailed'));++ return;++ }++++ try {++ setLoading(true);++ const response = await createPinterestBoardApi(values, selectedAccount.id);++ if (response?.code === 0) {++ message.success(t('messages.boardCreateSuccess'));++ setBoardModalVisible(false);++ boardForm.resetFields();++ loadBoards(1, 20);++ }++ } catch (error) {++ message.error(t('messages.boardCreateFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 删除Board++ const handleDeleteBoard = async (boardId: string) => {++ if (!selectedAccount?.id) {++ message.error(t('messages.loadAccountsFailed'));++ return;++ }++++ try {++ setLoading(true);++ const response = await deletePinterestBoardApi(boardId, selectedAccount.id);++ if (response?.code === 0) {++ message.success(t('messages.boardDeleteSuccess'));++ loadBoards(1, 20);++ }++ } catch (error) {++ message.error(t('messages.boardDeleteFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 创建Pin++ const handleCreatePin = async (values: any) => {++ if (!imageUrl) {++ message.error(t('messages.uploadImageFirst'));++ return;++ }++++ if (!selectedAccount?.id) {++ message.error(t('messages.loadAccountsFailed'));++ return;++ }++++ try {++ setLoading(true);++ const pinData = {++ board_id: values.board_id,++ link: values.link,++ title: values.title,++ description: values.description,++ dominant_color: values.dominant_color || "#e60023",++ alt_text: values.alt_text,++ media_source: {++ source_type: "image_url",++ url: imageUrl++ }++ };++++ const response = await createPinterestPinApi(pinData, selectedAccount.id);++ if (response?.code === 0) {++ message.success(t('messages.pinCreateSuccess'));++ setPinModalVisible(false);++ pinForm.resetFields();++ resetImageUpload();++ loadPins(currentPage, pageSize);++ }++ } catch (error) {++ message.error(t('messages.pinCreateFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 删除Pin++ const handleDeletePin = async (pinId: string) => {++ if (!selectedAccount?.id) {++ message.error(t('messages.loadAccountsFailed'));++ return;++ }++++ try {++ setLoading(true);++ const response = await deletePinterestPinApi(pinId, selectedAccount.id);++ if (response?.code === 0) {++ message.success(t('messages.pinDeleteSuccess'));++ loadPins(currentPage, pageSize);++ }++ } catch (error) {++ message.error(t('messages.pinDeleteFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 重置图片上传状态++ const resetImageUpload = () => {++ setImageFile(null);++ setImagePreview("");++ setImageUrl("");++ setUploading(false);++ };++++ // 图片上传处理++ const handleImageUpload = async (event: React.ChangeEvent<HTMLInputElement>) => {++ const file = event.target.files?.[0];++ if (!file) return;++++ if (!file.type.startsWith("image/")) {++ message.error(t('messages.selectImageFile'));++ return;++ }++++ // 检查文件大小 (限制10MB)++ if (file.size > 10 * 1024 * 1024) {++ message.error(t('messages.imageSizeLimit'));++ return;++ }++++ try {++ setUploading(true);++ setImageFile(file);++++ // 生成预览图++ const reader = new FileReader();++ reader.onload = (e) => {++ setImagePreview(e.target?.result as string);++ };++ reader.readAsDataURL(file);++++ // 上传到OSS++ const ossFileName = await uploadToOss(file);++ const fullImageUrl = getOssUrl(ossFileName);++++ setImageUrl(fullImageUrl);++ message.success(t('messages.imageUploadSuccess'));++ } catch (error) {++ console.error("图片上传失败:", error);++ message.error(t('messages.imageUploadFailed'));++ resetImageUpload();++ } finally {++ setUploading(false);++ }++ };++++ // 查看Board详情++ const handleViewBoard = async (board: any) => {++ if (!selectedAccount?.id) {++ message.error(t('messages.loadAccountsFailed'));++ return;++ }++++ try {++ setLoading(true);++ const response = await getPinterestBoardApi(board.id, selectedAccount.id);++ if (response?.code === 0) {++ setSelectedBoard(response.data);++ setBoardDetailModalVisible(true);++ }++ } catch (error) {++ message.error(t('messages.getBoardDetailFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 查看Pin详情++ const handleViewPin = async (pin: any) => {++ if (!selectedAccount?.id) {++ message.error(t('messages.loadAccountsFailed'));++ return;++ }++++ try {++ setLoading(true);++ const response = await getPinterestPinApi(pin.id, selectedAccount.id);++ if (response?.code === 0) {++ setSelectedPin(response.data);++ setPinDetailModalVisible(true);++ }++ } catch (error) {++ message.error(t('messages.getPinDetailFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 过滤boards++ const filteredBoards = boards.filter(board =>++ board && (++ board.name?.toLowerCase().includes(searchKeyword.toLowerCase()) ||++ (board.description && board.description.toLowerCase().includes(searchKeyword.toLowerCase()))++ )++ );++++ // 过滤pins++ const filteredPins = pins.filter(pin =>++ pin && (++ pin.title?.toLowerCase().includes(searchKeyword.toLowerCase()) ||++ (pin.description && pin.description.toLowerCase().includes(searchKeyword.toLowerCase())) ||++ (pin.note && pin.note.toLowerCase().includes(searchKeyword.toLowerCase())) ||++ (pin.alt_text && pin.alt_text.toLowerCase().includes(searchKeyword.toLowerCase())) ||++ (pin.creative_type && pin.creative_type.toLowerCase().includes(searchKeyword.toLowerCase()))++ )++ );++++ // Tab标签++ const tabItems = [++ {++ key: "boards",++ label: (++ <span>++ <BarsOutlined />++ {t('tabs.boards')}++ </span>++ )++ },++ {++ key: "pins",++ label: (++ <span>++ <PushpinOutlined />++ {t('tabs.pins')}++ </span>++ )++ }++ ];++++ return (++ <div className={styles.container}>++ <div className={styles.header}>++ <Title level={2} className={styles.title}>++ {/* <PictureOutlined /> */}++ {t('title')}++ </Title>++ <div className={styles.actions}>++ <Select++ style={{ width: 200 }}++ placeholder={t('actions.selectAccount')}++ value={selectedAccount?.id}++ onChange={(value) => {++ const account = accounts.find(acc => acc.id === value);++ setSelectedAccount(account || null);++ }}++ >++ {accounts.map(account => (++ <Select.Option key={account.id} value={account.id}>++ {account.nickname}++ </Select.Option>++ ))}++ </Select>++ <Button++ icon={<ReloadOutlined />}++ onClick={() => {++ if (activeTab === "boards") {++ loadBoards(1, 20);++ } else {++ loadPins(currentPage, pageSize);++ }++ }}++ className={styles.refreshButton}++ >++ {t('actions.refresh')}++ </Button>++ </div>++ </div>++++ {selectedAccount && (++ <Card className={styles.statsCard}>++ <Row gutter={[24, 16]}>++ <Col xs={12} sm={6}>++ <Statistic++ title={t('stats.followers')}++ value={selectedAccount.fansCount || 0}++ prefix={<UserOutlined />}++ formatter={(value) => value?.toLocaleString()}++ />++ </Col>++ <Col xs={12} sm={6}>++ <Statistic++ title={t('stats.boardCount')}++ value={selectedAccount.board_count || 0}++ prefix={<BarsOutlined />}++ formatter={(value) => value?.toLocaleString()}++ />++ </Col>++ <Col xs={12} sm={6}>++ <Statistic++ title={t('stats.pinCount')}++ value={selectedAccount.workCount || 0}++ prefix={<PushpinOutlined />}++ formatter={(value) => value?.toLocaleString()}++ />++ </Col>++ <Col xs={12} sm={6}>++ <Statistic++ title={t('stats.monthlyViews')}++ value={selectedAccount.readCount || 0}++ prefix={<BarChartOutlined />}++ formatter={(value) => value?.toLocaleString()}++ />++ </Col>++ </Row>++ </Card>++ )}++++ <div className={styles.content}>++ <div className={styles.filterSection}>++ <Search++ placeholder={t('actions.search')}++ value={searchKeyword}++ onChange={(e) => setSearchKeyword(e.target.value)}++ className={styles.searchBox}++ prefix={<SearchOutlined />}++ />++ <Button++ type="primary"++ icon={<PlusOutlined />}++ onClick={() => {++ if (activeTab === "boards") {++ setBoardModalVisible(true);++ } else {++ setPinModalVisible(true);++ loadBoards(1, 20); // 为创建Pin加载boards++ }++ }}++ >++ {activeTab === "boards" ? t('actions.createBoard') : t('actions.createPin')}++ </Button>++ </div>++++ <Tabs++ activeKey={activeTab}++ onChange={(key) => {++ setActiveTab(key);++ if (key === "pins") {++ loadPins(1, 10);++ }++ }}++ items={tabItems}++ className={styles.tabs}++ />++++ <div className={styles.tabContent}>++ {activeTab === "boards" && (++ <div className={styles.boardGrid}>++ {loading ? (++ <div className={styles.loading}>++ <Spin size="large" />++ </div>++ ) : filteredBoards.length === 0 ? (++ <Empty++ description={t('empty.noBoards')}++ image={Empty.PRESENTED_IMAGE_SIMPLE}++ />++ ) : (++ filteredBoards.map(board =>++ board && (++ <Card++ key={board.id}++ className={styles.boardCard}++ cover={++ <div className={styles.boardImage}>++ {board.media?.image_cover_url ? (++ <img++ src={board.media.image_cover_url}++ alt={board.name}++ />++ ) : (++ <BarsOutlined />++ )}++ </div>++ }++ actions={[++ <Button++ key="view"++ type="link"++ icon={<EyeOutlined />}++ onClick={() => handleViewBoard(board)}++ size="small"++ >++ {t('actions.view')}++ </Button>,++ <Popconfirm++ key="delete"++ title={t('board.deleteConfirm')}++ onConfirm={() => handleDeleteBoard(board.id)}++ okText={t('confirm.ok')}++ cancelText={t('confirm.cancel')}++ >++ <Button++ type="link"++ icon={<DeleteOutlined />}++ danger++ size="small"++ >++ {t('actions.delete')}++ </Button>++ </Popconfirm>++ ]}++ >++ <div className={styles.boardCardMeta}>++ <Card.Meta++ title={board.name}++ description={board.description || t('board.noDescription')}++ />++ <div className={styles.boardBadges}>++ <div>++ <span className={styles.badgeText}>{t('badges.pins')}</span>++ <Badge++ count={board.pin_count || 0}++ showZero++ style={{ backgroundColor: '#e60023' }}++ />++ </div>++ <div>++ <span className={styles.badgeText}>{t('badges.followers')}</span>++ <Badge++ count={board.follower_count || 0}++ showZero++ style={{ backgroundColor: '#e60023' }}++ />++ </div>++ </div>++ </div>++ </Card>++ )++ )++ )}++ </div>++ )}++++ {activeTab === "pins" && (++ <>++ <div className={styles.pinGrid}>++ {loading ? (++ <div className={styles.loading}>++ <Spin size="large" />++ </div>++ ) : filteredPins.length === 0 ? (++ <Empty++ description={t('empty.noPins')}++ image={Empty.PRESENTED_IMAGE_SIMPLE}++ />++ ) : (++ filteredPins.map(pin =>++ pin && (++ <Card++ key={pin.id}++ className={styles.pinCard}++ cover={++ <div className={styles.pinImage}>++ {pin.media?.images?.["600x"]?.url ? (++ <img++ src={pin.media.images["600x"].url}++ alt={pin.alt_text || pin.title || t('pin.imageAlt')}++ />++ ) : (++ <PictureOutlined />++ )}++ </div>++ }++ actions={[++ <Button++ key="view"++ type="link"++ icon={<EyeOutlined />}++ onClick={() => handleViewPin(pin)}++ size="small"++ >++ {t('actions.view')}++ </Button>,++ pin.link && (++ <Button++ key="link"++ type="link"++ icon={<LinkOutlined />}++ href={pin.link}++ target="_blank"++ size="small"++ >++ {t('actions.link')}++ </Button>++ ),++ <Popconfirm++ key="delete"++ title={t('pin.deleteConfirm')}++ onConfirm={() => handleDeletePin(pin.id)}++ okText={t('confirm.ok')}++ cancelText={t('confirm.cancel')}++ >++ <Button++ type="link"++ icon={<DeleteOutlined />}++ danger++ size="small"++ >++ {t('actions.delete')}++ </Button>++ </Popconfirm>++ ].filter(Boolean)}++ >++ <div className={styles.pinCardMeta}>++ <Card.Meta++ title={pin.title}++ description={pin.description || pin.note || t('pin.noDescription')}++ />++ <div className={styles.pinMetadata}>++ {pin.creative_type && (++ <Badge++ text={pin.creative_type}++ size="small"++ style={{ marginRight: 8 }}++ />++ )}++ {pin.is_owner && (++ <Badge++ text={t('badges.owner')}++ color="green"++ size="small"++ />++ )}++ </div>++ </div>++ </Card>++ )++ )++ )}++ </div>++++ {!loading && filteredPins.length > 0 && (++ <div className={styles.pagination}>++ <Pagination++ current={currentPage}++ total={total}++ pageSize={pageSize}++ onChange={(page, size) => loadPins(page, size)}++ showSizeChanger++ showQuickJumper++ showTotal={(total, range) =>++ t('pagination.total', {++ range: `${range[0]}-${range[1]}`,++ total: total++ })++ }++ />++ </div>++ )}++ </>++ )}++ </div>++ </div>++++ {/* 创建Board模态框 */}++ <Modal++ title={t('board.createTitle')}++ open={boardModalVisible}++ onCancel={() => setBoardModalVisible(false)}++ footer={null}++ className={styles.modal}++ >++ <Form++ form={boardForm}++ onFinish={handleCreateBoard}++ layout="vertical"++ >++ <Form.Item++ label={t('board.name')}++ name="name"++ rules={[{ required: true, message: t('validation.boardNameRequired') }]}++ >++ <Input placeholder={t('board.namePlaceholder')} />++ </Form.Item>++++ <Form.Item++ label={t('board.description')}++ name="description"++ >++ <TextArea++ placeholder={t('board.descriptionPlaceholder')}++ rows={3}++ />++ </Form.Item>++++ <Form.Item++ label={t('board.privacy')}++ name="privacy"++ initialValue="PUBLIC"++ >++ <Select>++ <Select.Option value="PUBLIC">{t('board.public')}</Select.Option>++ <Select.Option value="PRIVATE">{t('board.private')}</Select.Option>++ </Select>++ </Form.Item>++++ <Form.Item>++ <Button type="primary" htmlType="submit" loading={loading} block>++ {t('board.createButton')}++ </Button>++ </Form.Item>++ </Form>++ </Modal>++++ {/* 创建Pin模态框 */}++ <Modal++ title={t('pin.createTitle')}++ open={pinModalVisible}++ onCancel={() => {++ setPinModalVisible(false);++ resetImageUpload();++ }}++ footer={null}++ className={styles.modal}++ width={600}++ >++ <Form++ form={pinForm}++ onFinish={handleCreatePin}++ layout="vertical"++ >++ <Form.Item++ label={t('pin.selectBoard')}++ name="board_id"++ rules={[{ required: true, message: t('validation.selectBoardRequired') }]}++ >++ <Select placeholder={t('pin.selectBoardPlaceholder')}>++ {boards?.map(board =>++ board && (++ <Select.Option key={board.id} value={board.id}>++ {board.name}++ </Select.Option>++ )++ )}++ </Select>++ </Form.Item>++++ <Form.Item++ label={t('pin.uploadImage')}++ required++ >++ <div className={styles.uploadArea} onClick={() => !uploading && fileInputRef.current?.click()}>++ {uploading ? (++ <div className={styles.uploadLoading}>++ <Spin size="large" />++ <div className={styles.uploadText}>{t('pin.uploading')}</div>++ </div>++ ) : imagePreview ? (++ <div className={styles.uploadSuccess}>++ <img++ src={imagePreview}++ alt="预览"++ className={styles.previewImage}++ />++ <div className={styles.uploadStatus}>++ <span className={styles.successText}>{t('pin.uploadSuccess')}</span>++ <Button++ size="small"++ type="link"++ onClick={(e) => {++ e.stopPropagation();++ resetImageUpload();++ }}++ >++ {t('pin.reupload')}++ </Button>++ </div>++ </div>++ ) : (++ <div>++ <UploadOutlined className={styles.uploadIcon} />++ <div className={styles.uploadText}>{t('pin.uploadImagePlaceholder')}</div>++ <div className={styles.uploadHint}>{t('pin.uploadHint')}</div>++ </div>++ )}++ </div>++ <input++ ref={fileInputRef}++ type="file"++ accept="image/*"++ onChange={handleImageUpload}++ style={{ display: "none" }}++ />++ {imageUrl && (++ <div className={styles.urlDisplay}>++ <Text type="secondary" ellipsis>{t('pin.ossUrl')}: {imageUrl}</Text>++ </div>++ )}++ </Form.Item>++++ <Form.Item++ label={t('pin.title')}++ name="title"++ rules={[{ required: true, message: t('validation.titleRequired') }]}++ >++ <Input placeholder={t('pin.titlePlaceholder')} />++ </Form.Item>++++ <Form.Item++ label={t('pin.description')}++ name="description"++ rules={[{ required: true, message: t('validation.descriptionRequired') }]}++ >++ <TextArea++ placeholder={t('pin.descriptionPlaceholder')}++ rows={3}++ />++ </Form.Item>++++ <Form.Item++ label={t('pin.link')}++ name="link"++ >++ <Input placeholder={t('pin.linkPlaceholder')} />++ </Form.Item>++++ <Form.Item++ label={t('pin.altText')}++ name="alt_text"++ >++ <Input placeholder={t('pin.altTextPlaceholder')} />++ </Form.Item>++++ <Form.Item++ label={t('pin.dominantColor')}++ name="dominant_color"++ initialValue="#e60023"++ >++ <CustomColorPicker />++ </Form.Item>++++ <Form.Item>++ <Button type="primary" htmlType="submit" loading={loading} block>++ {t('pin.createButton')}++ </Button>++ </Form.Item>++ </Form>++ </Modal>++++ {/* Board详情模态框 */}++ <Modal++ title={t('board.detailTitle')}++ open={boardDetailModalVisible}++ onCancel={() => setBoardDetailModalVisible(false)}++ footer={null}++ width={600}++ >++ {selectedBoard && (++ <div>++ <Title level={4}>{selectedBoard.name}</Title>++ <Text type="secondary">{selectedBoard.description}</Text>++ <Divider />++ <Row gutter={[16, 16]}>++ <Col span={12}>++ <Statistic title={t('stats.pinCount')} value={selectedBoard.pin_count} />++ </Col>++ <Col span={12}>++ <Statistic title={t('stats.followers')} value={selectedBoard.follower_count} />++ </Col>++ </Row>++ <Divider />++ <Text type="secondary">++ {t('board.createTime')}: {new Date(selectedBoard.created_at).toLocaleDateString()}++ </Text>++ </div>++ )}++ </Modal>++++ {/* Pin详情模态框 */}++ <Modal++ title={t('pin.detailTitle')}++ open={pinDetailModalVisible}++ onCancel={() => setPinDetailModalVisible(false)}++ footer={null}++ width={700}++ >++ {selectedPin && (++ <div>++ <Title level={4}>{selectedPin.title}</Title>++ <Text type="secondary">{selectedPin.description || selectedPin.note}</Text>++ <Divider />++++ {/* 图片显示 - 优先使用高清图片 */}++ {selectedPin.media?.images && (++ <div style={{ textAlign: "center", marginBottom: 16 }}>++ <img++ src={++ selectedPin.media.images["1200x"]?.url ||++ selectedPin.media.images["600x"]?.url ||++ selectedPin.media.images["400x300"]?.url++ }++ alt={selectedPin.alt_text || selectedPin.title || t('pin.imageAlt')}++ style={{ maxWidth: "100%", maxHeight: "400px", borderRadius: "8px" }}++ />++ </div>++ )}++++ {/* Pin信息 */}++ <Row gutter={[16, 16]} style={{ marginBottom: 16 }}>++ <Col span={12}>++ <Text strong>{t('pin.pinId')}: </Text>++ <Text copyable>{selectedPin.id}</Text>++ </Col>++ <Col span={12}>++ <Text strong>{t('pin.boardId')}: </Text>++ <Text copyable>{selectedPin.board_id}</Text>++ </Col>++ {selectedPin.creative_type && (++ <Col span={12}>++ <Text strong>{t('pin.creativeType')}: </Text>++ <Badge text={selectedPin.creative_type} />++ </Col>++ )}++ {selectedPin.dominant_color && (++ <Col span={12}>++ <Text strong>{t('pin.dominantColor')}: </Text>++ <div style={{ display: "inline-flex", alignItems: "center", gap: 8 }}>++ <div++ style={{++ width: 20,++ height: 20,++ backgroundColor: selectedPin.dominant_color,++ borderRadius: "4px",++ border: "1px solid #d9d9d9"++ }}++ />++ <Text>{selectedPin.dominant_color}</Text>++ </div>++ </Col>++ )}++ </Row>++++ {/* 状态信息 */}++ <Row gutter={[16, 8]} style={{ marginBottom: 16 }}>++ <Col span={8}>++ <Text strong>{t('pin.isOwner')}: </Text>++ <Badge++ color={selectedPin.is_owner ? "green" : "default"}++ text={selectedPin.is_owner ? t('badges.yes') : t('badges.no')}++ />++ </Col>++ <Col span={8}>++ <Text strong>{t('pin.isRemovable')}: </Text>++ <Badge++ color={selectedPin.is_removable ? "green" : "red"}++ text={selectedPin.is_removable ? t('badges.yes') : t('badges.no')}++ />++ </Col>++ <Col span={8}>++ <Text strong>{t('pin.isStandard')}: </Text>++ <Badge++ color={selectedPin.is_standard ? "blue" : "default"}++ text={selectedPin.is_standard ? t('badges.yes') : t('badges.no')}++ />++ </Col>++ </Row>++++ {/* 链接信息 */}++ {selectedPin.link && (++ <div style={{ marginBottom: 16 }}>++ <Text strong>{t('pin.link')}: </Text>++ <a href={selectedPin.link} target="_blank" rel="noopener noreferrer">++ {selectedPin.link}++ </a>++ </div>++ )}++++ {/* Alt文本 */}++ {selectedPin.alt_text && (++ <div style={{ marginBottom: 16 }}>++ <Text strong>{t('pin.altText')}: </Text>++ <Text>{selectedPin.alt_text}</Text>++ </div>++ )}++++ {/* Board拥有者信息 */}++ {selectedPin.board_owner && (++ <div style={{ marginBottom: 16 }}>++ <Text strong>{t('pin.boardOwner')}: </Text>++ <Text>@{selectedPin.board_owner.username}</Text>++ </div>++ )}++++ <Divider />++ <Text type="secondary">++ {t('board.createTime')}: {new Date(selectedPin.created_at).toLocaleDateString('zh-CN')}++ </Text>++ </div>++ )}++ </Modal>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/pinterest/pinterest.module.scssindex 00000000,00000000..0c11b830new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/pinterest/pinterest.module.scss@@@ -1,0 -1,0 +1,565 @@@++.container {++ max-width: 1200px;++ margin: 0 auto;++ padding: 20px;++ background-color: #f8f9fa;++ min-height: 100vh;++}++++.header {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 30px;++ padding: 20px 0;++ border-bottom: 1px solid #e0e0e0;++ flex-wrap: wrap;++ gap: 20px;++++ @media (max-width: 768px) {++ flex-direction: column;++ text-align: center;++ }++}++++.title {++ font-size: 32px;++ font-weight: bold;++ color: #e60023;++ margin: 0;++++ @media (max-width: 768px) {++ font-size: 28px;++ }++}++++.actions {++ display: flex;++ gap: 15px;++ align-items: center;++ flex-wrap: wrap;++++ @media (max-width: 768px) {++ justify-content: center;++ width: 100%;++ }++}++++.tabs {++ margin-bottom: 30px;++++ :global(.ant-tabs-nav) {++ margin-bottom: 24px;++ }++}++++.content {++ background: white;++ border-radius: 12px;++ padding: 25px;++ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);++++ @media (max-width: 768px) {++ padding: 15px;++ }++}++++.statsCard {++ margin-bottom: 24px;++++ :global(.ant-card-body) {++ padding: 24px;++ }++++ :global(.ant-statistic-title) {++ color: rgba(0, 0, 0, 0.65);++ font-size: 14px;++ margin-bottom: 4px;++ }++++ :global(.ant-statistic-content) {++ color: rgba(0, 0, 0, 0.85);++ font-size: 24px;++ font-weight: 600;++ }++}++++.filterSection {++ display: flex;++ gap: 15px;++ margin-bottom: 24px;++ align-items: center;++ flex-wrap: wrap;++++ @media (max-width: 768px) {++ flex-direction: column;++ align-items: stretch;++ gap: 12px;++ }++}++++.searchBox {++ min-width: 200px;++ max-width: 320px;++ flex: 1;++++ @media (max-width: 768px) {++ min-width: unset;++ max-width: unset;++ }++}++++.refreshButton {++ white-space: nowrap;++}++++// Board网格布局优化++.boardGrid {++ display: grid;++ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));++ gap: 24px;++ margin-top: 20px;++++ @media (max-width: 1200px) {++ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));++ gap: 20px;++ }++++ @media (max-width: 768px) {++ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));++ gap: 16px;++ }++++ @media (max-width: 480px) {++ grid-template-columns: 1fr;++ gap: 16px;++ }++}++++.boardCard {++ height: 100%; // 确保所有卡片高度一致++ display: flex;++ flex-direction: column;++++ :global(.ant-card-body) {++ padding: 16px;++ flex: 1;++ display: flex;++ flex-direction: column;++ }++++ :global(.ant-card-actions) {++ border-top: 1px solid #f0f0f0;++ background: #fafafa;++++ li {++ margin: 8px 0;++++ button {++ height: auto;++ padding: 4px 8px;++ }++ }++ }++++ &:hover {++ transform: translateY(-2px);++ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);++ }++}++++.boardImage {++ width: 100%;++ height: 160px;++ display: flex;++ align-items: center;++ justify-content: center;++ background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);++ font-size: 48px;++ color: #bbb;++ overflow: hidden;++++ img {++ width: 100%;++ height: 100%;++ object-fit: cover;++ }++}++++// Board卡片内容区域++.boardCardMeta {++ flex: 1;++ display: flex;++ flex-direction: column;++++ :global(.ant-card-meta-title) {++ font-size: 16px;++ font-weight: 600;++ margin-bottom: 8px;++ overflow: hidden;++ text-overflow: ellipsis;++ white-space: nowrap;++ }++++ :global(.ant-card-meta-description) {++ flex: 1;++ display: -webkit-box;++ -webkit-line-clamp: 2;++ -webkit-box-orient: vertical;++ overflow: hidden;++ font-size: 14px;++ color: rgba(0, 0, 0, 0.65);++ line-height: 1.5;++ margin-bottom: 12px;++ }++}++++// 修复徽章位置++.boardBadges {++ display: flex;++ gap: 16px;++ align-items: center;++ margin-top: auto;++++ :global(.ant-badge) {++ display: inline-flex;++ align-items: center;++++ :global(.ant-badge-count) {++ position: relative;++ transform: none;++ right: auto;++ top: auto;++ margin-left: 8px;++ background: #e60023;++ font-size: 12px;++ min-width: 20px;++ height: 20px;++ line-height: 18px;++ border-radius: 10px;++ }++ }++++ .badgeText {++ font-size: 14px;++ color: rgba(0, 0, 0, 0.65);++ font-weight: 500;++ }++}++++// Pin网格布局优化++.pinGrid {++ display: grid;++ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));++ gap: 24px;++ margin-top: 20px;++++ @media (max-width: 1200px) {++ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));++ gap: 20px;++ }++++ @media (max-width: 768px) {++ grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));++ gap: 16px;++ }++++ @media (max-width: 480px) {++ grid-template-columns: repeat(2, 1fr);++ gap: 12px;++ }++}++++.pinCard {++ height: 100%;++ display: flex;++ flex-direction: column;++++ :global(.ant-card-body) {++ padding: 12px;++ flex: 1;++ display: flex;++ flex-direction: column;++ }++++ :global(.ant-card-actions) {++ border-top: 1px solid #f0f0f0;++ background: #fafafa;++++ li {++ margin: 6px 0;++++ button {++ height: auto;++ padding: 4px 8px;++ font-size: 12px;++ }++ }++ }++++ &:hover {++ transform: translateY(-2px);++ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);++ }++}++++.pinImage {++ width: 100%;++ height: 180px;++ display: flex;++ align-items: center;++ justify-content: center;++ background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);++ font-size: 36px;++ color: #bbb;++ overflow: hidden;++++ img {++ width: 100%;++ height: 100%;++ object-fit: cover;++ }++}++++.pinCardMeta {++ flex: 1;++++ :global(.ant-card-meta-title) {++ font-size: 14px;++ font-weight: 600;++ margin-bottom: 6px;++ overflow: hidden;++ text-overflow: ellipsis;++ white-space: nowrap;++ }++++ :global(.ant-card-meta-description) {++ display: -webkit-box;++ -webkit-line-clamp: 2;++ -webkit-box-orient: vertical;++ overflow: hidden;++ font-size: 12px;++ color: rgba(0, 0, 0, 0.65);++ line-height: 1.4;++ margin-bottom: 8px;++ }++}++++.pinMetadata {++ display: flex;++ gap: 8px;++ flex-wrap: wrap;++ margin-top: 8px;++++ :global(.ant-badge) {++ font-size: 11px;++++ :global(.ant-badge-status-text) {++ font-size: 11px;++ color: rgba(0, 0, 0, 0.65);++ }++ }++}++++.loading {++ text-align: center;++ padding: 60px 20px;++++ :global(.ant-spin-lg .ant-spin-dot) {++ font-size: 32px;++ }++++ @media (max-width: 768px) {++ padding: 40px 20px;++ }++}++++.pagination {++ display: flex;++ justify-content: center;++ margin-top: 32px;++ padding-top: 24px;++ border-top: 1px solid #f0f0f0;++++ :global(.ant-pagination) {++ @media (max-width: 768px) {++ :global(.ant-pagination-options) {++ display: none;++ }++ }++ }++}++++// 模态框样式++.modal {++ :global(.ant-modal-content) {++ border-radius: 12px;++ }++++ :global(.ant-modal-header) {++ border-radius: 12px 12px 0 0;++ }++}++++.uploadArea {++ border: 2px dashed #d9d9d9;++ border-radius: 8px;++ padding: 40px 20px;++ text-align: center;++ cursor: pointer;++ transition: all 0.3s;++ background: #fafafa;++ position: relative;++++ &:hover {++ border-color: #e60023;++ background: #fff2f0;++ }++}++++.uploadIcon {++ font-size: 48px;++ color: #bfbfbf;++ margin-bottom: 16px;++ display: block;++}++++.uploadText {++ font-size: 16px;++ color: rgba(0, 0, 0, 0.65);++ margin-bottom: 8px;++}++++.uploadHint {++ font-size: 14px;++ color: rgba(0, 0, 0, 0.45);++}++++.previewImage {++ max-width: 100%;++ max-height: 300px;++ border-radius: 8px;++ object-fit: contain;++}++++.uploadLoading {++ display: flex;++ flex-direction: column;++ align-items: center;++ gap: 16px;++}++++.uploadSuccess {++ position: relative;++}++++.uploadStatus {++ position: absolute;++ top: 8px;++ right: 8px;++ background: rgba(255, 255, 255, 0.9);++ padding: 4px 8px;++ border-radius: 4px;++ display: flex;++ align-items: center;++ gap: 8px;++ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);++}++++.successText {++ color: #52c41a;++ font-size: 12px;++ font-weight: 600;++}++++.urlDisplay {++ margin-top: 8px;++ padding: 8px 12px;++ background: #f5f5f5;++ border-radius: 4px;++ border: 1px solid #e0e0e0;++ font-size: 12px;++}++++.colorPicker {++ display: flex;++ align-items: center;++ gap: 12px;++}++++.colorInput {++ width: 50px;++ height: 32px;++ border: 1px solid #d9d9d9;++ border-radius: 6px;++ cursor: pointer;++ outline: none;++++ &:focus {++ border-color: #e60023;++ box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.2);++ }++}++++// 颜色选择器样式++.colorPickerContainer {++ display: flex;++ align-items: center;++ gap: 12px;++}++++.colorPicker {++ width: 60px;++ height: 32px;++ border: 1px solid #d9d9d9;++ border-radius: 6px;++ cursor: pointer;++ outline: none;++ background: none;++++ &::-webkit-color-swatch-wrapper {++ padding: 0;++ border: none;++ border-radius: 5px;++ }++++ &::-webkit-color-swatch {++ border: none;++ border-radius: 5px;++ }++++ &::-moz-color-swatch {++ border: none;++ border-radius: 5px;++ }++++ &:focus {++ border-color: #e60023;++ box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.2);++ }++++ &:hover {++ border-color: #e60023;++ }++}++++.colorPickerTip {++ font-size: 12px;++ color: rgba(0, 0, 0, 0.65);++}++++// 过渡动画++.tabContent {++ animation: fadeInUp 0.4s ease-out;++}++++@keyframes fadeInUp {++ from {++ opacity: 0;++ transform: translateY(20px);++ }++ to {++ opacity: 1;++ transform: translateY(0);++ }++}diff --cc project/aitoearn-web/src/app/[lng]/pricing/page.tsxindex 00000000,00000000..18aa70f9new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/pricing/page.tsx@@@ -1,0 -1,0 +1,753 @@@++"use client";++++import { useState } from "react";++import { Button, Collapse } from "antd";++import { CheckOutlined, CloseOutlined } from "@ant-design/icons";++import { useTransClient } from "@/app/i18n/client";++import pricingStyles from "../styles/pricing.module.scss";++++/**++ * 定价页面组件++ */++export default function PricingPage() {++ const { t } = useTransClient('pricing');++ const [billingCycle, setBillingCycle] = useState<'monthly' | 'yearly'>('yearly');++++ // 直接使用 aaa.md 中的完整数据++ const fallbackPricingData = [++ {++ model: "gpt-5",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "大模型价格以官方价格为准",++ credits: "每百万tokens",++ price: "输入 9元,输出 72",++ channel: "yun"++ },++ {++ model: "gpt-5-mini",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "",++ credits: "",++ price: "输入 1.8元,输出 14.4",++ channel: "yun"++ },++ {++ model: "gpt-5-nano",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "",++ credits: "",++ price: "输入 0.36元,输出 2.88",++ channel: "yun"++ },++ {++ model: "gemini-2.5-pro",++ type: "大模型",++ duration: "",++ resolution: "支持视频",++ notes: "",++ credits: "",++ price: "输入9元,输出 72",++ channel: "yun"++ },++ {++ model: "chatgpt-4o-latest",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "",++ credits: "",++ price: "输入 36元,输出 108",++ channel: "yun"++ },++ {++ model: "gemini-2.5-flash",++ type: "大模型",++ duration: "",++ resolution: "支持视频",++ notes: "",++ credits: "",++ price: "输入 2.16元,输出 18",++ channel: "yun"++ },++ {++ model: "qwen-vl-max-latest",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "",++ credits: "",++ price: "输入1.6元,输出4",++ channel: "yun"++ },++ {++ model: "kimi-k2-0711-preview",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "不支持图片",++ credits: "",++ price: "",++ channel: "暂不接入"++ },++ {++ model: "grok-4",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "不支持图片",++ credits: "",++ price: "",++ channel: "暂不接入"++ },++ {++ model: "claude-opus-4-1-20250805-thinking",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "不支持图片,不支持图片的不着急支持",++ credits: "",++ price: "",++ channel: "暂不接入 "++ },++ {++ model: "qwen3-235b-a22b-07-25",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "不支持图片",++ credits: "",++ price: "",++ channel: "暂不接入"++ },++ {++ model: "deepseek-r1-0528",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "不支持图片",++ credits: "",++ price: "",++ channel: "暂不接入"++ },++ {++ model: "claude-sonnet-4-20250514-thinking",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "不支持图片",++ credits: "",++ price: "",++ channel: "暂不接入"++ },++ {++ model: "deepseek-v3-0324",++ type: "大模型",++ duration: "",++ resolution: "",++ notes: "不支持图片",++ credits: "",++ price: "",++ channel: "暂不接入"++ },++ {++ model: "gemini-2.5-flash-image",++ type: "图片生成",++ duration: "",++ resolution: "",++ notes: "又名nano banana,支持多图像输入",++ credits: "1",++ price: "0.27",++ channel: "yun"++ },++ {++ model: "seedream-3.0",++ type: "图片生成",++ duration: "",++ resolution: "",++ notes: "",++ credits: "2.6",++ price: "0.26",++ channel: "官方"++ },++ {++ model: "seededit-3.0",++ type: "图片生成",++ duration: "",++ resolution: "",++ notes: "图片编辑,传入图片需要满足以下条件:图片格式:jpeg、png。宽高比(宽/高):在范围 (1/3, 3) 。宽高长度(px) > 14。大小:不超过 10MB。",++ credits: "3",++ price: "0.3",++ channel: "官方"++ },++ {++ model: "gpt-image-1",++ type: "图片生成",++ duration: "",++ resolution: "",++ notes: "支持图片编辑",++ credits: "1",++ price: "low $0.011-0.016, medium $0.042-0.063, high $0.167-0.25",++ channel: "yun"++ },++ {++ model: "FLUX.1 Kontext [max]",++ type: "图片生成",++ duration: "",++ resolution: "",++ notes: "支持图片编辑",++ credits: "1.5",++ price: "0.6",++ channel: "yun"++ },++ {++ model: "FLUX.1 Kontext [pro]",++ type: "图片生成",++ duration: "",++ resolution: "",++ notes: "支持图片编辑",++ credits: "1",++ price: "0.3",++ channel: "yun"++ },++ {++ model: "FLUX.1[dev]",++ type: "图片生成",++ duration: "",++ resolution: "",++ notes: "",++ credits: "先不上",++ price: "0.2",++ channel: ""++ },++ {++ model: "Flux 1.1 pro ultra",++ type: "图片生成",++ duration: "",++ resolution: "",++ notes: "",++ credits: "4.5",++ price: "0.45",++ channel: "官方"++ },++ {++ model: "Flux1.1 pro",++ type: "图片生成",++ duration: "",++ resolution: "",++ notes: "",++ credits: "3",++ price: "0.3",++ channel: "官方"++ },++ {++ model: "midjourney relax",++ type: "视频生成",++ duration: "5秒",++ resolution: "",++ notes: "",++ credits: "免费",++ price: "",++ channel: "yun"++ },++ {++ model: "midjourney fast/turbo",++ type: "视频生成",++ duration: "5秒",++ resolution: "",++ notes: "",++ credits: "4",++ price: "",++ channel: "yun"++ },++ {++ model: "kling1.5/1.6/2.1",++ type: "视频生成",++ duration: "5秒",++ resolution: "720p",++ notes: "",++ credits: "20",++ price: "2",++ channel: "yun"++ },++ {++ model: "kling1.5/1.6/2.1",++ type: "视频生成",++ duration: "10秒",++ resolution: "720p",++ notes: "",++ credits: "40",++ price: "4",++ channel: "yun"++ },++ {++ model: "kling1.5/1.6/2.1",++ type: "视频生成",++ duration: "5秒",++ resolution: "1080p",++ notes: "",++ credits: "35",++ price: "3.5",++ channel: "yun"++ },++ {++ model: "kling1.5/1.6/2.1",++ type: "视频生成",++ duration: "10秒",++ resolution: "1080p",++ notes: "",++ credits: "70",++ price: "7",++ channel: "yun"++ },++ {++ model: "kling1.6多图参考",++ type: "视频生成",++ duration: "5秒",++ resolution: "720p",++ notes: "",++ credits: "20",++ price: "2",++ channel: "yun"++ },++ {++ model: "kling1.6多图参考",++ type: "视频生成",++ duration: "10秒",++ resolution: "720p",++ notes: "",++ credits: "40",++ price: "4",++ channel: "yun"++ },++ {++ model: "kling1.6多图参考",++ type: "视频生成",++ duration: "5秒",++ resolution: "1080p",++ notes: "",++ credits: "35",++ price: "3.5",++ channel: "yun"++ },++ {++ model: "kling1.6多图参考",++ type: "视频生成",++ duration: "10秒",++ resolution: "1080p",++ notes: "",++ credits: "70",++ price: "7",++ channel: "yun"++ },++ {++ model: "kling2.1大师",++ type: "视频生成",++ duration: "5秒",++ resolution: "1080p",++ notes: "",++ credits: "100",++ price: "10",++ channel: "yun"++ },++ {++ model: "kling2.1大师",++ type: "视频生成",++ duration: "10秒",++ resolution: "1080p",++ notes: "",++ credits: "200",++ price: "20",++ channel: "yun"++ },++ {++ model: "wan2.2-plus",++ type: "视频生成",++ duration: "5秒",++ resolution: "480p",++ notes: "",++ credits: "70",++ price: "0.7",++ channel: "yun"++ },++ {++ model: "wan2.2-plus",++ type: "视频生成",++ duration: "5秒",++ resolution: "1080p",++ notes: "",++ credits: "35",++ price: "3.5",++ channel: "yun"++ },++ {++ model: "wan2.1-turbo(14b)",++ type: "视频生成",++ duration: "5秒",++ resolution: "720p",++ notes: "不要使用火山渠道",++ credits: "12",++ price: "1.2",++ channel: "yun"++ },++ {++ model: "wan2.1-plus",++ type: "视频生成",++ duration: "5秒",++ resolution: "720p",++ notes: "支持首尾帧",++ credits: "35",++ price: "3.5",++ channel: "yun"++ },++ {++ model: "wanx2.1-vace-plus",++ type: "视频生成",++ duration: "5秒",++ resolution: "720p",++ notes: "视频编辑",++ credits: "35",++ price: "3.5",++ channel: "yun"++ },++ {++ model: "seedance-1.0-pro",++ type: "视频生成",++ duration: "5秒",++ resolution: "480p",++ notes: "支持10秒",++ credits: "7.2",++ price: "0.72",++ channel: "yun"++ },++ {++ model: "seedance-1.0-pro",++ type: "视频生成",++ duration: "5秒",++ resolution: "720p",++ notes: "10秒价格翻倍就行",++ credits: "16.4",++ price: "1.64",++ channel: "yun"++ },++ {++ model: "seedance-1.0-pro",++ type: "视频生成",++ duration: "5秒",++ resolution: "1080p",++ notes: "",++ credits: "36.7",++ price: "3.67",++ channel: "yun"++ },++ {++ model: "seedance-1.0-lite",++ type: "视频生成",++ duration: "5秒",++ resolution: "480p",++ notes: "支持首尾帧",++ credits: "5",++ price: "0.5",++ channel: "yun"++ },++ {++ model: "seedance-1.0-lite",++ type: "视频生成",++ duration: "5秒",++ resolution: "720p",++ notes: "支持10秒",++ credits: "11",++ price: "1.1",++ channel: "yun"++ },++ {++ model: "seedance-1.0-lite",++ type: "视频生成",++ duration: "5秒",++ resolution: "1080p",++ notes: "10秒价格翻倍",++ credits: "25",++ price: "2.5",++ channel: "yun"++ }++ ];++++ // 尝试从 i18n 获取数据,如果失败则使用备选数据++ const getPricingData = () => {++ try {++ const rows = t('faq.creditDeduction.pricingTable.rows' as any);++ if (Array.isArray(rows) && rows.length > 0) {++ return rows;++ }++ } catch (error) {++ console.error('Error loading pricing data from i18n:', error);++ }++ return fallbackPricingData;++ };++++ const plans = [++ {++ name: t('plans.free.name'),++ price: 0,++ originalPrice: 0,++ credits: t('plans.free.credits'),++ videos: t('plans.free.videos'),++ images: t('plans.free.images'),++ features: [++ { text: t('features.textModeration'), included: false },++ { text: t('features.imageModeration'), included: false },++ { text: t('features.videoModeration'), included: false },++ { text: t('features.multiModel'), included: true },++ { text: t('features.textToVideo'), included: true },++ { text: t('features.imageToVideo'), included: true },++ { text: t('features.videoToVideo'), included: true },++ { text: t('features.consistentCharacter'), included: true },++ { text: t('features.aiAnimation'), included: true },++ { text: t('features.aiImage'), included: true },++ { text: t('features.voiceClone'), included: true },++ { text: t('features.voiceSynthesis'), included: true },++ { text: t('features.fasterSpeed'), included: false },++ { text: t('features.withWatermark'), included: true },++ { text: t('features.storage500M'), included: true },++ ],++ buttonText: t('plans.free.button'),++ buttonType: 'default' as const,++ popular: false,++ },++ {++ name: t('plans.plus.name'),++ price: billingCycle === 'yearly' ? 12 : 19,++ originalPrice: billingCycle === 'yearly' ? 20 : 15,++ credits: t('plans.plus.credits'),++ videos: t('plans.plus.videos'),++ images: t('plans.plus.images'),++ features: [++ { text: t('features.textModeration'), included: true },++ { text: t('features.imageModeration'), included: true },++ { text: t('features.videoModeration'), included: true },++ { text: t('features.multiModel'), included: true },++ { text: t('features.textToVideo'), included: true },++ { text: t('features.imageToVideo'), included: true },++ { text: t('features.videoToVideo'), included: true },++ { text: t('features.consistentCharacter'), included: true },++ { text: t('features.aiAnimation'), included: true },++ { text: t('features.aiImage'), included: true },++ { text: t('features.voiceClone'), included: true },++ { text: t('features.voiceSynthesis'), included: true },++ { text: t('features.fasterSpeed'), included: true },++ { text: t('features.noWatermark'), included: true },++ { text: t('features.storage5G'), included: true },++ ],++ buttonText: t('plans.plus.button'),++ buttonType: 'primary' as const,++ popular: true,++ },++ ];++++ const faqItems = [++ {++ question: t('faq.paymentMethods.question'),++ answer: t('faq.paymentMethods.answer')++ },++ {++ question: t('faq.creditDeduction.question'),++ answer: t('faq.creditDeduction.answer')++ },++ {++ question: t('faq.creditExpiry.question'),++ answer: t('faq.creditExpiry.answer')++ },++ {++ question: t('faq.moreCredits.question'),++ answer: t('faq.moreCredits.answer')++ },++ {++ question: t('faq.checkCredits.question'),++ answer: t('faq.checkCredits.answer')++ },++ {++ question: t('faq.hiddenFees.question'),++ answer: t('faq.hiddenFees.answer')++ },++ {++ question: t('faq.refundPolicy.question'),++ answer: t('faq.refundPolicy.answer')++ }++ ];++++ return (++ <div className={pricingStyles.pricingPage}>++ <div className={pricingStyles.container}>++++ {/* Header */}++ <div className={pricingStyles.header}>++ <h1 className={pricingStyles.title}>{t('title')}</h1>++ <p className={pricingStyles.subtitle}>{t('subtitle')}</p>++ </div>++++ {/* Billing Toggle */}++ <div className={pricingStyles.billingToggle}>++ <div className={pricingStyles.toggleContainer}>++ <button++ className={`${pricingStyles.toggleButton} ${billingCycle === 'monthly' ? pricingStyles.active : ''}`}++ onClick={() => setBillingCycle('monthly')}++ >++ {t('monthly')}++ {billingCycle === 'monthly' && (++ <span className={pricingStyles.saveBadge}>{t('save25')}</span>++ )}++ </button>++ <button++ className={`${pricingStyles.toggleButton} ${billingCycle === 'yearly' ? pricingStyles.active : ''}`}++ onClick={() => setBillingCycle('yearly')}++ >++ {t('yearly')}++ {billingCycle === 'yearly' && (++ <span className={pricingStyles.saveBadge}>{t('save50')}</span>++ )}++ </button>++ </div>++ </div>++++ {/* Pricing Cards */}++ <div className={pricingStyles.pricingCards}>++ {plans.map((plan, index) => (++ <div++ key={plan.name}++ className={`${pricingStyles.pricingCard} ${plan.popular ? pricingStyles.popular : ''}`}++ >++ {plan.popular && (++ <div className={pricingStyles.popularBadge}>++ {billingCycle === 'yearly' ? t('flashSale50') : t('mostPopular')}++ </div>++ )}++++ <div className={pricingStyles.cardHeader}>++ <h2 className={pricingStyles.planName}>{plan.name}</h2>++ <div className={pricingStyles.priceContainer}>++ {plan.originalPrice > plan.price && (++ <span className={pricingStyles.originalPrice}>++ ${plan.originalPrice} USD++ </span>++ )}++ <div className={pricingStyles.price}>++ <span className={pricingStyles.currency}>$</span>++ <span className={pricingStyles.amount}>{plan.price}</span>++ <span className={pricingStyles.period}>/{t('month')}</span>++ </div>++ {billingCycle === 'yearly' && plan.price > 0 && (++ <div className={pricingStyles.monthlyPrice}>++ ${(plan.price * 12).toFixed(0)} USD/{t('yearly')}++ </div>++ )}++ </div>++ </div>++++ <div className={pricingStyles.planFeatures}>++ <div className={pricingStyles.mainFeatures}>++ <div className={pricingStyles.featureItem}>++ <span className={pricingStyles.featureLabel}>{t('credits')}</span>++ <span className={pricingStyles.featureValue}>{plan.credits}</span>++ </div>++ <div className={pricingStyles.featureItem}>++ <span className={pricingStyles.featureLabel}>{t('videos')}</span>++ <span className={pricingStyles.featureValue}>{plan.videos}</span>++ </div>++ <div className={pricingStyles.featureItem}>++ <span className={pricingStyles.featureLabel}>{t('images')}</span>++ <span className={pricingStyles.featureValue}>{plan.images}</span>++ </div>++ </div>++++ <div className={pricingStyles.featuresList}>++ {plan.features.map((feature, featureIndex) => (++ <div key={featureIndex} className={pricingStyles.featureRow}>++ {feature.included ? (++ <CheckOutlined className={pricingStyles.checkIcon} />++ ) : (++ <CloseOutlined className={pricingStyles.closeIcon} />++ )}++ <span className={`${pricingStyles.featureText} ${!feature.included ? pricingStyles.disabled : ''}`}>++ {feature.text}++ </span>++ </div>++ ))}++ </div>++ </div>++++ <Button++ type={plan.buttonType}++ size="large"++ className={pricingStyles.ctaButton}++ onClick={() => {++ if (plan.name === t('plans.free.name')) {++ // 跳转到注册页面++ window.location.href = '/vip';++ } else {++ // 跳转到支付页面++ window.location.href = '/vip';++ }++ }}++ >++ {plan.buttonText}++ </Button>++ </div>++ ))}++ </div>++++ {/* FAQ Section */}++ <div className={pricingStyles.faqSection}>++ <h2 className={pricingStyles.faqTitle}>{t('faq.title')}</h2>++ <Collapse++ className={pricingStyles.faqCollapse}++ items={faqItems.map((faq, index) => ({++ key: index,++ label: faq.question,++ children: (++ <div>++ <p>{faq.answer}</p>++ {faq.question === t('faq.creditDeduction.question') && (++ <div className={pricingStyles.pricingTableContainer}>++ <h4>{t('faq.creditDeduction.pricingTable.title' as any)}</h4>++ <div className={pricingStyles.pricingTableWrapper}>++ <table className={pricingStyles.pricingTable}>++ <thead>++ <tr>++ <th>{t('faq.creditDeduction.pricingTable.headers.model' as any)}</th>++ <th>{t('faq.creditDeduction.pricingTable.headers.type' as any)}</th>++ <th>{t('faq.creditDeduction.pricingTable.headers.duration' as any)}</th>++ <th>{t('faq.creditDeduction.pricingTable.headers.resolution' as any)}</th>++ <th>{t('faq.creditDeduction.pricingTable.headers.credits' as any)}</th>++ <th>{t('faq.creditDeduction.pricingTable.headers.price' as any)}</th>++ </tr>++ </thead>++ <tbody>++ {getPricingData().map((row: any, rowIndex: number) => (++ <tr key={rowIndex}>++ <td>{row.model}</td>++ <td>{row.type}</td>++ <td>{row.duration}</td>++ <td>{row.resolution}</td>++ <td>{row.credits}</td>++ <td>{row.price}</td>++ </tr>++ ))}++ </tbody>++ </table>++ </div>++ </div>++ )}++ </div>++ )++ }))}++ />++ </div>++ </div>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/profile/page.tsxindex 00000000,00000000..c535049bnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/profile/page.tsx@@@ -1,0 -1,0 +1,887 @@@++"use client";++++import { useEffect, useState, useMemo } from "react";++import { Card, Descriptions, Button, message, Modal, Form, Input } from "antd";++import { CrownOutlined, TrophyOutlined, GiftOutlined, StarOutlined, RocketOutlined, ThunderboltOutlined, HistoryOutlined, DollarOutlined, UserOutlined, GiftFilled, EditOutlined, CopyOutlined } from "@ant-design/icons";++import { useRouter, useSearchParams } from "next/navigation";++import { WalletOutlined } from "@ant-design/icons";++import Image from "next/image";++import { useUserStore } from "@/store/user";++import { getUserInfoApi, updateUserInfoApi, getPointsRecordsApi } from "@/api/apiReq";++import { cancelAccountApi } from "@/api/signIn";++import { createPaymentOrderApi, PaymentType as VipPaymentType } from "@/api/vip";++import { getOrderDetailApi } from "@/api/payment";++import type { Order } from "@/api/types/payment";++import { OrderStatus } from "@/api/types/payment";++import styles from "./profile.module.css";++import { useTransClient } from "@/app/i18n/client";++import PointsRechargeModal from "@/components/modals/PointsRechargeModal";++import VipContentModal from "@/components/modals/VipContentModal";++import PointsDetailModal from "@/components/modals/PointsDetailModal";++++import plusvip from "@/assets/images/plusvip.png";++import logoHesd from "@/assets/images/logo.png";++++++export default function ProfilePage() {++ const router = useRouter();++ const searchParams = useSearchParams();++ const { userInfo, setUserInfo, clearLoginStatus, token, lang } = useUserStore();++ const { t } = useTransClient('profile');++ const [loading, setLoading] = useState(true);++ const [isModalOpen, setIsModalOpen] = useState(false);++ const [form] = Form.useForm();++++ // 免费会员提示弹框状态++ const [freeTrialModalVisible, setFreeTrialModalVisible] = useState(false);++ const [hasShownFreeTrial, setHasShownFreeTrial] = useState(false);++++ // 注销账户相关状态++ const [cancelModalVisible, setCancelModalVisible] = useState(false);++ const [cancelForm] = Form.useForm();++ const [cancelCode, setCancelCode] = useState('');++ const [cancelLoading, setCancelLoading] = useState(false);++ const [codeCountdown, setCodeCountdown] = useState(0);++++ // 检查是否已经显示过免费会员提示++ useEffect(() => {++ const hasShown = localStorage.getItem('freeTrialShown');++ if (hasShown) {++ setHasShownFreeTrial(true);++ }++ }, []);++++ // removed URL-driven auto-open; now fully controlled by state++++ // 订单详情弹窗状态++ const [orderDetailVisible, setOrderDetailVisible] = useState(false);++ const [orderDetailLoading, setOrderDetailLoading] = useState(false);++ const [currentOrderDetail, setCurrentOrderDetail] = useState<Order | null>(null);++++ // 积分记录相关状态++ const [pointsRecords, setPointsRecords] = useState<any[]>([]);++ const [pointsLoading, setPointsLoading] = useState(false);++ const [pointsPagination, setPointsPagination] = useState({++ current: 1,++ pageSize: 10,++ total: 0++ });++++ // 积分充值相关状态++ const [pointsRechargeVisible, setPointsRechargeVisible] = useState(false);++ const [rechargeAmount, setRechargeAmount] = useState(8);++ const [rechargeForm] = Form.useForm();++ const [isDragging, setIsDragging] = useState(false);++ const [paymentOrderId, setPaymentOrderId] = useState<string | null>(null);++ const [showPaymentSuccess, setShowPaymentSuccess] = useState(false);++ const [pointsDetailVisible, setPointsDetailVisible] = useState(false);++ const [vipModalVisible, setVipModalVisible] = useState(false);++++ // 积分记录类型定义++ interface PointsRecord {++ id: string;++ userId: string;++ amount: number;++ balance: number;++ type: string;++ description: string;++ metadata?: any;++ createdAt?: string;++ }++++ // 状态判断辅助函数++ const getVipStatusInfo = (status: string) => {++ switch (status) {++ case 'none':++ return { isVip: false, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ case 'trialing':++ return { isVip: true, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ case 'monthly_once':++ return { isVip: true, isMonthly: true, isYearly: false, isAutoRenew: false, isOnce: true };++ case 'yearly_once':++ return { isVip: true, isMonthly: false, isYearly: true, isAutoRenew: false, isOnce: true };++ case 'active_monthly':++ return { isVip: true, isMonthly: true, isYearly: false, isAutoRenew: true, isOnce: false };++ case 'active_yearly':++ return { isVip: true, isMonthly: false, isYearly: true, isAutoRenew: true, isOnce: false };++ case 'active_nonrenewing':++ return { isVip: true, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ case 'expired':++ return { isVip: false, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ default:++ return { isVip: false, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ }++ };++++ // 获取会员状态和过期时间++ const isVip = useMemo(() => {++ const vipInfo = userInfo?.vipInfo;++ if (!vipInfo) return false;++++ const statusInfo = getVipStatusInfo(vipInfo.status);++ return statusInfo.isVip && vipInfo.expireTime && new Date(vipInfo.expireTime) > new Date();++ }, [userInfo]);++++ const vipExpireTime = userInfo?.vipInfo?.expireTime ? new Date(userInfo.vipInfo.expireTime).toLocaleDateString() : '';++++ // 检查用户是否从未开过会员++ const hasNeverBeenVip = !userInfo?.vipInfo || userInfo.vipInfo.status === 'none' || userInfo.vipInfo.status === 'expired';++++ // 获取会员类型显示文本++ const getVipStatusText = (status: string) => {++ const statusInfo = getVipStatusInfo(status);++ if (statusInfo.isYearly && statusInfo.isAutoRenew) {++ return t('yearlyMember');++ } else if (statusInfo.isYearly && !statusInfo.isAutoRenew) {++ return t('yearlyMember') + ` (${t('memberTypes.oneTime' as any)})`;++ } else if (statusInfo.isMonthly && statusInfo.isAutoRenew) {++ return t('monthlyMember');++ } else if (statusInfo.isMonthly && !statusInfo.isAutoRenew) {++ return t('monthlyMember') + ` (${t('memberTypes.oneTime' as any)})`;++ } else if (statusInfo.isOnce) {++ return statusInfo.isYearly ? t('yearlyMember') + ` (${t('memberTypes.oneTime' as any)})` : t('monthlyMember') + ` (${t('memberTypes.oneTime' as any)})`;++ } else if (status === 'trialing') {++ return t('monthlyMember') + ` (${t('memberTypes.trial' as any)})`;++ } else {++ return t('nonMember');++ }++ };++++ const vipStatusText = getVipStatusText(userInfo?.vipInfo?.status || 'none');++++ // 会员权益数据++ const vipBenefits = [++ { icon: <CrownOutlined />, name: t('vipBenefits.exclusiveBadge') },++ { icon: <TrophyOutlined />, name: t('vipBenefits.advancedFeatures') },++ { icon: <GiftOutlined />, name: t('vipBenefits.memberGift') },++ { icon: <StarOutlined />, name: t('vipBenefits.prioritySupport') },++ { icon: <DollarOutlined />, name: t('vipBenefits.discount') },++ { icon: <HistoryOutlined />, name: t('vipBenefits.unlimitedTime') },++ { icon: <ThunderboltOutlined />, name: t('vipBenefits.fastExperience') },++ { icon: <RocketOutlined />, name: t('vipBenefits.morePrivileges') },++ ];++++ // 获取用户信息++ const fetchUserInfo = async () => {++ try {++ const response: any = await getUserInfoApi();++ if (!response) {++ message.error(t('getUserInfoFailed'));++ return;++ }++++ if (response.code === 0 && response.data) {++ setUserInfo(response.data);++++ // 检查是否需要显示免费会员提示++ const hasVipInfo = response.data.vipInfo;++ const isNeverVip = !hasVipInfo || hasVipInfo.status === 'none' || hasVipInfo.status === 'expired';++ if (isNeverVip && !hasShownFreeTrial) {++ // 延迟显示弹框,确保页面加载完成++ setTimeout(() => {++ setFreeTrialModalVisible(true);++ setHasShownFreeTrial(true);++ }, 2000); // 增加延迟时间,让用户先看到页面内容++ }++ } else {++ message.error(response.message || t('getUserInfoFailed'));++ }++ } catch (error) {++ message.error(t('getUserInfoFailed'));++ } finally {++ setLoading(false);++ }++ };++++++ // 获取积分记录++ const fetchPointsRecords = async (params: { page: number; pageSize: number }) => {++ setPointsLoading(true);++ try {++ const response = await getPointsRecordsApi(params);++ if (response?.code === 0 && response.data) {++ const paginatedData = response.data;++ setPointsRecords(paginatedData.list || []);++ setPointsPagination({++ current: params.page,++ pageSize: params.pageSize,++ total: paginatedData.total || 0++ });++ } else {++ message.error(response?.message || t('messages.getPointsRecordsFailed' as any));++ }++ } catch (error) {++ message.error(t('messages.getPointsRecordsFailed' as any));++ } finally {++ setPointsLoading(false);++ }++ };++++++ // 获取订单详情++ const fetchOrderDetail = async (orderId: string) => {++ setOrderDetailLoading(true);++ try {++ const response: any = await getOrderDetailApi(orderId);++ if (response?.code === 0 && response.data) {++ setCurrentOrderDetail(response.data[0]);++ setOrderDetailVisible(true);++ } else {++ message.error(response?.message || t('getOrderDetailFailed'));++ }++ } catch (error) {++ message.error(t('getOrderDetailFailed'));++ } finally {++ setOrderDetailLoading(false);++ }++ };++++ /**++ * 获取注销验证码++ */++ const handleGetCancelCode = async () => {++ try {++ const response = await cancelAccountApi.getCancelCode();++ console.log('验证码响应:', response);++++ if (response && response.code === 0) {++ setCancelCode(response.data?.code || '');++ message.success(t('messages.verificationCodeSent' as any));++ // 开始倒计时++ setCodeCountdown(60);++ } else {++ message.error(response?.message || t('messages.getVerificationCodeFailed' as any));++ }++ } catch (error) {++ console.error('获取验证码错误:', error);++ message.error(t('messages.getVerificationCodeFailed' as any));++ }++ };++++ /**++ * 处理注销账户++ */++ const handleCancelAccount = async () => {++ try {++ const values = await cancelForm.validateFields();++ setCancelLoading(true);++++ console.log('发送注销请求,验证码:', values.code);++++ const response: any = await cancelAccountApi.cancelAccount({++ code: values.code++ });++++++ if (response && response.code === 0) {++ message.success(t('messages.accountCancelledSuccess' as any));++ setCancelModalVisible(false);++ // 清除登录状态并跳转到登录页++ clearLoginStatus();++ router.push('/login');++ }++ } catch (error) {++++ } finally {++ setCancelLoading(false);++ }++ };++++ /**++ * 打开注销确认弹窗++ */++ const handleOpenCancelModal = () => {++ setCancelModalVisible(true);++ cancelForm.resetFields();++ setCancelCode('');++ setCodeCountdown(0);++ };++++ // 倒计时效果++ useEffect(() => {++ let timer: NodeJS.Timeout;++ if (codeCountdown > 0) {++ timer = setTimeout(() => {++ setCodeCountdown(codeCountdown - 1);++ }, 1000);++ }++ return () => {++ if (timer) {++ clearTimeout(timer);++ }++ };++ }, [codeCountdown]);++++ useEffect(() => {++ if (!token) {++ message.error(t('pleaseLoginFirst'));++ router.push('/login');++ return;++ }++ fetchUserInfo();++ }, [token, router]);++++ // 清理滑块事件监听器++ useEffect(() => {++ return () => {++ document.removeEventListener('mousemove', handleSliderMouseMove);++ document.removeEventListener('mouseup', handleSliderMouseUp);++ };++ }, []);++++ const handleLogout = () => {++ clearLoginStatus();++ message.success(t('logoutSuccess'));++ router.push('/login');++ };++++ const handleUpdateName = async (values: { name: string }) => {++ try {++ const response: any = await updateUserInfoApi(values);++ if (!response) {++ message.error(t('updateFailed'));++ return;++ }++++ if (response.code === 0 && response.data) {++ fetchUserInfo();++ message.success(t('updateSuccess'));++ setIsModalOpen(false);++ } else {++ message.error(response.message || t('updateFailed'));++ }++ } catch (error) {++ message.error(t('updateFailed'));++ }++ };++++ const handleGoToVipPage = () => {++ router.push('/vip');++ };++++ // 处理免费会员弹框++ const handleFreeTrialModalOk = () => {++ setFreeTrialModalVisible(false);++ localStorage.setItem('freeTrialShown', 'true');++ setVipModalVisible(true);++ };++++ const handleFreeTrialModalCancel = () => {++ setFreeTrialModalVisible(false);++ localStorage.setItem('freeTrialShown', 'true');++ };++++ // 积分相关处理函数++ const handleGoToPublish = () => {++ router.push('/accounts');++ // 这里可以添加唤起发布窗口的逻辑++ };++++ const handleGoToVip = () => {++ router.push('/vip');++ };++++ const handleRechargePoints = () => {++ setPointsRechargeVisible(true);++ };++++ const handleRechargeSubmit = async (values: any) => {++ try {++ const response = await createPaymentOrderApi({++ success_url: lang === 'zh-CN' ? "/zh-CN/profile" : "/en/profile",++ mode: 'payment',++ payment: VipPaymentType.POINTS,++ quantity: rechargeAmount, // 购买几份1000积分的资源包++ metadata: {++ userId: userInfo?.id || ''++ }++ });++++ if (response?.code === 0 && response.data && typeof response.data === 'object' && 'url' in response.data) {++ // 保存订单ID++ if ('id' in response.data) {++ setPaymentOrderId((response.data as any).id);++ setShowPaymentSuccess(true);++ }++ // 跳转到支付页面++ window.open((response.data as any).url, '_blank');++ // setPointsRechargeVisible(false);++ message.success(t('pointsPurchase.redirectingToPayment' as any));++ } else {++ message.error(response?.message || t('pointsPurchase.createOrderFailed' as any));++ }++ } catch (error) {++ message.error(t('pointsPurchase.createOrderFailed' as any));++ }++ };++++ const handleRechargeCancel = () => {++ setPointsRechargeVisible(false);++ setPaymentOrderId(null);++ setShowPaymentSuccess(false);++ };++++ // 处理"我已支付"按钮点击++ const handlePaymentSuccess = async () => {++ if (!paymentOrderId) return;++++ try {++ const response = await getOrderDetailApi(paymentOrderId);++ if (response?.code === 0 && response.data) {++ const order = Array.isArray(response.data) ? response.data[0] : response.data;++ // 检查订单状态:1=支付成功,2=等待支付,3=退款成功,4=订单取消++ if (order.status === 1) {++ message.success(t('pointsPurchase.purchaseSuccess' as any));++ setShowPaymentSuccess(false);++ setPaymentOrderId(null);++ setPointsRechargeVisible(false);++ // 刷新用户信息++ fetchUserInfo();++ } else if (order.status === 2) {++ message.warning(t('pointsPurchase.paymentPending' as any));++ } else if (order.status === 3) {++ message.warning(t('pointsPurchase.orderRefunded' as any));++ setShowPaymentSuccess(false);++ setPaymentOrderId(null);++ } else if (order.status === 4) {++ message.warning(t('pointsPurchase.orderCancelled' as any));++ setShowPaymentSuccess(false);++ setPaymentOrderId(null);++ } else {++ message.warning(t('pointsPurchase.orderUnknown' as any));++ }++ } else {++ message.error(t('pointsPurchase.queryFailed' as any));++ }++ } catch (error) {++ message.error(t('pointsPurchase.queryFailed' as any));++ }++ };++++ // 滑块拖动处理++ const handleSliderMouseDown = (e: React.MouseEvent) => {++ setIsDragging(true);++ document.addEventListener('mousemove', handleSliderMouseMove);++ document.addEventListener('mouseup', handleSliderMouseUp);++ };++++ const handleSliderMouseMove = (e: MouseEvent) => {++ if (!isDragging) return;++++ const sliderTrack = document.querySelector(`.${styles.sliderTrack}`) as HTMLElement;++ if (!sliderTrack) return;++++ const rect = sliderTrack.getBoundingClientRect();++ const x = e.clientX - rect.left;++ const percentage = Math.max(0, Math.min(1, x / rect.width));++ const newAmount = Math.round(percentage * 49) + 1; // 1-50,只能选择1000的倍数++ setRechargeAmount(newAmount);++ };++++ const handleSliderMouseUp = () => {++ setIsDragging(false);++ document.removeEventListener('mousemove', handleSliderMouseMove);++ document.removeEventListener('mouseup', handleSliderMouseUp);++ };++++ const handleSliderClick = (e: React.MouseEvent) => {++ const sliderTrack = e.currentTarget as HTMLElement;++ const rect = sliderTrack.getBoundingClientRect();++ const x = e.clientX - rect.left;++ const percentage = Math.max(0, Math.min(1, x / rect.width));++ const newAmount = Math.round(percentage * 49) + 1; // 1-50++ setRechargeAmount(newAmount);++ };++++++ // 个人信息内容++ const renderProfileContent = () => (++ <div style={{}}>++ {/* 顶部头部卡片 */}++++ {/* VIP 提示(已是VIP时显示) */}++ {isVip && (++ <div style={{++ display: 'flex',++ alignItems: 'center',++ justifyContent: 'flex-start',++ gap: 8,++ color: '#a66ae4',++ fontWeight: 700,++ }}>++ <Image src={plusvip} alt="VIP" className={styles.vipBadgeTop} />++ <span style={{ fontSize: 16 }}>{t('vipHonorText' as any)}</span>++ </div>++ )}++++ <div className={styles.headerCard}>++++ <div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: 8 }}>++ <div className={styles.avatar}>++ <Image src={logoHesd} alt="Logo" className={styles.logoHesd} />++ </div>++ <div className={styles.nameBlock}>++ <div className={styles.nameRow}>++ <span>{userInfo?.name || '-'}</span>++ <EditOutlined style={{ cursor: 'pointer', color: '#a66ae4' }} onClick={() => setIsModalOpen(true)} />++ </div>++ <div className={styles.subRow}>++ <span>{userInfo?.mail || '-'}</span>++ </div>++++ </div>++ </div>++++ <div className={styles.scoreRow}>++++++++ </div>++ </div>++++ {/* 深色统计卡片 */}++ <div className={styles.statsCard}>++ <div className={styles.statsHeader}>++ <Image src={plusvip} alt="VIP" className={styles.vipBadge} />++ <span className={styles.statsTitle}>{t('stats.totalEarned' as any)}</span>++ <span className={styles.statsAmount}>{((userInfo as any)?.totalIncome as number / 100 || 0).toFixed(2)}</span>++ <span className={styles.statsCurrency}>{t('stats.currencyYuan' as any)}</span>++ </div>++ <div className={styles.statsGrid}>++ <div className={styles.statsItem} onClick={() => router.push('/income')} >++++ <div className={styles.statsLabel}>{t('stats.balance' as any)} <span className={styles.statsValue}> {( userInfo?.income as number / 100 || 0).toFixed(2)} </span> CNY</div>++ </div>++ <div className={styles.statsItem} style={{ cursor: 'pointer' }} onClick={() => setPointsDetailVisible(true)}>++++ <div className={styles.statsLabel}>{t('stats.points' as any)} <span className={styles.statsValue}>{(Math.floor((userInfo?.score as number) || 0)).toFixed(1)} </span> {t('stats.points' as any)}</div>++ </div>++++ </div>++ </div>++++++ <div className={styles.editCard}>++ <div style={{display: 'flex', flexDirection: 'column', alignItems: 'flex-start'}}>++ <span className={styles.scoreLabel}>{t('username')}</span>++ <div className={styles.fieldContainer}>++ <span className={styles.fieldInput}>{userInfo?.name || '-'}</span>++ <button className={styles.fieldButton} onClick={() => setIsModalOpen(true)}>{t('edit' as any)}</button>++ </div>++ </div>++ <div style={{display: 'flex', flexDirection: 'column', alignItems: 'flex-start'}}>++ <span className={styles.scoreLabel}>{t('inviteCode' as any)}</span>++ <div className={styles.fieldContainer}>++ <span className={styles.fieldInput}>{userInfo?.popularizeCode || '-'}</span>++ <button className={styles.fieldButton} onClick={() => {++ const code = userInfo?.popularizeCode || '';++ if (!code) return;++ navigator.clipboard?.writeText(code).then(() => {++ message.success(t('copySuccess' as any));++ }).catch(() => {++ message.success(t('copySuccess' as any));++ });++ }}>{t('copy' as any)}</button>++ </div>++ </div>++ </div>++++++ {/* 账号状态(仅非正常时显示) */}++ {userInfo?.status !== 1 && (++ <div style={{++ marginTop: 18,++ marginBottom: 18,++ color: '#ef4444',++ fontSize: 14++ }}>++ {t('accountStatus')}: {t('disabled')}++ </div>++ )}++++++++ {/* 底部申请注销按钮 */}++ {/* <div style={{ textAlign: 'center', paddingTop: 24, display:'flex', flexDirection:'column', justifyContent:'center', alignItems:"flex-start" }}>++ <div style={{ display:'flex', flexDirection:'column', justifyContent:'space-between', alignItems:"flex-start", marginBottom: 8 }}>++ <div style={{ fontSize: 16, fontWeight: 800, color: '#54687B' }}>{t('deleteAccount.title' as any)}</div>++ <div>{t('deleteAccount.desc' as any)}</div>++ </div>++ <Button danger onClick={handleOpenCancelModal}>{t('deleteAccount.apply' as any)}</Button>++ </div> */}++ </div>++ );++++++++ if (loading) {++ return null;++ }++++ return (++ <div className={styles.container}>++ <div className={styles.profileContent}>++ {renderProfileContent()}++ </div>++++ <Modal++ title={t('modifyUsername')}++ open={isModalOpen}++ onCancel={() => setIsModalOpen(false)}++ footer={null}++ >++ <Form++ form={form}++ onFinish={handleUpdateName}++ initialValues={{ name: userInfo?.name }}++ layout="vertical"++ >++ <Form.Item++ name="name"++ label={t('username')}++ rules={[++ { required: true, message: t('pleaseEnterUsername') },++ { min: 2, message: t('usernameLengthMin') },++ { max: 20, message: t('usernameLengthMax') }++ ]}++ >++ <Input placeholder={t('pleaseEnterUsername')} />++ </Form.Item>++ <Form.Item>++ <Button type="primary" htmlType="submit" block>++ {t('confirmModify')}++ </Button>++ </Form.Item>++ </Form>++ </Modal>++++ {/* 订单详情弹窗 */}++ <Modal++ title={t('orderDetails')}++ open={orderDetailVisible}++ onCancel={() => setOrderDetailVisible(false)}++ className={styles.orderDetailModal}++ footer={[++ <Button key="close" onClick={() => setOrderDetailVisible(false)}>++ {t('close')}++ </Button>,++ currentOrderDetail?.url && currentOrderDetail?.status === OrderStatus.CREATED && (++ <Button++ key="pay"++ type="primary"++ onClick={() => {++ if (currentOrderDetail?.url) {++ window.open(currentOrderDetail.url, '_blank');++ }++ }}++ >++ {t('goToPayment')}++ </Button>++ )++ ]}++ width={600}++ loading={orderDetailLoading}++ >++ {currentOrderDetail && (++ <Descriptions bordered column={1} size="small">++ <Descriptions.Item label={t('orderId')}>{currentOrderDetail.id}</Descriptions.Item>++ <Descriptions.Item label={t('internalId')}>{currentOrderDetail._id}</Descriptions.Item>++ <Descriptions.Item label={t('packageType')}>++ {currentOrderDetail.metadata?.payment || t('unknown')}++ </Descriptions.Item>++ <Descriptions.Item label={t('subscriptionMode')}>{currentOrderDetail.mode}</Descriptions.Item>++ <Descriptions.Item label={t('amount')}>++ {(() => {++ const displayAmount = (currentOrderDetail.amount / 100).toFixed(2);++ const symbol = currentOrderDetail.currency === 'usd' ? '$' :++ currentOrderDetail.currency === 'cny' ? '¥' :++ currentOrderDetail.currency?.toUpperCase();++ return `${symbol}${displayAmount}`;++ })()}++ </Descriptions.Item>++ <Descriptions.Item label={t('refundedAmount')}>++ {(() => {++ const displayAmount = (currentOrderDetail.amount_refunded / 100).toFixed(2);++ const symbol = currentOrderDetail.currency === 'usd' ? '$' :++ currentOrderDetail.currency === 'cny' ? '¥' :++ currentOrderDetail.currency?.toUpperCase();++ return `${symbol}${displayAmount}`;++ })()}++ </Descriptions.Item>++ <Descriptions.Item label={t('status')}>++ {(() => {++ const statusMap = {++ [OrderStatus.SUCCEEDED]: { color: 'green', text: t('paymentSuccess') },++ [OrderStatus.CREATED]: { color: 'orange', text: t('waitingForPayment') },++ [OrderStatus.REFUNDED]: { color: 'purple', text: t('refundSuccess') },++ [OrderStatus.EXPIRED]: { color: 'red', text: t('orderCancelled') }++ };++ const config = statusMap[currentOrderDetail.status] || { color: 'default', text: `状态${currentOrderDetail.status}` };++ return <span style={{ color: config.color, fontWeight: 'bold' }}>{config.text}</span>;++ })()}++ </Descriptions.Item>++ <Descriptions.Item label={t('createTime')}>++ {new Date(currentOrderDetail.created * 1000).toLocaleString()}++ </Descriptions.Item>++ <Descriptions.Item label={ t('expireTime')}>++ {new Date(currentOrderDetail.expires_at * 1000).toLocaleString()}++ </Descriptions.Item>++ <Descriptions.Item label={t('userId')}>{currentOrderDetail.userId}</Descriptions.Item>++ <Descriptions.Item label={t('messages.priceId' as any)}>{currentOrderDetail.price}</Descriptions.Item>++ {currentOrderDetail.payment_intent && (++ <Descriptions.Item label={t('paymentIntent')}>{currentOrderDetail.payment_intent}</Descriptions.Item>++ )}++ {currentOrderDetail.subscription && (++ <Descriptions.Item label={t('subscriptionId')}>{currentOrderDetail.subscription}</Descriptions.Item>++ )}++ {/* <Descriptions.Item label="成功页面">{currentOrderDetail.success_url}</Descriptions.Item> */}++ {currentOrderDetail.url && (++ <Descriptions.Item label={t('paymentLink')}>++ <Button++ type="link"++ size="small"++ onClick={() => window.open(currentOrderDetail.url, '_blank')}++ >++ {t('openPaymentPage')}++ </Button>++ </Descriptions.Item>++ )}++ </Descriptions>++ )}++ </Modal>++++ {/* 免费会员提示弹框 */}++ <Modal++ title={++ <div style={{ textAlign: 'center', fontSize: '18px', fontWeight: 'bold', color: '#C026D2' }}>++ {t('freeTrial.title')}++ </div>++ }++ open={freeTrialModalVisible}++ onOk={handleFreeTrialModalOk}++ onCancel={handleFreeTrialModalCancel}++ okText={t('freeTrial.claimNow')}++ cancelText={t('freeTrial.later')}++ okButtonProps={{++ style: {++ backgroundColor: '#C026D2',++ borderColor: '#C026D2',++ borderRadius: '8px',++ fontWeight: '600'++ }++ }}++ cancelButtonProps={{++ style: {++ borderRadius: '8px',++ fontWeight: '600'++ }++ }}++ width={500}++ centered++ maskClosable={false}++ closable={false}++ >++ <div style={{ textAlign: 'center', padding: '20px 0' }}>++ <div style={{ fontSize: '48px', marginBottom: '16px' }}>👑</div>++ <h3 style={{ color: '#1f2937', marginBottom: '12px', fontSize: '16px' }}>++ {t('freeTrial.congratulations')}++ </h3>++ <p style={{ color: '#6b7280', lineHeight: '1.6', marginBottom: '20px' }}>++ {t('freeTrial.description')}++ </p>++ <div style={{++ background: '#f8fafc',++ borderRadius: '12px',++ padding: '16px',++ marginBottom: '20px',++ border: '1px solid #e2e8f0'++ }}>++ <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '8px' }}>++ <span style={{ color: '#374151', fontSize: '14px' }}>{t('freeTrial.unlimitedAI')}</span>++ <span style={{ color: '#374151', fontSize: '14px' }}>{t('freeTrial.priorityProcessing')}</span>++ </div>++ <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '8px' }}>++ <span style={{ color: '#374151', fontSize: '14px' }}>{t('freeTrial.advancedModels')}</span>++ <span style={{ color: '#374151', fontSize: '14px' }}>{t('freeTrial.dedicatedSupport')}</span>++ </div>++ <div style={{ display: 'flex', justifyContent: 'space-between' }}>++ <span style={{ color: '#374151', fontSize: '14px' }}>{t('freeTrial.noAds')}</span>++ <span style={{ color: '#374151', fontSize: '14px' }}>{t('freeTrial.morePrivileges')}</span>++ </div>++ </div>++ <p style={{ color: '#C026D2', fontSize: '14px', fontWeight: '600' }}>++ {t('freeTrial.completelyFree')}++ </p>++ </div>++ </Modal>++++ {/* 积分充值弹窗(复用组件) */}++ <PointsRechargeModal open={pointsRechargeVisible} onClose={handleRechargeCancel} />++ <PointsDetailModal open={pointsDetailVisible} onClose={() => setPointsDetailVisible(false)} />++ <VipContentModal open={vipModalVisible} onClose={() => setVipModalVisible(false)} />++++ {/* 注销账户确认弹窗 */}++ <Modal++ title={t('cancelAccount' as any)}++ open={cancelModalVisible}++ onCancel={() => setCancelModalVisible(false)}++ footer={null}++ width={500}++ centered++ >++ <div style={{ paddingTop: '20px' }}>++ <div style={{ marginBottom: '20px', color: '#666', lineHeight: '1.6' }}>++ <p>{t('cancelAccountWarning' as any)}</p>++ <ul style={{ margin: '10px 0', paddingLeft: '20px' }}>++ {(t('cancelAccountDataList' as any) as string).split(',').map((item, index) => (++ <li key={index}>{item}</li>++ ))}++ </ul>++ <p style={{ color: '#ff4d4f', fontWeight: 'bold' }}>{t('cancelAccountCaution' as any)}</p>++ <p style={{ color: '#1890ff', fontSize: '14px' }}>{t('cancelAccountSecurity' as any)}</p>++ </div>++++ <Form++ form={cancelForm}++ layout="vertical"++ onFinish={handleCancelAccount}++ >++ <Form.Item++ label={t('verificationCode' as any)}++ name="code"++ rules={[{ required: true, message: t('pleaseEnterVerificationCode' as any) }]}++ >++ <div style={{ display: 'flex', gap: '8px' }}>++ <Input placeholder={t('pleaseEnterVerificationCode' as any)} />++ <Button++ onClick={handleGetCancelCode}++ disabled={codeCountdown > 0}++ loading={codeCountdown > 0}++ >++ {codeCountdown > 0 ? `${codeCountdown}${t('resendAfter' as any)}` : t('getVerificationCode' as any)}++ </Button>++ </div>++ </Form.Item>++++++ <Form.Item>++ <div style={{ display: 'flex', gap: '12px', justifyContent: 'flex-end' }}>++ <Button onClick={() => setCancelModalVisible(false)}>++ {t('cancel')}++ </Button>++ <Button++ type="primary"++ danger++ htmlType="submit"++ loading={cancelLoading}++ >++ {t('confirmCancel' as any)}++ </Button>++ </div>++ </Form.Item>++ </Form>++ </div>++ </Modal>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/profile/profile.module.cssindex 00000000,00000000..00da8a81new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/profile/profile.module.css@@@ -1,0 -1,0 +1,1269 @@@++.container {++ padding: 24px;++ display: flex;++ justify-content: center;++ min-height: 80vh;++ margin-top: 80px;++}++++.profileContent {++ max-width: 800px;++ width: 100%;++}++++.card {++ margin-bottom: 20px;++ border-radius: 12px;++ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.1);++ border: 1px solid rgba(255, 255, 255, 0.1);++ background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);++ overflow: hidden;++ position: relative;++}++++.card::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ height: 3px;++ background: linear-gradient(135deg, #fce2a9 0%, #ffd700 100%);++}++++.actions {++ display: flex;++ gap: 12px;++}++++/* 个人信息卡片特殊样式 */++.personalInfoCard {++ background: linear-gradient(135deg, #2B2F36 0%, #4E4C4D 100%);++ color: #fff;++ border: 1px solid rgba(255, 255, 255, 0.1);++ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.2);++}++++.personalInfoCard::before {++ background: linear-gradient(135deg, #a66ae4 0%, #8b5cf6 100%);++}++++.personalInfoCard .ant-card-head {++ background: rgba(255, 255, 255, 0.08);++ border-bottom: 1px solid rgba(255, 255, 255, 0.1);++ backdrop-filter: blur(8px);++}++++.personalInfoCard .ant-card-head-title {++ color: #a66ae4;++ font-size: 18px;++ font-weight: 600;++ background: linear-gradient(135deg, #a66ae4, #8b5cf6);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++}++++.personalInfoCard .ant-card-body {++ background: rgba(255, 255, 255, 0.05);++ backdrop-filter: blur(8px);++}++++.personalInfoCard .ant-descriptions-bordered .ant-descriptions-item-label {++ background: rgba(166, 106, 228, 0.1);++ color: #a66ae4;++ font-weight: 600;++ border-color: rgba(255, 255, 255, 0.1);++}++++.personalInfoCard .ant-descriptions-bordered .ant-descriptions-item-content {++ background: rgba(255, 255, 255, 0.08);++ color: rgba(255, 255, 255, 0.9);++ border-color: rgba(255, 255, 255, 0.1);++}++++.personalInfoCard .ant-btn {++ border-radius: 8px;++ font-weight: 600;++ transition: all 0.3s ease;++ position: relative;++ overflow: hidden;++}++++.personalInfoCard .ant-btn-primary {++ background: linear-gradient(135deg, #a66ae4 0%, #8b5cf6 100%);++ border: none;++ box-shadow: 0 2px 8px rgba(166, 106, 228, 0.3);++}++++.personalInfoCard .ant-btn-primary:hover {++ background: linear-gradient(135deg, #8b5cf6 0%, #a66ae4 100%);++ transform: translateY(-2px);++ box-shadow: 0 4px 12px rgba(166, 106, 228, 0.4);++}++++.personalInfoCard .ant-btn-dangerous {++ background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);++ border: none;++ box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);++}++++.personalInfoCard .ant-btn-dangerous:hover {++ background: linear-gradient(135deg, #ff7875 0%, #ffa39e 100%);++ transform: translateY(-2px);++ box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);++}++++/* 会员卡片样式 */++.vipCard {++ background: url('/assets/images/vipcard.png') no-repeat center center;++ background-size: cover;++ border-radius: 12px;++ padding: 20px;++ margin-bottom: 20px;++ color: #fff;++ position: relative;++ overflow: hidden;++ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.2);++ border: 1px solid rgba(255, 255, 255, 0.1);++}++++.vipCard::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: linear-gradient(135deg, #2B2F36 0%, #4E4C4D 100%);++ z-index: 0;++ border-radius: 12px;++}++++.vipContent {++ position: relative;++ z-index: 1;++ display: flex;++ flex-direction: column;++ height: 100%;++}++++.vipHeader {++ display: flex;++ align-items: center;++ margin-bottom: 12px;++}++++.vipIcon {++ width: 32px;++ height: 32px;++ margin-right: 8px;++ background-color: rgba(252, 226, 169, 0.15);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 18px;++ color: #fce2a9;++}++++.vipTitle {++ font-size: 20px;++ font-weight: 600;++ color: #fce2a9;++ background: linear-gradient(135deg, #fce2a9, #ffd700);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++}++++.vipDescription {++ font-size: 13px;++ color: rgba(255, 255, 255, 0.8);++ margin-bottom: 18px;++ line-height: 1.4;++}++++.benefitsGrid {++ display: grid;++ grid-template-columns: repeat(4, 1fr);++ gap: 12px;++ margin-bottom: 20px;++ background: rgba(255, 255, 255, 0.08);++ border-radius: 10px;++ padding: 16px;++ backdrop-filter: blur(8px);++ border: 1px solid rgba(255, 255, 255, 0.1);++}++++.benefitItem {++ text-align: center;++ transition: all 0.3s ease;++}++++.benefitItem:hover {++ transform: translateY(-2px);++}++++.benefitIcon {++ width: 36px;++ height: 36px;++ background-color: rgba(252, 226, 169, 0.15);++ border-radius: 8px;++ margin: 0 auto 8px auto;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 18px;++ color: #fce2a9;++ transition: all 0.3s ease;++}++++.benefitItem:hover .benefitIcon {++ background-color: rgba(252, 226, 169, 0.25);++ transform: scale(1.1);++}++++.benefitName {++ font-size: 11px;++ color: #fce2a9;++ font-weight: 500;++ line-height: 1.3;++}++++.activateButton {++ background: linear-gradient(135deg, #a66ae4 0%, #8b5cf6 100%);++ border: 2px solid rgba(166, 106, 228, 0.3);++ color: #ffffff;++ padding: 14px 24px;++ border-radius: 12px;++ font-size: 15px;++ font-weight: 700;++ cursor: pointer;++ width: 100%;++ transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);++ position: relative;++ overflow: hidden;++ box-shadow: 0 4px 16px rgba(166, 106, 228, 0.3);++ text-transform: uppercase;++ letter-spacing: 0.5px;++}++++.activateButton::before {++ content: '';++ position: absolute;++ top: 0;++ left: -100%;++ width: 100%;++ height: 100%;++ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);++ transition: left 0.6s ease;++}++++.activateButton::after {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);++ opacity: 0;++ transition: opacity 0.3s ease;++}++++.activateButton:hover::before {++ left: 100%;++}++++.activateButton:hover::after {++ opacity: 1;++}++++.activateButton:hover {++ background: linear-gradient(135deg, #8b5cf6 0%, #a66ae4 100%);++ transform: translateY(-3px) scale(1.02);++ box-shadow: 0 8px 25px rgba(166, 106, 228, 0.5);++ border-color: rgba(166, 106, 228, 0.6);++}++++.activateButton:active {++ transform: translateY(-1px) scale(0.98);++ box-shadow: 0 4px 12px rgba(166, 106, 228, 0.4);++}++++.activateButton:focus {++ outline: none;++ box-shadow: 0 0 0 3px rgba(166, 106, 228, 0.3), 0 4px 16px rgba(166, 106, 228, 0.3);++}++++.normalUserCallToAction {++ background-color: #f0f2f5;++ padding: 16px;++ border-radius: 6px;++ text-align: center;++ margin-top: 16px;++}++++.normalUserCallToAction p {++ font-size: 14px;++ color: #555;++ margin-bottom: 12px;++}++++/* 积分卡片样式 */++.pointsCard {++ background: linear-gradient(135deg, #2B2F36 0%, #4E4C4D 100%);++ border-radius: 12px;++ padding: 20px;++ margin-bottom: 20px;++ color: #fff;++ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.2);++ position: relative;++ overflow: hidden;++ border: 1px solid rgba(255, 255, 255, 0.1);++}++++.pointsCard::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);++ animation: shimmer 3s ease-in-out infinite;++}++++@keyframes shimmer {++ 0%, 100% { transform: translateX(-100%); }++ 50% { transform: translateX(100%); }++}++++.pointsContent {++ position: relative;++ z-index: 1;++}++++.pointsHeader {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 12px;++}++++.pointsTitleSection {++ display: flex;++ align-items: center;++ gap: 6px;++}++++.pointsIcon {++ font-size: 20px;++ color: #fce2a9;++ background: rgba(252, 226, 169, 0.1);++ border-radius: 50%;++ width: 32px;++ height: 32px;++ display: flex;++ align-items: center;++ justify-content: center;++}++++.pointsTitle {++ font-size: 18px;++ font-weight: 600;++ color: #fce2a9;++}++++.pointsCount {++ font-size: 28px;++ font-weight: bold;++ color: #fce2a9;++ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);++ background: linear-gradient(135deg, #fce2a9, #ffd700);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++}++++.pointsDescription {++ font-size: 13px;++ color: rgba(255, 255, 255, 0.8);++ margin-bottom: 18px;++ line-height: 1.4;++}++++.pointsMethods {++ background: rgba(255, 255, 255, 0.08);++ border-radius: 10px;++ padding: 16px;++ backdrop-filter: blur(8px);++ border: 1px solid rgba(255, 255, 255, 0.1);++}++++.methodsTitle {++ font-size: 14px;++ font-weight: 600;++ color: #fce2a9;++ margin-bottom: 12px;++ margin-top: 0;++}++++.methodsGrid {++ display: grid;++ grid-template-columns: repeat(3, 1fr);++ gap: 12px;++}++++.methodItem {++ background: rgba(255, 255, 255, 0.1);++ border-radius: 10px;++ padding: 12px;++ text-align: center;++ cursor: pointer;++ transition: all 0.3s ease;++ border: 1px solid rgba(255, 255, 255, 0.15);++ position: relative;++ overflow: hidden;++}++++.methodItem::before {++ content: '';++ position: absolute;++ top: 0;++ left: -100%;++ width: 100%;++ height: 100%;++ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);++ transition: left 0.5s;++}++++.methodItem:hover::before {++ left: 100%;++}++++.methodItem:hover {++ background: rgba(255, 255, 255, 0.15);++ transform: translateY(-1px);++ box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);++ border-color: rgba(252, 226, 169, 0.3);++}++++.methodIcon {++ width: 32px;++ height: 32px;++ background: rgba(252, 226, 169, 0.15);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ margin: 0 auto 8px auto;++ font-size: 16px;++ color: #fce2a9;++ transition: all 0.3s ease;++}++++.methodItem:hover .methodIcon {++ background: rgba(252, 226, 169, 0.25);++ transform: scale(1.1);++}++++.methodContent h5 {++ font-size: 13px;++ font-weight: 600;++ color: #fce2a9;++ margin: 0 0 3px 0;++}++++.methodContent p {++ font-size: 11px;++ color: rgba(255, 255, 255, 0.7);++ margin: 0;++ line-height: 1.3;++}++++/* 订单管理样式 */++.orderContent {++ margin-top: 12px;++}++++.orderContent .ant-table-thead > tr > th {++ background-color: #fafafa;++ color: #262626;++ font-weight: 600;++ font-size: 12px;++ padding: 8px 12px;++}++++.orderContent .ant-table-tbody > tr:hover > td {++ background-color: #f5f5f5;++}++++.orderContent .ant-table-tbody > tr {++ cursor: pointer;++}++++.orderContent .ant-table-tbody > tr > td {++ padding: 8px 12px;++ font-size: 12px;++}++++.orderContent .ant-btn-link {++ padding: 2px 6px;++ height: auto;++ border-radius: 4px;++ font-size: 12px;++}++++.orderContent .ant-btn-link.ant-btn-dangerous {++ color: #ff4d4f;++}++++.orderContent .ant-btn-link.ant-btn-dangerous:hover {++ background-color: #fff2f0;++ border-color: #ffccc7;++}++++.orderContent .ant-tag {++ border-radius: 4px;++ font-size: 11px;++ padding: 1px 6px;++}++++/* 订单详情弹窗样式 */++.orderDetailModal .ant-descriptions-item-label {++ background-color: #fafafa;++ font-weight: 600;++ width: 100px;++ font-size: 12px;++}++++.orderDetailModal .ant-descriptions-item-content {++ background-color: #fff;++ font-size: 12px;++}++++/* 积分记录表格样式 */++.pointsTable .ant-table-thead > tr > th {++ background-color: #fafafa;++ color: #262626;++ font-weight: 600;++ font-size: 12px;++ padding: 8px 12px;++}++++.pointsTable .ant-table-tbody > tr > td {++ padding: 8px 12px;++ font-size: 12px;++}++++.pointsTable .ant-tag {++ border-radius: 4px;++ font-size: 11px;++ padding: 1px 6px;++}++++/* 标签页样式 */++.container .ant-tabs > .ant-tabs-nav .ant-tabs-tab {++ padding: 8px 12px;++ font-size: 14px;++ font-weight: 500;++}++++.container .ant-tabs > .ant-tabs-nav .ant-tabs-tab-active {++ color: #1890ff;++}++++.container .ant-tabs-content-holder {++ padding-top: 12px;++}++++/* 积分记录表格样式 */++.pointsTable .ant-table-thead > tr > th {++ background-color: #fafafa;++ color: #262626;++ font-weight: 600;++ font-size: 12px;++ padding: 8px 12px;++}++++.pointsTable .ant-table-tbody > tr > td {++ padding: 8px 12px;++ font-size: 12px;++}++++.pointsTable .ant-tag {++ border-radius: 4px;++ font-size: 11px;++ padding: 1px 6px;++}++++/* 移动端适配 */++@media (max-width: 768px) {++ .container {++ padding: 12px;++ }++++ .card {++ margin-bottom: 12px;++ }++++ .actions {++ flex-direction: column;++ gap: 6px;++ }++++ .benefitsGrid {++ grid-template-columns: repeat(2, 1fr);++ gap: 8px;++ }++++ .orderContent .ant-table {++ font-size: 11px;++ }++++ .orderContent .ant-table-thead > tr > th,++ .orderContent .ant-table-tbody > tr > td {++ padding: 6px 4px;++ }++++ .container .ant-tabs > .ant-tabs-nav .ant-tabs-tab {++ padding: 6px 8px;++ font-size: 12px;++ }++++ .vipCard,++ .pointsCard {++ padding: 12px;++ }++++ .personalInfoCard .ant-card-head-title {++ font-size: 16px;++ }++++ .personalInfoCard .ant-descriptions-bordered .ant-descriptions-item-label,++ .personalInfoCard .ant-descriptions-bordered .ant-descriptions-item-content {++ font-size: 12px;++ padding: 8px 12px;++ }++++ .personalInfoCard .ant-btn {++ font-size: 12px;++ padding: 4px 12px;++ height: 32px;++ }++++ .vipTitle {++ font-size: 18px;++ }++++ .vipIcon {++ width: 28px;++ height: 28px;++ font-size: 16px;++ }++++ .benefitsGrid {++ padding: 12px;++ gap: 8px;++ }++++ .benefitIcon {++ width: 32px;++ height: 32px;++ font-size: 16px;++ }++++ .benefitName {++ font-size: 10px;++ }++++ .activateButton {++ padding: 12px 20px;++ font-size: 14px;++ border-radius: 10px;++ }++++ .pointsTitle {++ font-size: 16px;++ }++++ .pointsCount {++ font-size: 22px;++ }++++ .pointsIcon {++ width: 28px;++ height: 28px;++ font-size: 16px;++ }++++ .methodsGrid {++ grid-template-columns: 1fr;++ gap: 10px;++ }++++ .methodItem {++ padding: 10px;++ }++++ .methodIcon {++ width: 28px;++ height: 28px;++ font-size: 14px;++ }++++ .methodContent h5 {++ font-size: 12px;++ }++++ .methodContent p {++ font-size: 10px;++ }++++ .paymentSuccessTip {++ padding: 10px;++ margin-bottom: 12px;++ }++++ .paymentSuccessTip p {++ font-size: 12px;++ }++++ .paymentSuccessButton {++ font-size: 12px;++ padding: 6px 12px;++ }++ }++++/* 积分充值弹窗样式 */++.rechargeContent {++ padding: 20px 0;++}++++.currentPoints {++ background: linear-gradient(135deg, #2B2F36 0%, #4E4C4D 100%);++ border-radius: 12px;++ padding: 20px;++ text-align: center;++ margin-bottom: 24px;++ color: #fff;++ border: 1px solid rgba(255, 255, 255, 0.1);++ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.2);++}++++.pointsLabel {++ display: block;++ font-size: 14px;++ color: rgba(255, 255, 255, 0.8);++ margin-bottom: 8px;++}++++.pointsValue {++ display: block;++ font-size: 28px;++ font-weight: bold;++ color: #fce2a9;++ background: linear-gradient(135deg, #fce2a9, #ffd700);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++}++++.rechargeSection {++ margin-bottom: 24px;++}++++.rechargeSection h4 {++ font-size: 18px;++ font-weight: 600;++ margin-bottom: 8px;++ color: #333;++}++++.rechargeDescription {++ font-size: 14px;++ color: #666;++ margin-bottom: 20px;++}++++.sliderContainer {++ margin-bottom: 20px;++}++++.sliderTrack {++ position: relative;++ height: 6px;++ background: #e0e0e0;++ border-radius: 3px;++ margin-bottom: 8px;++}++++.sliderHandle {++ position: absolute;++ top: -7px;++ width: 20px;++ height: 20px;++ background: linear-gradient(135deg, #6a5acd 0%, #a64dd8 100%);++ border-radius: 50%;++ cursor: pointer;++ transition: all 0.3s ease;++ box-shadow: 0 2px 8px rgba(106, 90, 205, 0.3);++ border: 2px solid #fff;++}++++.sliderHandle:hover {++ transform: scale(1.1);++ background: linear-gradient(135deg, #7b68ee 0%, #b76dd9 100%);++}++++.sliderLabels {++ display: flex;++ justify-content: space-between;++ font-size: 12px;++ color: #666;++}++++.amountInput {++ display: flex;++ align-items: center;++ margin-bottom: 16px;++}++++.amountInput span {++ font-size: 14px;++ color: #666;++}++++.totalPrice {++ display: flex;++ justify-content: space-between;++ align-items: center;++ padding: 16px;++ background: #f8f9fa;++ border-radius: 8px;++ font-size: 16px;++ font-weight: 600;++}++++.priceValue {++ color: #6a5acd;++ font-size: 20px;++ font-weight: bold;++}++++.rechargeButton {++ background: linear-gradient(135deg, #6a5acd 0%, #a64dd8 100%);++ border: none;++ height: 48px;++ font-size: 16px;++ font-weight: 600;++ border-radius: 8px;++ transition: all 0.3s ease;++ color: #fff;++}++++ .rechargeButton:hover {++ transform: translateY(-2px);++ box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);++ background: linear-gradient(135deg, #7b68ee 0%, #b76dd9 100%);++ }++++ /* 支付成功提示样式 */++ .paymentSuccessTip {++ background: rgba(82, 196, 26, 0.1);++ border: 1px solid rgba(82, 196, 26, 0.3);++ border-radius: 8px;++ padding: 12px;++ margin-bottom: 16px;++ text-align: center;++ margin-top: 20px;++ }++++ .paymentSuccessTip p {++ color: #52c41a;++ font-size: 13px;++ margin-bottom: 8px;++ font-weight: 500;++ }++++ .paymentSuccessButton {++ background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);++ border: none;++ border-radius: 6px;++ font-weight: 600;++ transition: all 0.3s ease;++ box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);++ }++++ .paymentSuccessButton:hover {++ background: linear-gradient(135deg, #73d13d 0%, #95de64 100%);++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);++ }++++/* 余额卡片样式 */++.incomeCard {++ background: #ffffff;++ border-radius: 12px;++ padding: 20px;++ margin-bottom: 20px;++ color: #2B2F36;++ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.08);++ position: relative;++ overflow: hidden;++ border: 1px solid rgba(252, 226, 169, 0.35);++}++++/* 顶部头部信息卡片 */++.headerCard {++ background-color: #F7F8FA;++ border-radius: 16px;++ padding: 20px 30px;++ display: flex;++ justify-content: center;++ align-items: flex-start;++ gap: 16px;++ margin-top: 18px;++}++++.avatar {++ width: 90px;++ height: 90px;++ border-radius: 50%;++ overflow: hidden;++ background: #e9d5ff;++ display: flex;++ align-items: center;++ justify-content: center;++ color: #a66ae4;++ font-size: 28px;++ border: 2px solid rgba(166,106,228,0.35);++}++++.nameBlock {++ display: flex;++ flex-direction: column;++ justify-content: flex-start;++ align-items: flex-start;++ gap: 4px;++ margin-top: 5px;++ margin-left: 10px;++}++++.nameRow {++ display: flex;++ align-items: center;++ gap: 8px;++ font-size: 18px;++ font-weight: 700;++ color: #111827;++}++++.vipBadge {++ width: 30px;++ height: auto;++ margin-bottom: 10px;++}++++.vipBadgeTop {++ width: 22px;++ height: auto;++}++++.subRow {++ display: flex;++ gap: 12px;++ color: #6b7280;++ font-size: 12px;++ margin-top: 2px;++}++++.scoreRow {++ margin-left: auto;++ display: flex;++ flex-direction: column;++ justify-content: center;++ align-items: flex-end;++}++++.scoreRowThis {++ display: flex;++ flex-direction: column;++ align-items: baseline;++ gap: 8px;++ margin-top: 2px;++}++++.scoreLabel {++ color: #6b7280;++ font-size: 12px;++}++++.scoreValue {++ margin-top: 2px;++ font-weight: 600;++ font-size: 18px;++ background: #F2F3F5;++++}++++/* 深色统计卡片 */++.statsCard {++ border-radius: 14px;++ padding: 18px 0;++ color: #e5e7eb;++ border: 1px solid rgba(255,255,255,0.06);++ overflow: hidden;++ margin-top: 20px;++}++++.statsHeader {++ display: flex;++ align-items: center;++ gap: 10px;++}++++.statsTitle {++ color: #4B6775;++ font-size: 14px;++}++++.statsAmount {++ font-size: 28px;++ font-weight: 800;++ color: #54687B;++ margin-bottom: 10px;++}++++.statsCurrency {++ margin-left: 6px;++ color: #4B6775;++}++++.statsGrid {++ display: grid;++ grid-template-columns: repeat(3, 1fr);++ text-align: center;++ padding-top: 12px;++ padding-bottom: 8px;++}++++.logoHesd {++ width: 68px;++ height: 68px;++}++++.statsItem {++ padding: 16px 8px 18px 8px;++}++++.statsItem:hover{++ cursor: pointer;++}++++.statsValue {++ font-size: 22px;++ font-weight: 800;++ color: #a66ae4;++}++++.statsLabel {++ margin-top: 4px;++ color: #95887D;++ font-size: 12px;++ text-align: left;++}++++.incomeCard::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ height: 3px;++ background: linear-gradient(135deg, #a66ae4 0%, #8b5cf6 100%);++}++++.incomeContent {++ position: relative;++ z-index: 1;++}++++.incomeHeader {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 12px;++}++++.incomeTitleSection {++ display: flex;++ align-items: center;++ gap: 6px;++}++++.incomeIcon {++ font-size: 20px;++ color: #a66ae4;++ background: rgba(166, 106, 228, 0.18);++ border-radius: 50%;++ width: 36px;++ height: 36px;++ display: flex;++ align-items: center;++ justify-content: center;++}++++.incomeTitle {++ font-size: 18px;++ font-weight: 600;++ color: #2B2F36;++}++++.incomeCount {++ font-size: 28px;++ font-weight: 800;++ color: #a66ae4;++ background: linear-gradient(135deg, #a66ae4, #8b5cf6);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++}++++.incomeDescription {++ font-size: 13px;++ color: #7c7c7c;++ margin-bottom: 12px;++ line-height: 1.5;++}++++.incomeActions {++ display: flex;++ justify-content: center;++}++++.incomeButton {++ background: linear-gradient(135deg, #a66ae4 0%, #8b5cf6 100%);++ border: 2px solid rgba(166, 106, 228, 0.4);++ color: #ffffff;++ padding: 12px 20px;++ border-radius: 8px;++ font-size: 14px;++ font-weight: 600;++ cursor: pointer;++ transition: all 0.3s ease;++ position: relative;++ overflow: hidden;++ box-shadow: 0 2px 8px rgba(166, 106, 228, 0.35);++ display: flex;++ align-items: center;++ gap: 8px;++}++++.buttonIcon {++ display: flex;++ align-items: center;++ justify-content: center;++ transition: transform 0.3s ease;++}++++.incomeButton::before {++ content: '';++ position: absolute;++ top: 0;++ left: -100%;++ width: 100%;++ height: 100%;++ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);++ transition: left 0.6s ease;++}++++.incomeButton:hover::before {++ left: 100%;++}++++.incomeButton:hover {++ background: linear-gradient(135deg, #8b5cf6 0%, #a66ae4 100%);++ transform: translateY(-2px);++ box-shadow: 0 4px 12px rgba(166, 106, 228, 0.5);++ border-color: rgba(166, 106, 228, 0.6);++}++++.incomeButton:hover .buttonIcon {++ transform: translateX(2px);++}++++.incomeButton:active {++ transform: translateY(-1px);++ box-shadow: 0 2px 6px rgba(166, 106, 228, 0.3);++}++++.incomeButton:focus {++ outline: none;++ box-shadow: 0 0 0 3px rgba(166, 106, 228, 0.35), 0 2px 8px rgba(166, 106, 228, 0.35);++}++++/* Edit Card 样式 */++.editCard {++ background: white;++ border-radius: 12px;++ padding: 24px 0;++}++++.editCard > div {++ display: flex;++ flex-direction: row;++ align-items: center;++ justify-content: space-between;++ margin-bottom: 35px;++}++++.editCard > div:last-child {++ margin-bottom: 0;++}++++.editCard .scoreLabel {++ font-weight: 600;++ font-size: 16px;++ color: #374151;++ min-width: 60px;++}++++.editCard .fieldContainer {++ display: flex;++ align-items: center;++ gap: 12px;++ flex: 1;++ margin-top: 10px;++ width: 100%;++}++++.editCard .fieldInput {++ flex: 1;++ background-color: #F2F3F5;++ padding: 15px 12px;++ border-radius: 8px;++ border: none;++ color: #374151;++ font-size: 14px;++ min-width: 200px;++}++++.editCard .fieldButton {++ color: #424A57;++ cursor: pointer;++ font-size: 14px;++ font-weight: 600;++ padding: 15px 16px;++ background-color: #F2F3F5;++ border-radius: 8px;++ border: none;++ transition: all 0.2s ease;++}++++.editCard .fieldButton:hover {++ background-color: #e2e8f0;++ color: #8b5cf6;++}diff --cc project/aitoearn-web/src/app/[lng]/register/page.tsxindex 00000000,00000000..a46d98a4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/register/page.tsx@@@ -1,0 -1,0 +1,69 @@@++"use client";++++import { useState } from "react";++import Link from "next/link";++import styles from "./register.module.css";++++export default function RegisterPage() {++ const [email, setEmail] = useState("");++ const [password, setPassword] = useState("");++ const [confirmPassword, setConfirmPassword] = useState("");++++ const handleSubmit = (e: React.FormEvent) => {++ e.preventDefault();++ if (password !== confirmPassword) {++ alert("两次输入的密码不一致");++ return;++ }++ // TODO: 实现注册逻辑++ console.log("注册:", { email, password });++ };++++ return (++ <div className={styles.container}>++ <div className={styles.box}>++ <h1 className={styles.title}>注册账号</h1>++ <form onSubmit={handleSubmit} className={styles.form}>++ <div className={styles.inputGroup}>++ <input++ type="email"++ placeholder="邮箱"++ value={email}++ onChange={(e) => setEmail(e.target.value)}++ className={styles.input}++ required++ />++ </div>++ <div className={styles.inputGroup}>++ <input++ type="password"++ placeholder="密码"++ value={password}++ onChange={(e) => setPassword(e.target.value)}++ className={styles.input}++ required++ />++ </div>++ <div className={styles.inputGroup}>++ <input++ type="password"++ placeholder="确认密码"++ value={confirmPassword}++ onChange={(e) => setConfirmPassword(e.target.value)}++ className={styles.input}++ required++ />++ </div>++ <button type="submit" className={styles.submitButton}>++ 注册++ </button>++ </form>++ <div className={styles.links}>++ <Link href="/login" className={styles.link}>++ 已有账号?去登录++ </Link>++ </div>++ </div>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/register/register.module.cssindex 00000000,00000000..4ee53b4fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/register/register.module.css@@@ -1,0 -1,0 +1,102 @@@++.container {++ min-height: 100vh;++ display: flex;++ justify-content: center;++ align-items: center;++ background-color: #f5f5f5;++ padding: 20px;++}++++.box {++ background: white;++ padding: 2rem;++ border-radius: 8px;++ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);++ width: 100%;++ max-width: 400px;++}++++.title {++ text-align: center;++ color: #333;++ margin-bottom: 2rem;++ font-size: 1.8rem;++}++++.form {++ display: flex;++ flex-direction: column;++ gap: 1rem;++}++++.inputGroup {++ display: flex;++ flex-direction: column;++ gap: 0.5rem;++}++++.input {++ padding: 0.8rem;++ border: 1px solid #ddd;++ border-radius: 4px;++ font-size: 1rem;++ transition: border-color 0.3s;++}++++.input:focus {++ outline: none;++ border-color: #0070f3;++}++++.submitButton {++ background-color: #0070f3;++ color: white;++ padding: 0.8rem;++ border: none;++ border-radius: 4px;++ font-size: 1rem;++ cursor: pointer;++ transition: background-color 0.3s;++ margin-top: 1rem;++}++++.submitButton:hover {++ background-color: #0051a2;++}++++.links {++ display: flex;++ justify-content: center;++ margin-top: 1.5rem;++ font-size: 0.9rem;++}++++.link {++ color: #0070f3;++ text-decoration: none;++ transition: color 0.3s;++}++++.link:hover {++ color: #0051a2;++ text-decoration: underline;++}++++/* 移动端适配 */++@media (max-width: 480px) {++ .box {++ padding: 1.5rem;++ }++++ .title {++ font-size: 1.5rem;++ }++++ .input {++ padding: 0.7rem;++ }++++ .submitButton {++ padding: 0.7rem;++ }++}diff --cc project/aitoearn-web/src/app/[lng]/styles/difyHome.module.scssindex 00000000,00000000..92c5d363new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/styles/difyHome.module.scss@@@ -1,0 -1,0 +1,2594 @@@++.difyHome {++ font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;++ color: #1a1a1a;++ line-height: 1.6;++ overflow-x: hidden;++ position: relative;++ z-index: 2;++}++++.releaseBanner {++ background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);++ color: white;++ padding: 8px 0;++ text-align: center;++ font-size: 14px;++ cursor: pointer;++ transition: all 0.3s ease;++++ &:hover {++ background: linear-gradient(90deg, #4338ca 0%, #6d28d9 100%);++ }++}++++.bannerContent {++ display: flex;++ align-items: center;++ justify-content: center;++ gap: 8px;++}++++.releaseTag {++ background: rgba(255, 255, 255, 0.2);++ padding: 2px 8px;++ border-radius: 12px;++ font-size: 12px;++ font-weight: 600;++}++++.releaseText {++ font-weight: 500;++}++++.arrowIcon {++ opacity: 0.8;++ transition: transform 0.2s ease;++}++++.releaseBanner:hover .arrowIcon {++ transform: translateX(2px);++}++++.header {++ padding: 15px 0;++ background: rgba(255, 255, 255, 0.95);++ backdrop-filter: blur(10px);++ position: sticky;++ top: 0;++ z-index: 100;++ border-bottom: 1px solid rgba(0, 0, 0, 0.05);++++ @media (max-width: 768px) {++ padding: 10px 0 !important;++ }++}++++.headerContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 24px;++ display: flex;++ align-items: center;++ justify-content: space-between;++}++++.headerRight {++ display: flex;++ align-items: center;++ gap: 10px;++++ @media (max-width: 768px) {++ gap: 8px;++ }++}++++.logo {++ display: flex;++ flex-direction: row;++ align-items: center;++ justify-content: center;++ font-size: 24px;++ font-weight: 700;++ color: #4f46e5;++ @media (max-width: 768px) {++ font-size: 18px;++ img {++ width: 40px;++ object-fit: contain;++ }++ }++}++++.logoText {++ margin-left: 15px;++++ @media (max-width: 768px) {++ display: none;++ }++}++++.nav {++ display: flex;++ gap: 32px;++ align-items: center;++}++++.navLink {++ color: #374151;++ text-decoration: none;++ font-weight: 500;++ font-size: 16px;++ transition: color 0.2s ease;++ background: none;++ border: none;++ cursor: pointer;++ font-family: inherit;++ padding: 0;++++ &:hover {++ color: #4f46e5;++ }++++ &.active {++ color: #4f46e5;++ font-weight: 600;++ position: relative;++++ &::after {++ content: '';++ position: absolute;++ bottom: -4px;++ left: 0;++ right: 0;++ height: 2px;++ background: #4f46e5;++ border-radius: 1px;++ }++ }++}++++.getStartedBtn {++ background: #4f46e5;++ color: white;++ border: none;++ border-radius: 8px;++ padding: 8px 24px;++ margin-left: 10px;++ font-weight: 600;++ font-size: 16px;++ cursor: pointer;++ transition: all 0.2s ease;++++ &:hover {++ background: #4338ca;++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);++ }++++ @media (max-width: 768px) {++ display: none;++ }++}++++// 移动端菜单按钮++.mobileMenuButton {++ display: none;++ background: none;++ border: none;++ color: #374151;++ font-size: 20px;++ cursor: pointer;++ padding: 8px;++ border-radius: 4px;++ transition: all 0.2s ease;++++ &:hover {++ background: #f3f4f6;++ color: #4f46e5;++ }++++ @media (max-width: 768px) {++ display: flex;++ align-items: center;++ justify-content: center;++ }++}++++// 移动端菜单遮罩层++.mobileMenuOverlay {++ position: fixed;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: rgba(0, 0, 0, 0.5);++ z-index: 999;++ animation: fadeIn 0.3s ease-out;++}++++// 移动端侧边菜单++.mobileMenu {++ position: fixed;++ top: 0;++ right: -100%;++ width: 300px;++ height: 100vh;++ background: white;++ box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);++ z-index: 1000;++ transition: right 0.3s ease-out;++ display: flex;++ flex-direction: column;++++ &.mobileMenuOpen {++ right: 0;++ }++++ @media (max-width: 480px) {++ width: 280px;++ }++}++++// 移动端菜单头部++.mobileMenuHeader {++ display: flex;++ align-items: center;++ padding: 20px;++ border-bottom: 1px solid #e5e7eb;++ gap: 12px;++}++++.mobileMenuTitle {++ font-size: 18px;++ font-weight: 700;++ color: #4f46e5;++ flex: 1;++}++++.mobileMenuClose {++ background: none;++ border: none;++ color: #6b7280;++ font-size: 18px;++ cursor: pointer;++ padding: 4px;++ border-radius: 4px;++ transition: all 0.2s ease;++++ &:hover {++ background: #f3f4f6;++ color: #374151;++ }++}++++// 移动端菜单导航++.mobileMenuNav {++ flex: 1;++ padding: 20px 0;++ overflow-y: auto;++}++++.mobileNavLink {++ display: block;++ padding: 16px 20px;++ color: #374151;++ text-decoration: none;++ font-weight: 500;++ font-size: 16px;++ transition: all 0.2s ease;++ border-left: 3px solid transparent;++++ &:hover {++ background: #f8fafc;++ color: #4f46e5;++ border-left-color: #4f46e5;++ }++++ &.active {++ background: #f0f4ff;++ color: #4f46e5;++ border-left-color: #4f46e5;++ font-weight: 600;++ }++}++++// 移动端菜单底部++.mobileMenuFooter {++ padding: 20px;++ border-top: 1px solid #e5e7eb;++}++++.mobileLanguageButton {++ width: 100%;++ height: 40px;++ display: flex;++ align-items: center;++ justify-content: center;++ gap: 8px;++ font-weight: 500;++}++++// 动画效果++@keyframes fadeIn {++ from {++ opacity: 0;++ }++ to {++ opacity: 1;++ }++}++++.hero {++ padding: 80px 0 120px;++ background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);++ text-align: center;++ min-height: 600px; // 确保整个hero区域有稳定的最小高度++}++++.heroContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 24px;++ position: relative;++}++++.githubStars {++ display: inline-flex;++ align-items: center;++ gap: 8px;++ background: white;++ padding: 8px 16px;++ border-radius: 20px;++ margin-bottom: 32px;++ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);++ font-size: 14px;++ color: #6b7280;++}++++.starCount {++ color: #1f2937;++ font-weight: 600;++}++++.githubText {++ color: #1f2937;++ font-weight: 600;++}++++.heroTitle {++ font-size: 72px;++ font-weight: 800;++ line-height: 1.1;++ margin-bottom: 24px;++ color: #1f2937;++ letter-spacing: -2px;++ min-height: 223px; // 固定高度,容纳两行文本++ display: flex;++ flex-direction: column;++ justify-content: center;++ align-items: center;++ text-align: center;++ overflow: hidden; // 防止内容溢出++++ // 响应式高度调整++ @media (max-width: 768px) {++ font-size: 48px;++ height: 140px;++ }++++ @media (max-width: 480px) {++ font-size: 36px;++ height: 110px;++ }++}++++.cursor {++ display: inline-block;++ font-weight: 300;++ color: #4f46e5;++ margin-left: 3px;++ font-size: 0.9em;++ line-height: 1;++ transition: opacity 0.15s ease-in-out;++ animation: cursorBlink 1s infinite;++}++++.cursorVisible {++ opacity: 1;++}++++.cursorHidden {++ opacity: 0;++ animation: none;++}++++@keyframes cursorBlink {++ 0%, 50% {++ opacity: 1;++ }++ 51%, 100% {++ opacity: 0;++ }++}++++.heroSubtitle {++ font-size: 20px;++ color: #6b7280;++ margin-bottom: 40px;++ max-width: 800px;++ margin-left: auto;++ margin-right: auto;++}++++.heroBtn {++ background: #4f46e5;++ color: white;++ border: none;++ border-radius: 12px;++ padding: 16px 32px;++ font-size: 18px;++ font-weight: 600;++ cursor: pointer;++ display: inline-flex;++ align-items: center;++ gap: 8px;++ transition: all 0.3s ease;++++ &:hover {++ background: #4338ca;++ transform: translateY(-2px);++ box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);++ }++}++++.btnArrow {++ transition: transform 0.2s ease;++}++++.heroBtn:hover .btnArrow {++ transform: translateX(2px);++}++++.heroMobileLink {++ font-size: 14px;++ color: #4f46e5;++ cursor: pointer;++ text-decoration: underline;++ margin: 0;++ transition: color 0.2s ease;++++ &:hover {++ color: #4338ca;++ }++}++++.brandBar {++ padding: 80px 0;++ background: white;++ border-bottom: 1px solid #e5e7eb;++ overflow: hidden;++}++++.brandContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 24px;++ text-align: center;++}++++.brandTitle {++ font-size: 24px;++ font-weight: 700;++ color: #374151;++ margin-bottom: 48px;++ text-align: center;++}++++.scrollContainer {++ overflow: hidden;++ position: relative;++ white-space: nowrap;++++ &::before,++ &::after {++ content: '';++ position: absolute;++ top: 0;++ bottom: 0;++ width: 100px;++ z-index: 2;++ pointer-events: none;++ }++++ &::before {++ left: 0;++ background: linear-gradient(to right, white, transparent);++ }++++ &::after {++ right: 0;++ background: linear-gradient(to left, white, transparent);++ }++}++++.scrollTrack {++ display: flex;++ animation: scrollLeft 60s linear infinite;++ width: max-content;++++ &:hover {++ animation-play-state: paused;++ }++}++++@keyframes scrollLeft {++ 0% {++ transform: translateX(0);++ }++ 100% {++ transform: translateX(-50%);++ }++}++++.platformItem {++ display: flex;++ flex-direction: column;++ align-items: center;++ gap: 12px;++ padding: 20px 30px;++ margin: 0 15px;++ border-radius: 12px;++ transition: all 0.3s ease;++ cursor: pointer;++ min-width: 120px;++ flex-shrink: 0;++ white-space: normal;++++ &:hover {++ background: #f8fafc;++ transform: translateY(-4px);++ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);++ }++}++++.platformIcon {++ width: 52px;++ height: 52px;++ display: flex;++ align-items: center;++ justify-content: center;++ border-radius: 8px;++ background: #f3f4f6;++ transition: all 0.3s ease;++}++++.platformSvg {++ width: 45px;++ height: 45px;++ object-fit: contain;++ filter: grayscale(0%) opacity(1);++ transition: all 0.3s ease;++}++++.platformEmoji {++ font-size: 24px;++ opacity: 0.7;++ transition: opacity 0.3s ease;++}++++.platformName {++ font-size: 12px;++ font-weight: 600;++ color: #6b7280;++ text-align: center;++ transition: color 0.3s ease;++ line-height: 1.2;++ max-width: 100px;++}++++.platformItem:hover .platformSvg {++ filter: grayscale(0%) opacity(1);++ transform: scale(1.1);++}++++.platformItem:hover .platformEmoji {++ opacity: 1;++ transform: scale(1.1);++}++++.platformItem:hover .platformName {++ color: #374151;++}++++.platformItem:hover .platformIcon {++ background: #e0e7ff;++ transform: scale(1.05);++}++++.sectionBadge {++ display: inline-flex;++ align-items: center;++ gap: 8px;++ background: #f3f4f6;++ padding: 8px 16px;++ border-radius: 20px;++ font-size: 14px;++ font-weight: 600;++ color: #374151;++ margin-bottom: 32px;++++ // 即将上线模块特殊样式++ .upcomingFeaturesSection & {++ background: rgba(255, 255, 255, 0.2);++ backdrop-filter: blur(10px);++ border: 1px solid rgba(255, 255, 255, 0.3);++ color: white;++ font-weight: 700;++ padding: 12px 24px;++ border-radius: 25px;++ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);++ }++}++++.badgeIcon {++ width: 8px;++ height: 8px;++ background: #4f46e5;++ border-radius: 50%;++++ // 即将上线模块特殊样式++ .upcomingFeaturesSection & {++ background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);++ width: 12px;++ height: 12px;++ box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);++ animation: pulse 2s infinite;++ }++}++++.titleBlue {++ color: #4f46e5;++++ // 即将上线模块特殊样式++ .upcomingFeaturesSection & {++ background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++ font-weight: 900;++ }++}++++.buildSection {++ padding: 80px 0;++ background: white;++++ // 即将上线模块特殊背景++ &.upcomingFeaturesSection {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ position: relative;++ overflow: hidden;++++ &::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');++ opacity: 0.3;++ }++ }++++ @media (max-width: 768px) {++ padding: 40px 0;++ }++}++++// 脉冲动画++@keyframes pulse {++ 0% {++ transform: scale(1);++ opacity: 1;++ }++ 50% {++ transform: scale(1.2);++ opacity: 0.7;++ }++ 100% {++ transform: scale(1);++ opacity: 1;++ }++}++++.buildContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 24px;++}++++.buildContent {++ display: grid;++ grid-template-columns: 1fr 1fr;++ gap: 80px;++ align-items: stretch;++ min-height: 500px;++++ // 即将上线模块特殊布局 - 移除左右布局,使用居中布局++ &.upcomingFeaturesLayout {++ display: flex;++ flex-direction: column;++ align-items: center;++ text-align: center;++ gap: 60px;++ max-width: 900px;++ margin: 0 auto;++ }++++ @media (max-width: 768px) {++ grid-template-columns: 1fr; // 单列上下布局++ gap: 40px;++ min-height: auto;++ }++}++++// 保证左右区块在移动端占满宽度++@media (max-width: 768px) {++ .buildLeft,++ .buildRight {++ width: 100%;++ min-height: 400px;++ img {++ max-width: 100%;++ }++ }++}++++.buildLeft,++.buildRight {++ display: flex;++ flex-direction: column;++ justify-content: center;++++ // 即将上线模块特殊样式++ .upcomingFeaturesLayout & {++ width: 100%;++ max-width: 100%;++ }++}++++.buildTitle {++ font-size: 48px;++ font-weight: 800;++ line-height: 1.2;++ margin-bottom: 40px;++ color: #1f2937;++++ // 即将上线模块特殊样式++ .upcomingFeaturesLayout & {++ font-size: 56px;++ margin-bottom: 50px;++ background: #5b21b6;++ -webkit-background-clip: text;++ -webkit-text-fill-color: transparent;++ background-clip: text;++ }++}++++.featureList {++ display: flex;++ flex-direction: column;++ gap: 32px;++++ // 即将上线模块特殊样式++ .upcomingFeaturesLayout & {++ display: grid;++ grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));++ gap: 40px;++ margin-bottom: 40px;++ }++}++++.featureItem {++ h3 {++ font-size: 20px;++ font-weight: 700;++ margin-bottom: 8px;++ color: #1f2937;++ }++++ p {++ color: #6b7280;++ line-height: 1.6;++ }++++ // 即将上线模块特殊样式++ .upcomingFeaturesLayout & {++ background: rgba(255, 255, 255, 0.8);++ backdrop-filter: blur(10px);++ border-radius: 16px;++ padding: 24px;++ border: 1px solid rgba(255, 255, 255, 0.2);++ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);++ transition: all 0.3s ease;++++ &:hover {++ transform: translateY(-4px);++ box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);++ background: rgba(255, 255, 255, 0.9);++ }++++ h3 {++ font-size: 22px;++ color: #4f46e5;++ margin-bottom: 12px;++ }++++ p {++ color: #374151;++ line-height: 1.7;++ }++ }++}++++.productScreenshot {++ background: #f8fafc;++ border-radius: 16px;++ padding: 24px;++ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);++}++++.screenshotImg {++ width: 100%;++ border-radius: 12px;++}++++.connectSection {++ padding: 120px 0;++ background: #f8fafc;++}++++.connectContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 24px;++}++++.connectContent {++ display: grid;++ grid-template-columns: 1fr 1fr;++ gap: 80px;++ align-items: stretch;++ min-height: 500px;++}++++.connectLeft,++.connectRight {++ display: flex;++ flex-direction: column;++ justify-content: center;++}++++.connectTitle {++ font-size: 48px;++ font-weight: 800;++ line-height: 1.2;++ margin-bottom: 40px;++ color: #1f2937;++}++++.downloadSection {++ padding: 120px 0;++ overflow: hidden;++ position: relative;++++ @media (max-width: 768px) {++ padding: 40px 0;++ }++}++++.downloadContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 24px;++}++++.downloadContent {++ display: grid;++ grid-template-columns: 1fr 1fr;++ gap: 80px;++ align-items: center;++}++++.downloadLeft {++ color: #1f2937;++}++++.downloadTitle {++ font-size: 48px;++ font-weight: 800;++ line-height: 1.2;++ margin-bottom: 24px;++ color: #1f2937;++}++++.downloadDescription {++ font-size: 18px;++ color: #374151;++ line-height: 1.6;++ margin-bottom: 40px;++}++++.downloadButtons {++ display: flex;++ gap: 16px;++ flex-wrap: wrap;++++ @media (max-width: 768px) {++ justify-content: center;++ }++}++++.downloadBtn {++ display: inline-flex;++ background: #4f46e5;++ color: white;++ text-decoration: none;++ border-radius: 8px;++ padding: 12px 20px;++ transition: all 0.3s ease;++ border: 1px solid #4338ca;++++ &:hover {++ background: #4338ca;++ transform: translateY(-2px);++ box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);++ }++}++++.downloadBtnContent {++ display: flex;++ align-items: center;++ gap: 12px;++}++++.downloadIcon {++ color: white;++ flex-shrink: 0;++}++++.downloadBtnText {++ display: flex;++ flex-direction: column;++ align-items: flex-start;++}++++.downloadOn {++ font-size: 12px;++ opacity: 0.8;++ line-height: 1;++}++++.downloadStore {++ font-size: 16px;++ font-weight: 600;++ line-height: 1;++}++++.downloadRight {++ display: flex;++ justify-content: center;++ align-items: center;++ position: relative;++}++++.phoneContainer {++ position: relative;++ display: flex;++ align-items: center;++ gap: 40px;++}++++.phoneFrame {++ width: 280px;++ height: 600px;++ background: #1a1a1a;++ border-radius: 40px;++ padding: 8px;++ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);++ position: relative;++}++++.phoneScreen {++ width: 100%;++ height: 100%;++ background: #000;++ border-radius: 32px;++ overflow: hidden;++ position: relative;++}++++.phoneStatusBar {++ display: flex;++ justify-content: space-between;++ align-items: center;++ padding: 12px 20px;++ color: white;++ font-size: 14px;++ font-weight: 600;++}++++.phoneTime {++ color: white;++}++++.phoneSignals {++ display: flex;++ align-items: center;++ gap: 6px;++}++++.phoneSignal,++.phoneBattery {++ width: 18px;++ height: 10px;++ background: white;++ border-radius: 2px;++}++++.phoneContent {++ padding: 20px;++ color: white;++}++++.phoneHeader {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 20px;++++ h3 {++ font-size: 20px;++ font-weight: 600;++ margin: 0;++ }++}++++.phoneCounter {++ background: #dc2626;++ color: white;++ padding: 4px 8px;++ border-radius: 12px;++ font-size: 12px;++ font-weight: 600;++}++++.phoneVideoCard {++ background: #1f2937;++ border-radius: 12px;++ padding: 16px;++ margin-bottom: 20px;++}++++.phoneVideoTitle {++ font-size: 14px;++ color: #9ca3af;++ margin-bottom: 12px;++ display: block;++}++++.phoneVideoPreview {++ width: 100%;++ height: 120px;++ border-radius: 8px;++ overflow: hidden;++ margin-bottom: 12px;++}++++.phoneVideoImg {++ width: 100%;++ height: 100%;++ object-fit: cover;++}++++.phoneVideoMeta {++ display: flex;++ justify-content: space-between;++ font-size: 12px;++ color: #9ca3af;++}++++.phoneCreatePrompt {++ display: flex;++ align-items: center;++ gap: 12px;++ color: #9ca3af;++}++++.phoneAddBtn {++ width: 40px;++ height: 40px;++ background: #374151;++ border-radius: 8px;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 20px;++ color: white;++}++++.qrCode {++ display: flex;++ flex-direction: column;++ align-items: center;++}++++.qrCodeImage {++ width: 120px;++ height: 120px;++ background: white;++ border-radius: 8px;++ padding: 8px;++ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);++}++++.qrCodeImg {++ width: 100%;++ height: 100%;++ border-radius: 4px;++ object-fit: contain;++}++++.qrCodeIcon {++ width: 100%;++ height: 100%;++ display: flex;++ align-items: center;++ justify-content: center;++}++++.qrCodeText {++ margin-top: 8px;++ font-size: 12px;++ color: #6b7280;++ text-align: center;++ font-weight: 500;++}++++.qrCodePattern {++ width: 100%;++ height: 100%;++ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23000'/%3E%3Crect x='10' y='10' width='20' height='20' fill='%23fff'/%3E%3Crect x='40' y='10' width='20' height='20' fill='%23fff'/%3E%3Crect x='70' y='10' width='20' height='20' fill='%23fff'/%3E%3Crect x='10' y='40' width='20' height='20' fill='%23fff'/%3E%3Crect x='70' y='40' width='20' height='20' fill='%23fff'/%3E%3Crect x='10' y='70' width='20' height='20' fill='%23fff'/%3E%3Crect x='40' y='70' width='20' height='20' fill='%23fff'/%3E%3Crect x='70' y='70' width='20' height='20' fill='%23fff'/%3E%3C/svg%3E") no-repeat center;++ background-size: contain;++}++++// 响应式设计++@media (max-width: 768px) {++ .downloadContent {++ grid-template-columns: 1fr;++ gap: 40px;++ text-align: center;++ }++++ .downloadTitle {++ font-size: 36px;++ }++++ .phoneFrame {++ width: 240px;++ height: 500px;++ }++++ .phoneContainer {++ flex-direction: column;++ gap: 20px;++ }++++ .qrCodeImage {++ width: 100px;++ height: 100px;++ }++}++++.productionSection {++ padding: 120px 0;++ background: linear-gradient(135deg, #1e293b 0%, #334155 100%);++ color: white;++ text-align: center;++}++++.productionContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 24px;++}++++.productionTitle {++ font-size: 48px;++ font-weight: 800;++ line-height: 1.2;++ margin-bottom: 60px;++}++++.productionFeatures {++ display: grid;++ grid-template-columns: repeat(3, 1fr);++ gap: 40px;++}++++.productionFeature {++ text-align: left;++++ h3 {++ font-size: 24px;++ font-weight: 700;++ margin-bottom: 12px;++ }++++ p {++ color: #cbd5e1;++ line-height: 1.6;++ }++}++++.featureNumber {++ font-size: 14px;++ color: #64748b;++ margin-bottom: 16px;++ font-weight: 600;++}++++.enterpriseSection {++ padding: 120px 0;++ background: white;++ text-align: center;++}++++.enterpriseContainer {++ max-width: 800px;++ margin: 0 auto;++ padding: 0 24px;++}++++.enterpriseTitle {++ font-size: 48px;++ font-weight: 800;++ line-height: 1.2;++ margin-bottom: 24px;++ color: #1f2937;++}++++.enterpriseSubtitle {++ font-size: 18px;++ color: #6b7280;++ line-height: 1.6;++}++++.statsSection {++ padding: 120px 0;++ background: #f8fafc;++}++++.statsContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 24px;++}++++.statsGrid {++ display: grid;++ grid-template-columns: repeat(4, 1fr);++ gap: 40px;++ margin-bottom: 80px;++ text-align: center;++}++++.statItem {++ .statNumber {++ font-size: 48px;++ font-weight: 800;++ color: #1f2937;++ margin-bottom: 8px;++ }++++ .statLabel {++ color: #6b7280;++ font-size: 16px;++ }++}++++.testimonialCard {++ background: #4f46e5;++ color: white;++ padding: 40px;++ border-radius: 16px;++ margin-bottom: 40px;++}++++.testimonialContent {++ p {++ font-size: 18px;++ line-height: 1.6;++ margin-bottom: 24px;++ }++}++++.testimonialAuthor {++ .authorName {++ font-weight: 700;++ margin-bottom: 4px;++ }++++ .authorTitle {++ opacity: 0.8;++ font-size: 14px;++ }++}++++.caseStudies {++ display: grid;++ grid-template-columns: repeat(2, 1fr);++ gap: 40px;++}++++.caseStudy {++ .caseTitle {++ color: #6b7280;++ margin-bottom: 8px;++ }++++ .caseNumber {++ font-size: 32px;++ font-weight: 800;++ color: #4f46e5;++ }++}++++.communitySection {++ padding: 120px 0;++ background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 50%, #e7e5ff 100%);++ text-align: center;++ position: relative;++ overflow: hidden;++++ &::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.1) 0%, transparent 70%);++ pointer-events: none;++ }++}++++.communityContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 24px;++ position: relative;++ z-index: 1;++}++++.communityTitle {++ font-size: 48px;++ font-weight: 800;++ line-height: 1.2;++ margin-bottom: 24px;++ color: #1e293b;++ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);++}++++.communitySubtitle {++ font-size: 18px;++ color: #475569;++ margin-bottom: 40px;++ max-width: 600px;++ margin-left: auto;++ margin-right: auto;++ line-height: 1.6;++}++++.communityButtons {++ display: flex;++ gap: 16px;++ justify-content: center;++ margin-bottom: 60px;++}++++.buttonWrapper {++ position: relative;++ display: inline-block;++}++++.githubBtn,++.discordBtn {++ background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);++ color: white;++ border: none;++ border-radius: 12px;++ padding: 14px 28px;++ font-weight: 600;++ cursor: pointer;++ display: flex;++ align-items: center;++ gap: 8px;++ transition: all 0.3s ease;++ box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);++++ &:hover {++ background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);++ transform: translateY(-2px);++ box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);++ }++}++++.qrCodePopup {++ position: absolute;++ top: 100%;++ left: 50%;++ transform: translateX(-50%);++ background: white;++ border-radius: 16px;++ padding: 20px;++ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);++ border: 1px solid rgba(79, 70, 229, 0.1);++ z-index: 1000;++ margin-top: 12px;++ animation: fadeInUp 0.3s ease-out;++++ &::before {++ content: '';++ position: absolute;++ top: -8px;++ left: 50%;++ transform: translateX(-50%);++ width: 0;++ height: 0;++ border-left: 8px solid transparent;++ border-right: 8px solid transparent;++ border-bottom: 8px solid white;++ }++}++++.qrCodeImage {++ border-radius: 12px;++ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);++}++++.qrCodeText {++ text-align: center;++ margin-top: 12px;++ color: #4b5563;++ font-size: 14px;++ font-weight: 500;++ margin-bottom: 0;++}++++@keyframes fadeInUp {++ from {++ opacity: 0;++ transform: translateX(-50%) translateY(10px);++ }++ to {++ opacity: 1;++ transform: translateX(-50%) translateY(0);++ }++}++++.communityStats {++ display: grid;++ grid-template-columns: repeat(3, 1fr);++ gap: 40px;++ margin-bottom: 80px;++}++++.communityStat {++ background: rgba(255, 255, 255, 0.6);++ backdrop-filter: blur(10px);++ border-radius: 16px;++ padding: 24px;++ border: 1px solid rgba(255, 255, 255, 0.8);++ transition: all 0.3s ease;++++ &:hover {++ background: rgba(255, 255, 255, 0.8);++ transform: translateY(-4px);++ box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);++ }++++ .statNumber {++ font-size: 36px;++ font-weight: 800;++ color: #4f46e5;++ margin-bottom: 8px;++ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);++ }++++ .statLabel {++ color: #475569;++ font-weight: 500;++ }++}++++.footer {++ position: relative;++ width: 100%;++ background: #ffffff;++ color: #1f2937;++ border-top: 1px solid #e5e7eb;++ box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);++ // margin-top: 60px;++}++++.footerContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 60px 40px 40px;++ display: flex;++ flex-direction: column;++}++++.footerTop {++ display: flex;++ justify-content: space-between;++ margin-bottom: 60px;++ line-height: 1.5;++}++++.footerColumns {++ display: flex;++ gap: 120px;++}++++.footerColumn {++ h4 {++ font-size: 12px;++ font-weight: 700;++ color: #9ca3af;++ margin-bottom: 24px;++ letter-spacing: 1px;++ }++++ a {++ display: block;++ color: #374151;++ text-decoration: none;++ margin-bottom: 16px;++ font-size: 15px;++ transition: all 0.2s ease;++ cursor: pointer;++ position: relative;++++ &:hover {++ color: #1f2937;++ transform: translateX(4px);++ }++++ &::after {++ content: '';++ position: absolute;++ bottom: -2px;++ left: 0;++ width: 0;++ height: 2px;++ background: #4f46e5;++ transition: width 0.2s ease;++ }++++ &:hover::after {++ width: 100%;++ }++ }++}++++.footerInfo {++ max-width: 350px;++ text-align: right;++}++++.footerText {++ color: #6b7280;++ line-height: 1.6;++ font-size: 16px;++ margin-bottom: 32px;++}++++.socialLinks {++ display: flex;++ gap: 24px;++ justify-content: flex-end;++++ a {++ color: #6b7280;++ text-decoration: none;++ font-size: 15px;++ transition: color 0.2s ease;++++ &:hover {++ color: #1f2937;++ }++ }++}++++.footerBottom {++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ text-align: center;++ flex: 1;++ position: relative;++ line-height: 2;++}++++.bigText {++ font-size: 160px;++ font-weight: 900;++ line-height: 1.2;++ color: #1f2937;++ margin-bottom: 220px;++ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;++ cursor: pointer;++}++++.footerCopyright {++ position: absolute;++ bottom: 120px;++ left: 0;++ right: 0;++ display: flex;++ justify-content: space-between;++ align-items: center;++ font-size: 15px;++++ @media (max-width: 768px) {++ position: static;++ }++}++++.copyright {++ color: #9ca3af;++}++++.dataDeletionDoc {++ border-top: 1px solid #e5e7eb;++ padding: 20px 40px 0;++ font-size: 12px;++ color: #6b7280;++ line-height: 1.4;++++ h1 {++ font-size: 16px;++ font-weight: 700;++ color: #1f2937;++ margin-bottom: 8px;++ }++++ h2 {++ font-size: 14px;++ font-weight: 600;++ color: #374151;++ margin: 12px 0 6px 0;++ }++++ p {++ margin: 6px 0;++++ strong {++ font-weight: 600;++ color: #374151;++ }++ }++++ ol {++ margin: 8px 0;++ padding-left: 20px;++++ li {++ margin: 3px 0;++ }++ }++++ // 响应式调整++ @media (max-width: 768px) {++ padding: 15px 20px;++ font-size: 11px;++++ h1 {++ font-size: 14px;++ }++++ h2 {++ font-size: 12px;++ }++ }++}++++.tagline {++ color: #9ca3af;++}++++.ifText {++ display: inline;++ font-weight: 900;++ background-clip: text;++ -webkit-background-clip: text;++ transition: color 0.1s ease;++ @media (max-width: 748px) {++ margin-left: 20px !important;++ }++}++++@media (max-width: 1024px) {++ .heroTitle {++ font-size: 56px;++ }++++ .buildContent,++ .connectContent {++ //grid-template-columns: 1fr;++ //gap: 40px;++ }++++ .productionFeatures {++ grid-template-columns: 1fr;++ }++++ .statsGrid {++ grid-template-columns: repeat(2, 1fr);++ }++++ .footer {++ margin-top: 40px;++ }++++ .footerContainer {++ padding: 40px 30px 30px;++ }++++ .footerTop {++ flex-direction: column;++ gap: 40px;++ margin-bottom: 40px;++ }++++ .footerColumns {++ gap: 60px;++ }++++ .footerInfo {++ max-width: none;++ text-align: center;++ }++++ .socialLinks {++ justify-content: center;++ }++++ .bigText {++ font-size: 100px;++ margin-bottom: 30px;++ }++++ .footerCopyright {++ flex-direction: column;++ gap: 12px;++ text-align: center;++ }++}++++@media (max-width: 768px) {++ .headerContainer {++ padding: 0 16px;++ }++++ .nav {++ display: none;++ }++++ .heroTitle {++ font-size: 40px;++ }++++ .heroSubtitle {++ font-size: 18px;++ }++++ .brandContainer {++ flex-wrap: wrap;++ justify-content: center;++ }++++ .buildTitle,++ .connectTitle,++ .productionTitle,++ .enterpriseTitle,++ .communityTitle {++ font-size: 32px;++ }++++ .buildContent {++ min-height: 400px;++ }++++ .statsGrid {++ grid-template-columns: 1fr;++ }++++ .communityStats {++ grid-template-columns: 1fr;++ }++++ .footer {++ margin-top: 30px;++ }++++ .footerContainer {++ padding: 30px 20px 20px;++ }++++ .footerColumns {++ flex-direction: column;++ gap: 30px;++ }++++ .bigText {++ font-size: 60px;++ }++++ .footerText {++ font-size: 14px;++ }++++ // 轮播组件移动端适配++ .imageCarousel {++ height: 100%;++ }++++ .carouselHint {++ display: none; // 移动端隐藏滚轮提示++ }++++ .carouselIndicators {++ right: 15px;++ gap: 10px;++ }++++ .indicator {++ width: 10px;++ height: 10px;++ }++}++++@keyframes fadeInUp {++ from {++ opacity: 0;++ transform: translateY(30px);++ }++ to {++ opacity: 1;++ transform: translateY(0);++ }++}++++@keyframes fadeInDown {++ from {++ opacity: 0;++ transform: translateY(-30px);++ }++ to {++ opacity: 1;++ transform: translateY(0);++ }++}++++@keyframes slideInLeft {++ from {++ opacity: 0;++ transform: translateX(-30px);++ }++ to {++ opacity: 1;++ transform: translateX(0);++ }++}++++@keyframes slideInRight {++ from {++ opacity: 0;++ transform: translateX(30px);++ }++ to {++ opacity: 1;++ transform: translateX(0);++ }++}++++.heroContainer {++ animation: fadeInUp 1s ease-out;++}++++.buildLeft {++ animation: slideInLeft 1s ease-out;++}++++.buildRight {++ animation: slideInRight 1s ease-out;++}++++// 轮播组件样式++.imageCarousel {++ position: relative;++ width: 100%;++ height: 100%;++ border-radius: 12px;++ cursor: pointer;++}++++.carouselContainer {++ position: relative;++ width: 100%;++ height: 100%;++++ // 手机版图片容器特殊样式++ &.mobileContainer {++ display: flex;++ align-items: center;++ justify-content: center;++ padding: 20px 0;++ }++}++++.carouselSlide {++ position: absolute;++ top: 0;++ right: 0;++ width: 100%;++ height: 100%;++ opacity: 0;++ transition: opacity 0.5s ease-in-out;++ display: flex;++ justify-content: right;++ align-items: flex-start;++++ &.active {++ opacity: 1;++ }++++ @media (max-width: 768px) {++ display: flex;++ justify-content: center;++ img {++ height: 100%;++ }++ video {++ height: 100%;++ }++ }++}++++.carouselImage {++ width: 100%;++ // height: 100%;++ object-fit: cover;++ transition: transform 0.3s ease;++++ .carouselSlide:hover & {++ transform: scale(1.02);++ }++}++++// 手机版竖屏图片样式 (9:16比例)++.mobileCarouselImage {++ width: 100%;++ max-width: 280px; // 限制最大宽度,适合手机屏幕++ height: auto;++ object-fit: contain; // 保持比例++ border-radius: 24px; // 圆角边框,模拟手机外观++ box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); // 更深的阴影效果++ transition: transform 0.3s ease;++ border: 8px solid #1a1a1a; // 手机边框++ background: #1a1a1a; // 手机背景色++++ .carouselSlide:hover & {++ transform: scale(1.08);++ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);++ }++}++++// 横屏图片样式++.desktopCarouselImage {++ width: 100%;++ max-width: 280px;++ height: auto;++ object-fit: cover;++ border-radius: 12px; // 圆角边框++ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); // 阴影效果++ transition: transform 0.3s ease;++++ .carouselSlide:hover & {++ transform: scale(1.02);++ }++++ // 即将上线模块特殊样式++ .upcomingFeaturesLayout & {++ max-width: 800px;++ border-radius: 16px;++ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);++ transition: all 0.4s ease;++++ &:hover {++ transform: scale(1.03);++ box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);++ }++ }++}++++.carouselIndicators {++ position: absolute;++ right: 20px;++ top: 50%;++ transform: translateY(-50%);++ display: flex;++ flex-direction: column;++ gap: 12px;++ z-index: 10;++}++++.indicator {++ width: 12px;++ height: 12px;++ border-radius: 50%;++ border: none;++ background: rgba(255, 255, 255, 0.5);++ cursor: pointer;++ transition: all 0.3s ease;++++ &.active {++ background: #fff;++ transform: scale(1.3);++ }++++ &:hover {++ background: rgba(255, 255, 255, 0.8);++ }++}++++.carouselHint {++ position: absolute;++ top: 20px;++ right: 20px;++ background: rgba(0, 0, 0, 0.7);++ color: white;++ padding: 8px 12px;++ border-radius: 6px;++ font-size: 12px;++ opacity: 0;++ transition: opacity 0.3s ease;++ pointer-events: none;++ z-index: 10;++++ .imageCarousel:hover & {++ opacity: 1;++ }++}++++@keyframes carouselFadeIn {++ from {++ opacity: 0;++ transform: translateY(20px);++ }++ to {++ opacity: 1;++ transform: translateY(0);++ }++}++++.carouselSlide.active {++ animation: carouselFadeIn 0.5s ease-out;++}++++.connectLeft {++ animation: slideInLeft 1s ease-out;++}++++.connectRight {++ animation: slideInRight 1s ease-out;++}++++.productionFeature {++ animation: fadeInUp 1s ease-out;++++ &:nth-child(2) {++ animation-delay: 0.2s;++ }++++ &:nth-child(3) {++ animation-delay: 0.4s;++ }++}++++.statItem {++ animation: fadeInUp 1s ease-out;++++ &:nth-child(2) {++ animation-delay: 0.1s;++ }++++ &:nth-child(3) {++ animation-delay: 0.2s;++ }++++ &:nth-child(4) {++ animation-delay: 0.3s;++ }++}++++// 即将上线功能��块样式++.comingSoonPlaceholder {++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ height: 400px;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border-radius: 16px;++ color: white;++ text-align: center;++ padding: 40px;++ position: relative;++ overflow: hidden;++++ &::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');++ opacity: 0.3;++ }++}++++.placeholderIcon {++ font-size: 64px;++ margin-bottom: 20px;++ animation: bounce 2s infinite;++}++++@keyframes bounce {++ 0%, 20%, 50%, 80%, 100% {++ transform: translateY(0);++ }++ 40% {++ transform: translateY(-10px);++ }++ 60% {++ transform: translateY(-5px);++ }++}++++++++++++++++++++++++++.pricingPage {++ min-height: 100vh;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ padding: 2rem 0;++ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;++++ .container {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 1rem;++ }++++ .backToHome {++ display: flex;++ justify-content: flex-start;++ margin-bottom: 2rem;++++ .backButton {++ display: flex;++ align-items: center;++ gap: 8px;++ background: rgba(255, 255, 255, 0.1);++ border: 1px solid rgba(255, 255, 255, 0.2);++ color: white;++ padding: 12px 20px;++ border-radius: 8px;++ font-size: 14px;++ font-weight: 500;++ cursor: pointer;++ transition: all 0.3s ease;++ backdrop-filter: blur(10px);++++ &:hover {++ background: rgba(255, 255, 255, 0.2);++ border-color: rgba(255, 255, 255, 0.3);++ transform: translateY(-1px);++ }++++ svg {++ transition: transform 0.2s ease;++ }++++ &:hover svg {++ transform: translateX(-2px);++ }++ }++ }++++ .header {++ text-align: center;++ margin-bottom: 3rem;++++ .title {++ font-size: 3.5rem;++ font-weight: 700;++ color: white;++ margin-bottom: 1rem;++ line-height: 1.2;++ }++++ .subtitle {++ font-size: 1.4rem;++ color: rgba(255, 255, 255, 0.9);++ max-width: 600px;++ margin: 0 auto;++ line-height: 1.5;++ }++ }++++ .billingToggle {++ display: flex;++ justify-content: center;++ margin-bottom: 3rem;++++ .toggleContainer {++ display: flex;++ background: rgba(255, 255, 255, 0.1);++ border-radius: 12px;++ padding: 4px;++ backdrop-filter: blur(10px);++ border: 1px solid rgba(255, 255, 255, 0.2);++++ .toggleButton {++ position: relative;++ padding: 1rem 2rem;++ border: none;++ background: transparent;++ color: rgba(255, 255, 255, 0.8);++ font-size: 1.1rem;++ font-weight: 600;++ border-radius: 8px;++ cursor: pointer;++ transition: all 0.3s ease;++ min-width: 120px;++++ &:hover {++ color: white;++ }++++ &.active {++ background: white;++ color: #667eea;++ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);++ }++++ .saveBadge {++ position: absolute;++ top: -8px;++ right: -8px;++ background: #ff6b6b;++ color: white;++ font-size: 0.75rem;++ font-weight: 700;++ padding: 4px 8px;++ border-radius: 12px;++ white-space: nowrap;++ box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);++ }++ }++ }++ }++++ .pricingCards {++ display: grid;++ grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));++ gap: 2rem;++ margin-bottom: 4rem;++++ .pricingCard {++ background: white;++ border-radius: 20px;++ padding: 2.5rem;++ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);++ position: relative;++ transition: all 0.3s ease;++ border: 2px solid transparent;++++ &:hover {++ transform: translateY(-8px);++ box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);++ }++++ &.popular {++ border-color: #667eea;++ transform: scale(1.05);++++ .popularBadge {++ position: absolute;++ top: -12px;++ left: 50%;++ transform: translateX(-50%);++ background: linear-gradient(135deg, #667eea, #764ba2);++ color: white;++ padding: 0.5rem 1.5rem;++ border-radius: 20px;++ font-size: 0.9rem;++ font-weight: 700;++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);++ }++ }++++ .cardHeader {++ text-align: center;++ margin-bottom: 2rem;++++ .planName {++ font-size: 2.2rem;++ font-weight: 700;++ color: #2d3748;++ margin-bottom: 1rem;++ }++++ .priceContainer {++ .originalPrice {++ display: block;++ font-size: 1.1rem;++ color: #a0aec0;++ text-decoration: line-through;++ margin-bottom: 0.5rem;++ }++++ .price {++ display: flex;++ align-items: baseline;++ justify-content: center;++ gap: 0.25rem;++++ .currency {++ font-size: 1.5rem;++ font-weight: 600;++ color: #2d3748;++ }++++ .amount {++ font-size: 3.5rem;++ font-weight: 700;++ color: #667eea;++ line-height: 1;++ }++++ .period {++ font-size: 1.2rem;++ color: #718096;++ font-weight: 500;++ }++ }++++ .monthlyPrice {++ font-size: 1rem;++ color: #718096;++ margin-top: 0.5rem;++ font-weight: 500;++ }++ }++ }++++ .planFeatures {++ .mainFeatures {++ display: grid;++ grid-template-columns: repeat(3, 1fr);++ gap: 1rem;++ margin-bottom: 2rem;++ padding: 1.5rem;++ background: #f7fafc;++ border-radius: 12px;++++ .featureItem {++ text-align: center;++++ .featureLabel {++ display: block;++ font-size: 0.9rem;++ color: #718096;++ font-weight: 500;++ margin-bottom: 0.5rem;++ }++++ .featureValue {++ display: block;++ font-size: 1.1rem;++ font-weight: 700;++ color: #2d3748;++ }++ }++ }++++ .featuresList {++ .featureRow {++ display: flex;++ align-items: center;++ gap: 0.75rem;++ margin-bottom: 1rem;++ font-size: 1rem;++++ .checkIcon {++ color: #48bb78;++ font-size: 1.1rem;++ flex-shrink: 0;++ }++++ .closeIcon {++ color: #e53e3e;++ font-size: 1.1rem;++ flex-shrink: 0;++ }++++ .featureText {++ color: #2d3748;++ font-weight: 500;++++ &.disabled {++ color: #a0aec0;++ }++ }++ }++ }++ }++++ .ctaButton {++ width: 100%;++ height: 3.5rem;++ font-size: 1.1rem;++ font-weight: 600;++ border-radius: 12px;++ margin-top: 2rem;++ transition: all 0.3s ease;++++ &:hover {++ transform: translateY(-2px);++ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);++ }++ }++ }++ }++++ .faqSection {++ background: white;++ border-radius: 20px;++ padding: 3rem;++ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);++++ .faqTitle {++ font-size: 2.5rem;++ font-weight: 700;++ color: #2d3748;++ text-align: center;++ margin-bottom: 2.5rem;++ }++++ .faqCollapse {++ max-width: 800px;++ margin: 0 auto;++++ :global(.ant-collapse-item) {++ border: 1px solid #e2e8f0;++ border-radius: 12px;++ margin-bottom: 1rem;++ overflow: hidden;++++ &:last-child {++ margin-bottom: 0;++ }++ }++++ :global(.ant-collapse-header) {++ font-size: 1.1rem;++ font-weight: 600;++ color: #2d3748;++ padding: 1.5rem;++ background: #f7fafc;++ border-bottom: 1px solid #e2e8f0;++++ &:hover {++ background: #edf2f7;++ }++ }++++ :global(.ant-collapse-content) {++ background: white;++ }++++ :global(.ant-collapse-content-box) {++ padding: 1.5rem;++ font-size: 1rem;++ line-height: 1.6;++ color: #4a5568;++ }++ }++ }++}++++// 响应式设计++@media (max-width: 768px) {++ .pricingPage {++ padding: 1rem 0;++++ .header {++ .title {++ font-size: 2.5rem;++ }++++ .subtitle {++ font-size: 1.2rem;++ }++ }++++ .pricingCards {++ grid-template-columns: 1fr;++ gap: 1.5rem;++++ .pricingCard {++ padding: 2rem;++++ &.popular {++ transform: none;++ }++++ .cardHeader {++ .planName {++ font-size: 1.8rem;++ }++++ .priceContainer {++ .price {++ .amount {++ font-size: 2.8rem;++ }++ }++ }++ }++++ .planFeatures {++ .mainFeatures {++ grid-template-columns: 1fr;++ gap: 0.75rem;++ }++ }++ }++ }++++ .faqSection {++ padding: 2rem;++++ .faqTitle {++ font-size: 2rem;++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/styles/pricing.module.scssindex 00000000,00000000..49341205new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/styles/pricing.module.scss@@@ -1,0 -1,0 +1,515 @@@++.pricingPage {++ min-height: 100vh;++ background: #ffffff;++ padding: 2rem 0;++ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;++}++++.container {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 2rem;++}++++.header {++ text-align: center;++ margin-bottom: 3rem;++ color: #2c3e50;++}++++.title {++ font-size: 3.5rem;++ font-weight: 700;++ margin-bottom: 1rem;++ color: #2c3e50;++}++++.subtitle {++ font-size: 1.25rem;++ color: #7f8c8d;++ max-width: 600px;++ margin: 0 auto;++ line-height: 1.6;++}++++.billingToggle {++ display: flex;++ justify-content: center;++ margin-bottom: 3rem;++}++++.toggleContainer {++ background: #f8f9fa;++ border-radius: 50px;++ padding: 0.5rem;++ border: 1px solid #e9ecef;++}++++.toggleButton {++ background: transparent;++ border: none;++ color: #2c3e50;++ padding: 1rem 2rem;++ border-radius: 40px;++ font-size: 1rem;++ font-weight: 600;++ cursor: pointer;++ transition: all 0.3s ease;++ position: relative;++ margin: 0 0.25rem;++}++++.toggleButton.active {++ background: #667eea;++ color: white;++ box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);++}++++.saveBadge {++ position: absolute;++ top: -8px;++ right: -8px;++ background: #ff4757;++ color: white;++ font-size: 0.75rem;++ padding: 0.25rem 0.5rem;++ border-radius: 12px;++ font-weight: 600;++ animation: pulse 2s infinite;++}++++@keyframes pulse {++ 0% { transform: scale(1); }++ 50% { transform: scale(1.05); }++ 100% { transform: scale(1); }++}++++.pricingCards {++ display: grid;++ grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));++ gap: 2rem;++ margin-bottom: 4rem;++}++++.pricingCard {++ background: #ffffff;++ border-radius: 24px;++ padding: 2.5rem;++ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);++ border: 1px solid #e9ecef;++ transition: all 0.3s ease;++ position: relative;++ overflow: hidden;++}++++.pricingCard:hover {++ transform: translateY(-10px);++ box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);++}++++.pricingCard.popular {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++ transform: scale(1.05);++}++++.pricingCard.popular::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ height: 4px;++ background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);++ background-size: 300% 100%;++ animation: gradientShift 3s ease infinite;++}++++@keyframes gradientShift {++ 0% { background-position: 0% 50%; }++ 50% { background-position: 100% 50%; }++ 100% { background-position: 0% 50%; }++}++++.popularBadge {++ position: absolute;++ top: 1rem;++ right: 1rem;++ background: #ff4757;++ color: white;++ padding: 0.5rem 1rem;++ border-radius: 20px;++ font-size: 0.875rem;++ font-weight: 600;++ z-index: 1;++}++++.cardHeader {++ text-align: center;++ margin-bottom: 2rem;++}++++.planName {++ font-size: 1.75rem;++ font-weight: 700;++ margin-bottom: 1rem;++ color: #2c3e50;++}++++.pricingCard.popular .planName {++ color: white;++}++++.priceContainer {++ position: relative;++}++++.originalPrice {++ display: block;++ font-size: 1rem;++ color: #95a5a6;++ text-decoration: line-through;++ margin-bottom: 0.5rem;++}++++.pricingCard.popular .originalPrice {++ color: rgba(255, 255, 255, 0.7);++}++++.price {++ display: flex;++ align-items: baseline;++ justify-content: center;++ gap: 0.25rem;++}++++.currency {++ font-size: 1.5rem;++ font-weight: 600;++ color: #2c3e50;++}++++.pricingCard.popular .currency {++ color: white;++}++++.amount {++ font-size: 3.5rem;++ font-weight: 700;++ color: #2c3e50;++ line-height: 1;++}++++.pricingCard.popular .amount {++ color: white;++}++++.period {++ font-size: 1.25rem;++ color: #7f8c8d;++ font-weight: 500;++}++++.pricingCard.popular .period {++ color: rgba(255, 255, 255, 0.8);++}++++.monthlyPrice {++ font-size: 0.875rem;++ color: #7f8c8d;++ margin-top: 0.5rem;++}++++.pricingCard.popular .monthlyPrice {++ color: rgba(255, 255, 255, 0.7);++}++++.planFeatures {++ margin-bottom: 2rem;++}++++.mainFeatures {++ display: grid;++ grid-template-columns: repeat(3, 1fr);++ gap: 1rem;++ margin-bottom: 2rem;++ padding: 1.5rem;++ background: rgba(0, 0, 0, 0.02);++ border-radius: 16px;++}++++.pricingCard.popular .mainFeatures {++ background: rgba(255, 255, 255, 0.1);++}++++.featureItem {++ text-align: center;++}++++.featureLabel {++ display: block;++ font-size: 0.875rem;++ color: #7f8c8d;++ margin-bottom: 0.5rem;++ font-weight: 500;++}++++.pricingCard.popular .featureLabel {++ color: rgba(255, 255, 255, 0.7);++}++++.featureValue {++ display: block;++ font-size: 1.25rem;++ font-weight: 700;++ color: #2c3e50;++}++++.pricingCard.popular .featureValue {++ color: white;++}++++.featuresList {++ space-y: 1rem;++}++++.featureRow {++ display: flex;++ align-items: center;++ gap: 0.75rem;++ padding: 0.75rem 0;++ border-bottom: 1px solid rgba(0, 0, 0, 0.05);++}++++.pricingCard.popular .featureRow {++ border-bottom-color: rgba(255, 255, 255, 0.1);++}++++.featureRow:last-child {++ border-bottom: none;++}++++.checkIcon {++ color: #27ae60;++ font-size: 1.125rem;++ flex-shrink: 0;++}++++.pricingCard.popular .checkIcon {++ color: #2ecc71;++}++++.closeIcon {++ color: #e74c3c;++ font-size: 1.125rem;++ flex-shrink: 0;++}++++.pricingCard.popular .closeIcon {++ color: #ff6b6b;++}++++.featureText {++ font-size: 0.95rem;++ color: #2c3e50;++ font-weight: 500;++}++++.pricingCard.popular .featureText {++ color: white;++}++++.featureText.disabled {++ color: #95a5a6;++ text-decoration: line-through;++}++++.pricingCard.popular .featureText.disabled {++ color: rgba(255, 255, 255, 0.5);++}++++.ctaButton {++ width: 100%;++ height: 3.5rem;++ font-size: 1.125rem;++ font-weight: 600;++ border-radius: 16px;++ border: none;++ cursor: pointer;++ transition: all 0.3s ease;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++}++++.ctaButton:hover {++ transform: translateY(-2px);++ box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);++}++++.pricingCard.popular .ctaButton {++ background: white;++ color: #667eea;++}++++.pricingCard.popular .ctaButton:hover {++ background: #f8f9fa;++ box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);++}++++.faqSection {++ background: #ffffff;++ border-radius: 24px;++ padding: 3rem;++ border: 1px solid #e9ecef;++ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);++}++++.faqTitle {++ text-align: center;++ font-size: 2.5rem;++ font-weight: 700;++ margin-bottom: 2rem;++ color: #2c3e50;++}++++.faqCollapse {++ background: transparent;++ border: none;++}++++.faqCollapse :global(.ant-collapse-item) {++ border: 1px solid rgba(0, 0, 0, 0.1);++ border-radius: 12px;++ margin-bottom: 1rem;++ overflow: hidden;++}++++.faqCollapse :global(.ant-collapse-header) {++ font-size: 1.125rem;++ font-weight: 600;++ color: #2c3e50;++ padding: 1.5rem;++}++++.faqCollapse :global(.ant-collapse-content) {++ border-top: 1px solid rgba(0, 0, 0, 0.1);++}++++.faqCollapse :global(.ant-collapse-content-box) {++ padding: 1.5rem;++ color: #7f8c8d;++ line-height: 1.6;++}++++@media (max-width: 768px) {++ .container {++ padding: 0 1rem;++ }++++ .title {++ font-size: 2.5rem;++ }++++ .pricingCards {++ grid-template-columns: 1fr;++ gap: 1.5rem;++ }++++ .pricingCard {++ padding: 2rem;++ }++++ .mainFeatures {++ grid-template-columns: 1fr;++ gap: 0.75rem;++ }++++ .faqSection {++ padding: 2rem;++ }++++ .faqTitle {++ font-size: 2rem;++ }++}++++// 价格表格样式++.pricingTableContainer {++ margin-top: 2rem;++ padding: 1.5rem;++ background: #f8f9fa;++ border-radius: 12px;++ border: 1px solid #e9ecef;++}++++.pricingTableContainer h4 {++ margin: 0 0 1.5rem 0;++ color: #2c3e50;++ font-size: 1.25rem;++ font-weight: 600;++}++++.pricingTableWrapper {++ overflow-x: auto;++ border-radius: 8px;++ border: 1px solid #e9ecef;++}++++.pricingTable {++ width: 100%;++ border-collapse: collapse;++ background: white;++ font-size: 0.875rem;++ min-width: 800px;++}++++.pricingTable th {++ background: #667eea;++ color: white;++ padding: 0.75rem;++ text-align: left;++ font-weight: 600;++ border-bottom: 1px solid #e9ecef;++ white-space: nowrap;++}++++.pricingTable td {++ padding: 0.75rem;++ border-bottom: 1px solid #f1f3f4;++ vertical-align: top;++ word-wrap: break-word;++ max-width: 200px;++}++++.pricingTable tr:nth-child(even) {++ background: #f8f9fa;++}++++.pricingTable tr:hover {++ background: #e3f2fd;++}++++.pricingTable tr:last-child td {++ border-bottom: none;++}++++@media (max-width: 768px) {++ .pricingTableContainer {++ padding: 1rem;++ margin-top: 1.5rem;++ }++++ .pricingTableContainer h4 {++ font-size: 1.125rem;++ }++++ .pricingTable {++ font-size: 0.75rem;++ min-width: 600px;++ }++++ .pricingTable th,++ .pricingTable td {++ padding: 0.5rem;++ }++}diff --cc project/aitoearn-web/src/app/[lng]/tasks/page.tsxindex 00000000,00000000..0c3af971new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/tasks/page.tsx@@@ -1,0 -1,0 +1,7 @@@++"use client";++++import TaskPageCore from "./taskPageCore";++++export default function TaskPage() {++ return <TaskPageCore />;++}diff --cc project/aitoearn-web/src/app/[lng]/tasks/taskPageCore.module.scssindex 00000000,00000000..3c1f83canew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/tasks/taskPageCore.module.scss@@@ -1,0 -1,0 +1,147 @@@++.taskPage {++ padding: 24px;++ background: #fff;++ min-height: 100vh;++++ .header {++ margin-bottom: 24px;++ text-align: center;++++ h1 {++ font-size: 28px;++ font-weight: 600;++ color: #1a1a1a;++ margin-bottom: 8px;++ }++++ p {++ font-size: 16px;++ color: #666;++ margin: 0;++ }++ }++++ .tabs {++ .ant-tabs-tab {++ font-size: 16px;++ font-weight: 500;++ }++++ .ant-tabs-content-holder {++ padding-top: 16px;++ }++ }++++ .taskCard {++ margin-bottom: 16px;++ border-radius: 12px;++ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);++ transition: all 0.3s ease;++++ &:hover {++ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);++ transform: translateY(-2px);++ }++++ .taskHeader {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 16px;++ padding-bottom: 12px;++ border-bottom: 1px solid #f0f0f0;++++ h3 {++ font-size: 18px;++ font-weight: 600;++ color: #1a1a1a;++ margin: 0;++ flex: 1;++ }++ }++++ .taskContent {++ margin-bottom: 20px;++++ p {++ margin-bottom: 12px;++ line-height: 1.6;++ color: #333;++++ strong {++ color: #1a1a1a;++ font-weight: 600;++ }++ }++++ div {++ margin-top: 8px;++ line-height: 1.6;++ }++ }++++ .taskActions {++ display: flex;++ gap: 12px;++ justify-content: flex-end;++ padding-top: 16px;++ border-top: 1px solid #f0f0f0;++++ .ant-btn {++ border-radius: 6px;++ font-weight: 500;++ }++ }++ }++++ .ant-list-item {++ padding: 0;++ border: none;++ }++++ .ant-empty {++ margin: 60px 0;++ }++++ .ant-spin-container {++ min-height: 200px;++ }++}++++// 响应式设计++@media (max-width: 768px) {++ .taskPage {++ padding: 16px;++++ .header {++ h1 {++ font-size: 24px;++ }++++ p {++ font-size: 14px;++ }++ }++++ .taskCard {++ .taskHeader {++ flex-direction: column;++ align-items: flex-start;++ gap: 8px;++++ h3 {++ font-size: 16px;++ }++ }++++ .taskActions {++ flex-direction: column;++ gap: 8px;++++ .ant-btn {++ width: 100%;++ }++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/[lng]/tasks/taskPageCore.tsxindex 00000000,00000000..8ed83383new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/tasks/taskPageCore.tsx@@@ -1,0 -1,0 +1,2038 @@@++"use client";++++import React, { useState, useEffect } from "react";++import { Tabs, Card, Button, List, Tag, message, Spin, Empty, Modal, Input, Row, Col, Image, Tooltip, Pagination } from "antd";++import { CheckOutlined, ClockCircleOutlined, PlayCircleOutlined, UploadOutlined, EyeOutlined } from "@ant-design/icons";++import { useTransClient } from "@/app/i18n/client";++import { useUserStore } from "@/store/user";++import {++ apiGetTaskOpportunityList,++ apiGetUserTaskList,++ apiGetUserTaskDetail,++ apiAcceptTask,++ apiSubmitTask,++ TaskOpportunity,++ UserTask++} from "@/api/task";++import { apiCreatePublish } from "@/api/plat/publish";++import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";++import { getOssUrl } from "@/utils/oss";++import { getAppDownloadConfig, getTasksRequiringApp } from "@/app/config/appDownloadConfig";++import DownloadAppModal from "@/components/common/DownloadAppModal";++import { getAccountListApi } from "@/api/account";++import { SocialAccount } from "@/api/types/account.type";++import { getTaskDetail, acceptTask, submitTask } from "@/api/notification";++import { getDays, getUtcDays } from "@/app/[lng]/accounts/components/CalendarTiming/calendarTiming.utils";++import { Steps } from "antd";++import http from "@/utils/request";++import { useRouter, useParams } from "next/navigation";++import styles from "./taskPageCore.module.scss";++++const { TabPane } = Tabs;++++export default function TaskPageCore() {++ const { t } = useTransClient("task" as any);++ const token = useUserStore((state) => state.token);++ const router = useRouter();++ const params = useParams();++ const lng = params.lng as string;++++ // 如果未登录,显示登录提示++ if (!token) {++ return (++ <div className={styles.taskPage}>++ <div className={styles.header}>++ <h1>{t('title')}</h1>++ <p>{t('messages.pleaseLoginFirst')}</p>++ </div>++ <div style={{ textAlign: 'center', padding: '60px 0' }}>++ <Empty description={t('messages.pleaseLoginFirst')} />++ </div>++ </div>++ );++ }++++ // 状态管理++ const [activeTab, setActiveTab] = useState("pending"); // pending: 待接受, accepted: 已接受++ const [pendingTasks, setPendingTasks] = useState<TaskOpportunity[]>([]);++ const [acceptedTasks, setAcceptedTasks] = useState<UserTask[]>([]);++ const [loading, setLoading] = useState(false);++++ // 分页状态++ const [pendingPagination, setPendingPagination] = useState({++ current: 1,++ pageSize: 15,++ total: 0++ });++ const [acceptedPagination, setAcceptedPagination] = useState({++ current: 1,++ pageSize: 15,++ total: 0++ });++ const [selectedTask, setSelectedTask] = useState<TaskOpportunity | null>(null);++ const [submitModalVisible, setSubmitModalVisible] = useState(false);++ const [submissionUrl, setSubmissionUrl] = useState("");++ const [submittingTaskId, setSubmittingTaskId] = useState<string | null>(null);++++ // 新增状态++ const [accountList, setAccountList] = useState<SocialAccount[]>([]);++ const [taskDetailModalVisible, setTaskDetailModalVisible] = useState(false);++ const [taskDetail, setTaskDetail] = useState<any>(null);++ const [taskDetailLoading, setTaskDetailLoading] = useState(false);++ const [currentTaskId, setCurrentTaskId] = useState<string | null>(null);++++ // 已接受任务详情弹窗状态++ const [acceptedTaskDetailModalVisible, setAcceptedTaskDetailModalVisible] = useState(false);++ const [acceptedTaskDetail, setAcceptedTaskDetail] = useState<any>(null);++ const [acceptedTaskDetailLoading, setAcceptedTaskDetailLoading] = useState(false);++++ // 媒体预览弹窗状态++ const [mediaPreviewVisible, setMediaPreviewVisible] = useState(false);++ const [previewMedia, setPreviewMedia] = useState<{++ type: 'video' | 'image';++ url: string;++ title?: string;++ } | null>(null);++ const [videoRef, setVideoRef] = useState<HTMLVideoElement | null>(null);++++ // 任务进度弹窗状态++ const [taskProgressVisible, setTaskProgressVisible] = useState(false);++ const [taskProgress, setTaskProgress] = useState({++ currentStep: 0,++ steps: [++ { title: t('acceptingTask' as any), status: 'processing' },++ { title: t('publishingTask' as any), status: 'wait' },++ { title: t('submittingTask' as any), status: 'wait' },++ { title: t('taskCompleted' as any), status: 'wait' }++ ]++ });++++ // 下载App弹窗状态 - 暂时注释++ const [downloadAppVisible, setDownloadAppVisible] = useState(false);++ const [downloadAppConfig, setDownloadAppConfig] = useState({++ platform: "",++ appName: "",++ downloadUrl: "",++ qrCodeUrl: "" as string | undefined++ });++++ // 账号选择弹窗状态++ const [accountSelectVisible, setAccountSelectVisible] = useState(false);++ const [availableAccounts, setAvailableAccounts] = useState<SocialAccount[]>([]);++ const [selectedAccount, setSelectedAccount] = useState<SocialAccount | null>(null);++ const [requiredAccountTypes, setRequiredAccountTypes] = useState<string[]>([]);++++ // 获取待接受任务列表++ const fetchPendingTasks = async (page: number = 1, pageSize: number = 15) => {++ if (!token) return;++++ try {++ setLoading(true);++ const response = await apiGetTaskOpportunityList({ page, pageSize });++ if (response && response.data) {++ setPendingTasks(response.data.list || []);++ setPendingPagination(prev => ({++ ...prev,++ current: page,++ total: (response.data as any).total || 0++ }));++ } else {++ setPendingTasks([]);++ }++ } catch (error) {++ console.error("获取待接受任务失败:", error);++ message.error(t('messages.getPendingTasksFailed'));++ setPendingTasks([]);++ } finally {++ setLoading(false);++ }++ };++++ // 获取已接受任务列表++ const fetchAcceptedTasks = async (page: number = 1, pageSize: number = 15) => {++ if (!token) return;++++ try {++ setLoading(true);++ const response = await apiGetUserTaskList({ page, pageSize });++ if (response && response.data) {++ setAcceptedTasks(response.data.list || []);++ setAcceptedPagination(prev => ({++ ...prev,++ current: page,++ total: (response.data as any).total || 0++ }));++ } else {++ setAcceptedTasks([]);++ }++ } catch (error) {++ console.error("获取已接受任务失败:", error);++ message.error(t('messages.getAcceptedTasksFailed'));++ setAcceptedTasks([]);++ } finally {++ setLoading(false);++ }++ };++++ // 获取账号列表++ const fetchAccountList = async () => {++ if (!token) {++ setAccountList([]);++ return;++ }++++ try {++ const response = await getAccountListApi();++ if (response && response.data) {++ setAccountList(response.data || []);++ }++ } catch (error) {++ console.error("获取账号列表失败:", error);++ }++ };++++ // 接受任务++ const handleAcceptTask = async (task: any ) => {++ // 暂时简化,直接接受任务++ await doAcceptTask(task);++++ // TODO: 添加平台限制检查++ // if (!task.accountTypes || task.accountTypes.length === 0) {++ // // 没有账号类型限制,直接接取任务++ // await doAcceptTask(task);++ // return;++ // }++++ // // 检查需要App操作的平台++ // const appRequiredPlatforms = getTasksRequiringApp(task.accountTypes);++++ // if (appRequiredPlatforms.length > 0) {++ // // 有需要App操作的平台,显示第一个平台的下载提示++ // const firstPlatform = appRequiredPlatforms[0];++ // const config = getAppDownloadConfig(firstPlatform);++++ // if (config) {++ // setDownloadAppConfig({++ // platform: config.platform,++ // appName: config.appName,++ // downloadUrl: config.downloadUrl,++ // qrCodeUrl: config.qrCodeUrl++ // });++ // setDownloadAppVisible(true);++ // return;++ // }++ // }++++ // // 其他任务类型正常接取++ // await doAcceptTask(task);++ };++++ // 执行接受任务++ const doAcceptTask = async (task: TaskOpportunity) => {++ try {++ const response = await apiAcceptTask(task.id);++ if (response && response.code === 0) {++ message.success(t('messages.acceptTaskSuccess'));++ // 刷新任务列表++ fetchPendingTasks();++ fetchAcceptedTasks();++ // 切换到已接受任务标签++ setActiveTab("accepted");++ } else {++ message.error(t('messages.acceptTaskFailed'));++ }++ } catch (error) {++ message.error(t('messages.acceptTaskFailed'));++ console.error("接受任务失败:", error);++ }++ };++++++ // 获取平台显示名称++ const getPlatformName = (type: string) => {++ const platformNames: Record<string, string> = {++ 'tiktok': t('platforms.tiktok' as any),++ 'youtube': t('platforms.youtube' as any),++ 'twitter': t('platforms.twitter' as any),++ 'bilibili': t('platforms.bilibili' as any),++ 'KWAI': t('platforms.KWAI' as any),++ 'douyin': t('platforms.douyin' as any),++ 'xhs': t('platforms.xhs' as any),++ 'wxSph': t('platforms.wxSph' as any),++ 'wxGzh': t('platforms.wxGzh' as any),++ 'facebook': t('platforms.facebook' as any),++ 'instagram': t('platforms.instagram' as any),++ 'threads': t('platforms.threads' as any),++ 'pinterest': t('platforms.pinterest' as any),++ };++ return platformNames[type] || type;++ };++++ // 获取任务类型显示名称++ const getTaskTypeName = (type: string) => {++ const taskTypeNames: Record<string, string> = {++ 'video': t('taskTypes.video' as any),++ 'article': t('taskTypes.article' as any),++ 'article2': t('taskTypes.article2' as any),++ };++ return taskTypeNames[type] || type;++ };++++ // 格式化时间(相对时间,如"3小时前")++ const formatTime = (timeString: string) => {++ const date = new Date(timeString);++ const now = new Date();++ const diff = now.getTime() - date.getTime();++ const minutes = Math.floor(diff / (1000 * 60));++ const hours = Math.floor(diff / (1000 * 60 * 60));++ const days = Math.floor(diff / (1000 * 60 * 60 * 24));++++ if (minutes < 1) return t('time.justNow' as any);++ if (minutes < 60) return t('time.minutesAgo' as any, { minutes });++ if (hours < 24) return t('time.hoursAgo' as any, { hours });++ if (days < 7) return t('time.daysAgo' as any, { days });++ return date.toLocaleDateString();++ };++++ // 格式化绝对时间(显示具体日期时间)++ const formatAbsoluteTime = (timeString: string) => {++ const date = new Date(timeString);++ const now = new Date();++ const diff = date.getTime() - now.getTime();++++ // 如果是未来时间,显示剩余时间++ if (diff > 0) {++ const minutes = Math.floor(diff / (1000 * 60));++ const hours = Math.floor(diff / (1000 * 60 * 60));++ const days = Math.floor(diff / (1000 * 60 * 60 * 24));++++ if (minutes < 60) return `${minutes}分钟后`;++ if (hours < 24) return `${hours}小时后`;++ if (days < 7) return `${days}天后` ;++ }++++ // 显示具体日期时间++ return date.toLocaleString('zh-CN', {++ year: 'numeric',++ month: '2-digit',++ day: '2-digit',++ hour: '2-digit',++ minute: '2-digit'++ });++ };++++ // 获取任务状态标签++ const getTaskStatusTag = (status: string) => {++ const statusMap: Record<string, { color: string; text: string }> = {++ 'pending': { color: 'green', text: '已完成' }, // pending 是已完成++ 'doing': { color: 'orange', text: '待完成' }, // doing 是待完成++ 'accepted': { color: 'blue', text: t('taskStatus.accepted' as any) },++ 'completed': { color: 'green', text: t('taskStatus.completed' as any) },++ 'rejected': { color: 'red', text: t('taskStatus.rejected' as any) },++ };++ return statusMap[status] || { color: 'default', text: status };++ };++++ // 根据accountId获取账号信息++ const getAccountById = (accountId: string): SocialAccount | null => {++ return accountList.find(account => account.id === accountId) || null;++ };++++ // 获取符合条件的账号++ const getAvailableAccounts = (accountTypes: string[]): SocialAccount[] => {++ if (!accountTypes || accountTypes.length === 0) {++ return accountList;++ }++ return accountList.filter(account => accountTypes.includes(account.type));++ };++++ // 处理任务操作(接受任务)++ const handleTaskAction = (task: any) => {++ // 首先检查任务支持的所有平台是否都需要App操作++ const taskPlatforms = task.accountTypes || [];++ const appRequiredPlatforms = getTasksRequiringApp(taskPlatforms);++++ // 如果所有平台都需要App操作,直接显示下载App提示++ if (appRequiredPlatforms.length > 0 && appRequiredPlatforms.length === taskPlatforms.length) {++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 如果任务指定了账号,使用指定账号的逻辑++ if (task.accountId) {++ const publishAccount = getAccountById(task.accountId);++ if (publishAccount) {++ // 检查发布账号的平台是否需要App操作++ const appRequiredPlatforms = getTasksRequiringApp([publishAccount.type]);++++ if (appRequiredPlatforms.length > 0) {++ // 有需要App操作的平台,显示第一个平台的下载提示++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 直接使用指定账号接受任务++ handleAcceptTaskFromDetail(task, publishAccount);++ return;++ }++ }++++ // 如果没有指定账号,需要用户选择账号++ const availableAccounts = getAvailableAccounts(task.accountTypes || []);++++ if (availableAccounts.length === 0) {++ // 没有符合条件的账号,跳转到账户界面并弹出授权界面++ setRequiredAccountTypes(task.accountTypes || []);++ setTaskDetailModalVisible(false); // 关闭任务详情弹窗++ // 关闭消息通知弹窗++ message.info(t('accountSelect.redirectingToAccounts' as any));++++ // 构建跳转URL,包含需要的平台类型参数++ const accountTypes = task.accountTypes || [];++ const platformParam = accountTypes.length > 0 ? accountTypes[0] : undefined;++ const accountsUrl = platformParam++ ? `/${lng}/accounts?platform=${platformParam}`++ : `/${lng}/accounts`;++++ router.push(accountsUrl); // 跳转到账户界面并自动打开添加账号弹窗++ return;++ }++++ if (availableAccounts.length === 1) {++ // 只有一个符合条件的账号,直接使用++ const account = availableAccounts[0];++++ // 检查是否需要App操作++ const appRequiredPlatforms = getTasksRequiringApp([account.type]);++ if (appRequiredPlatforms.length > 0) {++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 直接使用这个账号接受任务++ handleAcceptTaskFromDetail(task, account);++ return;++ }++++ // 多个符合条件的账号,显示选择弹窗++ setAvailableAccounts(availableAccounts);++ setAccountSelectVisible(true);++ };++++ // 处理账号选择++ const handleAccountSelect = (account: SocialAccount) => {++ setSelectedAccount(account);++ setAccountSelectVisible(false);++++ // 检查是否需要App操作++ const appRequiredPlatforms = getTasksRequiringApp([account.type]);++ if (appRequiredPlatforms.length > 0) {++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 使用选择的账号接受任务++ if (taskDetail) {++ handleAcceptTaskFromDetail(taskDetail, account);++ }++ };++++ // 检查是否有新添加的符合条件账号++ const checkForNewAccounts = () => {++ if (requiredAccountTypes.length > 0 && taskDetail) {++ const newAvailableAccounts = getAvailableAccounts(requiredAccountTypes);++++ if (newAvailableAccounts.length > 0) {++ // 有新账号了,清除需求状态++ setRequiredAccountTypes([]);++++ if (newAvailableAccounts.length === 1) {++ // 只有一个新账号,直接使用++ const account = newAvailableAccounts[0];++++ // 检查是否需要App操作++ const appRequiredPlatforms = getTasksRequiringApp([account.type]);++ if (appRequiredPlatforms.length > 0) {++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 直接使用这个账号接受任务++ handleAcceptTaskFromDetail(taskDetail, account);++ } else {++ // 多个新账号,显示选择弹窗++ setAvailableAccounts(newAvailableAccounts);++ setAccountSelectVisible(true);++ }++ }++ }++ };++++ // 获取平台图标++ const getPlatformIcon = (accountType: string) => {++ const platInfo = AccountPlatInfoMap.get(accountType as PlatType);++ return platInfo?.icon || '';++ };++++++ // 查看任务详情++ const handleViewTaskDetail = async (opportunityId: string) => {++ try {++ setTaskDetailLoading(true);++ const response: any = await getTaskDetail(opportunityId);++ if (response && response.data && response.code === 0) {++ setTaskDetail(response.data);++ setTaskDetailModalVisible(true);++ } else {++ message.error(t('messages.getTaskDetailFailed'));++ }++ } catch (error) {++ message.error(t('messages.getTaskDetailFailed'));++ console.error("获取任务详情失败:", error);++ } finally {++ setTaskDetailLoading(false);++ }++ };++++ // 查看已接受任务详情++ const handleViewAcceptedTaskDetail = async (taskId: string) => {++ try {++ setAcceptedTaskDetailLoading(true);++ setCurrentTaskId(taskId);++ const response: any = await apiGetUserTaskDetail(taskId);++ if (response && response.data && response.code === 0) {++ setAcceptedTaskDetail(response.data);++ setAcceptedTaskDetailModalVisible(true);++ } else {++ message.error(t('messages.getTaskDetailFailed'));++ }++ } catch (error) {++ message.error(t('messages.getTaskDetailFailed'));++ console.error("获取任务详情失败:", error);++ } finally {++ setAcceptedTaskDetailLoading(false);++ }++ };++++ // 从任务详情接受任务++ const handleAcceptTaskFromDetail = async (task: any, account?: SocialAccount) => {++++ if (!task) return;++++ // 关闭详情弹窗++ setTaskDetailModalVisible(false);++++ // 显示进度弹窗++ setTaskProgressVisible(true);++ setTaskProgress({++ currentStep: 0,++ steps: [++ { title: '正在接受任务...', status: 'processing' },++ { title: '正在发布任务...', status: 'wait' },++ { title: '正在提交任务...', status: 'wait' },++ { title: '任务完成', status: 'wait' }++ ]++ });++++ try {++ // 第一步:接受任务++ const response: any = await acceptTask(task.id, task.opportunityId, account?.id);++ if (response && response.code === 0 && response.data.id) {++ // 更新进度:第一步完成,开始第二步++ setTaskProgress(prev => ({++ ...prev,++ currentStep: 1,++ steps: [++ { title: t('acceptingTask' as any), status: 'finish' },++ { title: t('publishingTask' as any), status: 'processing' },++ { title: t('submittingTask' as any), status: 'wait' },++ { title: t('taskCompleted' as any), status: 'wait' }++ ]++ }));++++ // 第二步:发布任务++ const publishAccount = account || getAccountById(task.accountId);++ if (publishAccount) {++ // 处理素材链接,确保使用完整链接++ const processedMaterials = task.materials?.map((material: any) => ({++ ...material,++ coverUrl: material.coverUrl ? getOssUrl(material.coverUrl) : undefined,++ mediaList: material.mediaList?.map((media: any) => ({++ ...media,++ url: getOssUrl(media.url),++ coverUrl: media.coverUrl ? getOssUrl(media.coverUrl) : undefined++ }))++ }));++++++++ const publishData = {++ flowId: publishAccount.uid, // 使用账号的uid作为flowId++ accountType: publishAccount.type,++ accountId: publishAccount.id,++ title: task.title,++ desc: task.description,++ type: task.type as any, // 转换为PubType++ // 处理素材数据++ videoUrl: processedMaterials?.[0]?.mediaList?.[0]?.type === 'video' ?++ getOssUrl(processedMaterials[0].mediaList[0].url) : undefined,++ coverUrl: processedMaterials?.[0]?.coverUrl,++ imgUrlList: processedMaterials?.flatMap((material: any) =>++ material.mediaList?.filter((media: any) => media.type !== 'video')++ .map((media: any) => getOssUrl(media.url)) || []++ ),++ option: {},++ topics: [],++ publishTime: getUtcDays(getDays().add(6, "minute")).format(),++ userTaskId: response.data.id,++ taskMaterialId: task.materialIds[0]++ };++++ const publishResponse: any = await apiCreatePublish(publishData);++++++ console.log("publishResponse", publishResponse);++ // return false;++++ if (publishResponse && publishResponse.code === 0) {++ // 更新进度:第二步完成,开始第三步++ setTaskProgress(prev => ({++ ...prev,++ currentStep: 2,++ steps: [++ { title: t('acceptingTask' as any), status: 'finish' },++ { title: t('publishingTask' as any), status: 'finish' },++ { title: t('submittingTask' as any), status: 'processing' },++ { title: t('taskCompleted' as any), status: 'wait' }++ ]++ }));++++ // 第三步:提交任务++ const userTaskId = response.data.id;++ const submitResponse: any = await submitTask(userTaskId, task.materialIds[0]);++++ if (submitResponse && submitResponse.code === 0) {++ // 更新进度:第三步完成,开始第四步++ setTaskProgress(prev => ({++ ...prev,++ currentStep: 3,++ steps: [++ { title: t('acceptingTask' as any), status: 'finish' },++ { title: t('publishingTask' as any), status: 'finish' },++ { title: t('submittingTask' as any), status: 'finish' },++ { title: t('taskCompleted' as any), status: 'finish' }++ ]++ }));++++ // 延迟1秒后关闭进度窗口并刷新任务列表++ setTimeout(() => {++ setTaskProgressVisible(false);++ setTaskDetail(null);++ fetchPendingTasks();++ fetchAcceptedTasks();++ setActiveTab("accepted");++ }, 1000);++ } else {++ throw new Error('提交任务失败');++ }++ } else {++ throw new Error('发布任务失败');++ }++ } else {++ throw new Error('找不到发布账号信息');++ }++ } else {++ throw new Error('接受任务失败');++ }++ } catch (error) {++ console.error("任务处理失败:", error);++ message.error("任务处理失败");++ setTaskProgressVisible(false);++ }++ };++++ // 已经接受没有完成的任务 去完成++ const handleCompleteTask = async () => {++ if (!currentTaskId) return;++++ // 显示进度弹窗++ setTaskProgressVisible(true);++ setTaskProgress({++ currentStep: 0,++ steps: [++ { title: t('completeTask' as any), status: 'processing' },++ { title: t('publishingTask' as any), status: 'wait' },++ { title: t('submittingTask' as any), status: 'wait' },++ { title: t('taskCompleted' as any), status: 'wait' }++ ]++ });++++ try {++ // 更新进度:第一步完成,开始第二步++ setTaskProgress(prev => ({++ ...prev,++ currentStep: 1,++ steps: [++ { title: '正在完成任务...', status: 'finish' },++ { title: '正在发布任务...', status: 'processing' },++ { title: '正在提交任务...', status: 'wait' },++ { title: '任务完成', status: 'wait' }++ ]++ }));++++ // 第二步:发布任务++ const publishAccount = getAccountById(acceptedTaskDetail.accountId);++ if (publishAccount) {++ // 处理素材链接,确保使用完整链接++ const processedMaterials = acceptedTaskDetail.task?.materials?.map((material: any) => ({++ ...material,++ coverUrl: material.coverUrl ? getOssUrl(material.coverUrl) : undefined,++ mediaList: material.mediaList?.map((media: any) => ({++ ...media,++ url: getOssUrl(media.url),++ coverUrl: media.coverUrl ? getOssUrl(media.coverUrl) : undefined++ }))++ }));++++ const publishData = {++ flowId: publishAccount.uid, // 使用账号的uid作为flowId++ accountType: publishAccount.type,++ accountId: publishAccount.id,++ title: acceptedTaskDetail.task?.title,++ desc: acceptedTaskDetail.task?.description,++ type: acceptedTaskDetail.task?.type as any, // 转换为PubType++ // 处理素材数据++ videoUrl: processedMaterials?.[0]?.mediaList?.[0]?.type === 'video' ?++ getOssUrl(processedMaterials[0].mediaList[0].url) : undefined,++ coverUrl: processedMaterials?.[0]?.coverUrl,++ imgUrlList: processedMaterials?.flatMap((material: any) =>++ material.mediaList?.filter((media: any) => media.type !== 'video')++ .map((media: any) => getOssUrl(media.url)) || []++ ),++ option: {},++ topics: [],++ publishTime: getUtcDays(getDays().add(6, "minute")).format(),++ userTaskId: acceptedTaskDetail.task?.id,++ taskMaterialId: acceptedTaskDetail.task?.materialIds[0]++++ };++++ const publishResponse: any = await apiCreatePublish(publishData);++ if (publishResponse && publishResponse.code === 0) {++ // 更新进度:第二步完成,开始第三步++ setTaskProgress(prev => ({++ ...prev,++ currentStep: 2,++ steps: [++ { title: '正在完成任务...', status: 'finish' },++ { title: '正在发布任务...', status: 'finish' },++ { title: '正在提交任务...', status: 'processing' },++ { title: '任务完成', status: 'wait' }++ ]++ }));++++ // 第三步:提交任务++ const userTaskId = acceptedTaskDetail.id;++ const submitResponse: any = await submitTask(userTaskId, acceptedTaskDetail.task?.materialIds[0]);++++ if (submitResponse && submitResponse.code === 0) {++ // 更新进度:第三步完成,开始第四步++ setTaskProgress(prev => ({++ ...prev,++ currentStep: 3,++ steps: [++ { title: '正在完成任务...', status: 'finish' },++ { title: '正在发布任务...', status: 'finish' },++ { title: '正在提交任务...', status: 'finish' },++ { title: '任务完成', status: 'finish' }++ ]++ }));++++ // 延迟1秒后关闭进度窗口并刷新任务列表++ setTimeout(() => {++ setTaskProgressVisible(false);++ setAcceptedTaskDetailModalVisible(false);++ setAcceptedTaskDetail(null);++ setCurrentTaskId(null);++ fetchAcceptedTasks();++ }, 1000);++ } else {++ throw new Error('提交任务失败');++ }++ } else {++ throw new Error('发布任务失败');++ }++ } else {++ throw new Error('找不到发布账号信息');++ }++++ } catch (error) {++ console.error("任务处理失败:", error);++ message.error("任务处理失败");++ setTaskProgressVisible(false);++ }++ };++++ // 处理待接受任务分页变化++ const handlePendingPageChange = (page: number, pageSize?: number) => {++ fetchPendingTasks(page, pageSize || pendingPagination.pageSize);++ };++++ // 处理已接受任务分页变化++ const handleAcceptedPageChange = (page: number, pageSize?: number) => {++ fetchAcceptedTasks(page, pageSize || acceptedPagination.pageSize);++ };++++ // 处理媒体点击++ const handleMediaClick = (media: any, materialTitle?: string) => {++ if (media.type === 'video') {++ setPreviewMedia({++ type: 'video',++ url: getOssUrl(media.url),++ title: materialTitle++ });++ } else {++ setPreviewMedia({++ type: 'image',++ url: getOssUrl(media.url),++ title: materialTitle++ });++ }++ setMediaPreviewVisible(true);++ };++++ // 处理视频封面点击++ const handleVideoCoverClick = (media: any, materialTitle?: string) => {++ setPreviewMedia({++ type: 'video',++ url: getOssUrl(media.url),++ title: materialTitle++ });++ setMediaPreviewVisible(true);++ };++++ // 关闭媒体预览++ const handleCloseMediaPreview = () => {++ // 停止视频播放++ if (videoRef) {++ videoRef.pause();++ videoRef.currentTime = 0;++ }++ setMediaPreviewVisible(false);++ setPreviewMedia(null);++ setVideoRef(null);++ };++++ useEffect(() => {++ if (token) {++ fetchPendingTasks();++ fetchAcceptedTasks();++ fetchAccountList();++ }++ }, [token]);++++ // 监听账号列表变化,检查是否有新添加的符合条件账号++ useEffect(() => {++ if (accountList.length > 0) {++ checkForNewAccounts();++ }++ }, [accountList, requiredAccountTypes, taskDetail]);++++ return (++ <div className={styles.taskPage}>++ {/* <div className={styles.header}>++ <h1>任务中心</h1>++ <p>接受任务,完成任务,获得奖励</p>++ </div> */}++++ <Tabs++ activeKey={activeTab}++ onChange={setActiveTab}++ className={styles.tabs}++ >++ <TabPane++ tab={++ <span>++ <ClockCircleOutlined />++ {t('pendingTasks')}++ </span>++ }++ key="pending"++ >++ <Spin spinning={loading}>++ {pendingTasks.length > 0 ? (++ <div>++ <div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(350px, 1fr))', gap: '16px', marginBottom: '16px' }}>++ {pendingTasks.map((task: any) => {++ const publishAccount = getAccountById(task.accountId);++ return (++ <Card++ key={task.id}++ className={styles.taskCard}++ style={{ marginBottom: 0 }}++ >++ <div className={styles.taskHeader}>++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>++ {/* 显示多个平台图标 */}++ <div style={{ display: 'flex', gap: '4px' }}>++ {(task.accountTypes && task.accountTypes.length > 0 ? task.accountTypes : [task.accountType]).map((platformType: string, index: number) => (++ <img++ key={platformType}++ src={getPlatformIcon(platformType)}++ alt="platform"++ style={{ width: '20px', height: '20px' }}++ />++ ))}++ </div>++ <h3 style={{ margin: 0, fontSize: '16px' }}>++ {task.accountTypes && task.accountTypes.length > 0++ ? `${task.accountTypes.map((type: string) => getPlatformName(type)).join('、')}任务`++ : `${getPlatformName(task.accountType)}任务`++ }++ </h3>++ </div>++ <Tag color="orange">{t('taskStatus.pending' as any)}</Tag>++ </div>++++ <div className={styles.taskContent}>++ <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '12px' }}>++ <span><strong>{t('taskInfo.publishTime' as any)}:</strong>{formatTime(task.createdAt)}</span>++ <span><strong>{t('taskInfo.endTime' as any)}:</strong>{formatAbsoluteTime(task.expiredAt)}</span>++ </div>++++ <div style={{ marginBottom: '12px' }}>++ <strong>{t('taskInfo.reward' as any)}:</strong>++ <span style={{ color: '#f50', fontWeight: 'bold' }}>¥ {task.reward/100}</span>++ </div>++++++ {/* 发布账号信息 */}++ {publishAccount && (++ <div style={{++ display: 'flex',++ alignItems: 'center',++ gap: '8px',++ padding: '8px',++ backgroundColor: '#f8f9fa',++ borderRadius: '6px',++ marginBottom: '12px'++ }}>++ <img++ src={publishAccount.avatar ? getOssUrl(publishAccount.avatar) : '/default-avatar.png'}++ alt="账号头像"++ style={{++ width: '32px',++ height: '32px',++ borderRadius: '50%',++ objectFit: 'cover'++ }}++ onError={(e) => {++ e.currentTarget.src = '/default-avatar.png';++ }}++ />++ <div>++ <div style={{ fontWeight: '500', fontSize: '14px' }}>++ {publishAccount.nickname}++ </div>++ <div style={{ fontSize: '12px', color: '#666' }}>++ {getPlatformName(publishAccount.type)}++ </div>++ </div>++ </div>++ )}++ </div>++++ <div className={styles.taskActions}>++ <Button++ type="primary"++ onClick={() => handleViewTaskDetail(task.id)}++ icon={<EyeOutlined />}++ style={{ width: '100%' }}++ >++ {t('viewDetails')}++ </Button>++ </div>++ </Card>++ );++ })}++ </div>++ <div style={{ textAlign: 'center', marginTop: '16px' }}>++ <Pagination++ current={pendingPagination.current}++ pageSize={pendingPagination.pageSize}++ total={pendingPagination.total}++ onChange={handlePendingPageChange}++ onShowSizeChange={handlePendingPageChange}++ showSizeChanger++ showQuickJumper++ showTotal={(total, range) => t('messages.pageInfo' as any, { start: range[0], end: range[1], total })}++ pageSizeOptions={['10', '20', '50', '100']}++ />++ </div>++ </div>++ ) : (++ <Empty description={t('messages.noPendingTasks')} />++ )}++ </Spin>++ </TabPane>++++ <TabPane++ tab={++ <span>++ <PlayCircleOutlined />++ {t('acceptedTasks')}++ </span>++ }++ key="accepted"++ >++ <Spin spinning={loading}>++ {acceptedTasks.length > 0 ? (++ <div>++ <div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(350px, 1fr))', gap: '16px', marginBottom: '16px' }}>++ {acceptedTasks.map((task: any) => {++ const publishAccount = getAccountById(task.accountId);++ return (++ <Card++ key={task.id}++ className={styles.taskCard}++ style={{ marginBottom: 0 }}++ >++ <div className={styles.taskHeader}>++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>++ {/* 显示多个平台图标 */}++ <div style={{ display: 'flex', gap: '4px' }}>++ {(task.accountTypes && task.accountTypes.length > 0 ? task.accountTypes : [task.accountType]).map((platformType: string, index: number) => (++ <img++ key={platformType}++ src={getPlatformIcon(platformType)}++ alt="platform"++ style={{ width: '20px', height: '20px' }}++ />++ ))}++ </div>++ <h3 style={{ margin: 0, fontSize: '16px' }}>++ {task.accountTypes && task.accountTypes.length > 0++ ? `${task.accountTypes.map((type: string) => getPlatformName(type)).join('、')}任务`++ : `${getPlatformName(task.accountType)}任务`++ }++ </h3>++ </div>++ <Tag color={getTaskStatusTag(task.status).color}>++ {getTaskStatusTag(task.status).text}++ </Tag>++ </div>++++ <div className={styles.taskContent}>++ <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '12px' }}>++ <span><strong>{t('taskInfo.acceptTime' as any)}:</strong>{formatTime(task.createdAt)}</span>++ <span> </span>++ </div>++++ <div style={{ marginBottom: '12px' }}>++ <strong>{t('taskInfo.reward' as any)}:</strong>++ <span style={{ color: '#f50', fontWeight: 'bold' }}>¥ {task.reward/100}</span>++ </div>++++ {/* 发布账号信息 */}++ {publishAccount && (++ <div style={{++ display: 'flex',++ alignItems: 'center',++ gap: '8px',++ padding: '8px',++ backgroundColor: '#f8f9fa',++ borderRadius: '6px',++ marginBottom: '12px'++ }}>++ <img++ src={publishAccount.avatar ? getOssUrl(publishAccount.avatar) : '/default-avatar.png'}++ alt="账号头像"++ style={{++ width: '32px',++ height: '32px',++ borderRadius: '50%',++ objectFit: 'cover'++ }}++ onError={(e) => {++ e.currentTarget.src = '/default-avatar.png';++ }}++ />++ <div>++ <div style={{ fontWeight: '500', fontSize: '14px' }}>++ {publishAccount.nickname}++ </div>++ <div style={{ fontSize: '12px', color: '#666' }}>++ {getPlatformName(publishAccount.type)}++ </div>++ </div>++ </div>++ )}++ </div>++++ <div className={styles.taskActions}>++ <Button++ type="primary"++ onClick={() => handleViewAcceptedTaskDetail(task.id)}++ icon={<EyeOutlined />}++ style={{ width: '100%' }}++ >++ {t('viewDetails')}++ </Button>++ </div>++ </Card>++ );++ })}++ </div>++ <div style={{ textAlign: 'center', marginTop: '16px' }}>++ <Pagination++ current={acceptedPagination.current}++ pageSize={acceptedPagination.pageSize}++ total={acceptedPagination.total}++ onChange={handleAcceptedPageChange}++ onShowSizeChange={handleAcceptedPageChange}++ showSizeChanger++ showQuickJumper++ showTotal={(total, range) => t('messages.pageInfo' as any, { start: range[0], end: range[1], total })}++ pageSizeOptions={['10', '20', '50', '100']}++ />++ </div>++ </div>++ ) : (++ <Empty description={t('messages.noAcceptedTasks')} />++ )}++ </Spin>++ </TabPane>++ </Tabs>++++ {/* 提交任务弹窗 */}++ <Modal++ title={t('modal.submitTask')}++ open={submitModalVisible}++ onCancel={() => setSubmitModalVisible(false)}++ confirmLoading={submittingTaskId !== null}++ okText={t('modal.confirmSubmit')}++ cancelText={t('modal.cancel')}++ >++ <div style={{ marginBottom: '16px' }}>++ <label>{t('modal.submitLink')}:</label>++ <Input++ value={submissionUrl}++ onChange={(e) => setSubmissionUrl(e.target.value)}++ placeholder={t('modal.submitLinkPlaceholder')}++ style={{ marginTop: '8px' }}++ />++ </div>++ <p style={{ color: '#666', fontSize: '12px' }}>++ {t('modal.submitTip')}++ </p>++ </Modal>++++ {/* 任务详情弹窗 */}++ <Modal++ title={t('taskDetails')}++ open={taskDetailModalVisible}++ onCancel={() => {++ setTaskDetailModalVisible(false);++ setTaskDetail(null);++ }}++ footer={[++++ ]}++ width={800}++ zIndex={2000}++ styles={{++ header: {++ borderBottom: '1px solid #f0f0f0',++ paddingBottom: '16px'++ },++ body: {++ padding: '24px'++ }++ }}++ >++ <Spin spinning={taskDetailLoading}>++ {taskDetail ? (++ <div>++ {/* 视频发布风格布局 */}++ <div style={{++ display: 'flex',++ gap: '24px',++ marginBottom: '24px'++ }}>++ {/* 左侧:视频/媒体内容 */}++ <div style={{ flex: '0 0 400px' }}>++ {taskDetail.materials && taskDetail.materials.length > 0 && (++ <div style={{++ border: '1px solid #e8e8e8',++ borderRadius: '12px',++ overflow: 'hidden',++ backgroundColor: '#000'++ }}>++ {taskDetail.materials[0].mediaList && taskDetail.materials[0].mediaList.length > 0 && (++ <div style={{ position: 'relative', cursor: 'pointer' }}>++ {taskDetail.materials[0].mediaList[0].type === 'video' ? (++ <div++ style={{++ position: 'relative',++ overflow: 'hidden'++ }}++ onClick={() => handleVideoCoverClick(taskDetail.materials[0].mediaList[0], taskDetail.title)}++ >++ {/* 视频封面图片 */}++ <img++ src={taskDetail.materials[0].coverUrl ? getOssUrl(taskDetail.materials[0].coverUrl) : getOssUrl(taskDetail.materials[0].mediaList[0].url)}++ alt="video cover"++ style={{++ width: '100%',++ height: 'auto',++ display: 'block'++ }}++ />++ {/* 播放按钮 */}++ <div style={{++ position: 'absolute',++ top: '50%',++ left: '50%',++ transform: 'translate(-50%, -50%)',++ color: 'white',++ fontSize: '24px',++ background: 'rgba(0,0,0,0.7)',++ borderRadius: '50%',++ width: '60px',++ height: '60px',++ display: 'flex',++ alignItems: 'center',++ justifyContent: 'center',++ cursor: 'pointer',++ transition: 'all 0.3s ease'++ }}>++ ▶++ </div>++ </div>++ ) : (++ <img++ src={getOssUrl(taskDetail.materials[0].mediaList[0].url)}++ alt="media"++ style={{++ width: '100%',++ height: 'auto',++ display: 'block'++ }}++ onClick={() => handleMediaClick(taskDetail.materials[0].mediaList[0], taskDetail.title)}++ />++ )}++ </div>++ )}++ </div>++ )}++ </div>++++ {/* 右侧:标题和描述 */}++ <div style={{ flex: '1', minWidth: '300px' }}>++ {/* 标题区域 */}++ <div style={{ marginBottom: '16px' }}>++ <h2 style={{++ margin: '0 0 8px 0',++ fontSize: '20px',++ fontWeight: '600',++ lineHeight: '1.4',++ color: '#1a1a1a'++ }}>++ {taskDetail.title}++ </h2>++++++ {/* 发布账号信息 */}++ {taskDetail.accountId && (() => {++ const publishAccount = getAccountById(taskDetail.accountId);++ return publishAccount ? (++ <div style={{++ display: 'flex',++ alignItems: 'center',++ gap: '8px',++ marginBottom: '12px'++ }}>++ <img++ src={publishAccount.avatar ? getOssUrl(publishAccount.avatar) : '/default-avatar.png'}++ alt="账号头像"++ style={{++ width: '32px',++ height: '32px',++ borderRadius: '50%',++ objectFit: 'cover'++ }}++ onError={(e) => {++ e.currentTarget.src = '/default-avatar.png';++ }}++ />++ <div>++ <div style={{++ fontSize: '14px',++ fontWeight: '500',++ color: '#1a1a1a'++ }}>++ {publishAccount.nickname}++ </div>++ <div style={{++ fontSize: '12px',++ color: '#666'++ }}>++ {getPlatformName(publishAccount.type)}++ </div>++ </div>++ </div>++ ) : null;++ })()}++ </div>++++ {/* 描述区域 */}++ <div style={{++ marginBottom: '16px',++ padding: '16px',++ backgroundColor: '#f8f9fa',++ borderRadius: '8px',++ border: '1px solid #e9ecef'++ }}>++ <div style={{++ fontSize: '14px',++ lineHeight: '1.6',++ color: '#495057'++ }}>++ <div dangerouslySetInnerHTML={{ __html: taskDetail.description }} />++ </div>++ </div>++++ {/* 任务信息卡片 */}++ <div style={{++ display: 'flex',++ gap: '12px',++ marginBottom: '16px'++ }}>++ <div style={{++ flex: '1',++ padding: '12px',++ backgroundColor: '#fff3cd',++ border: '1px solid #ffeaa7',++ borderRadius: '8px',++ textAlign: 'center'++ }}>++ <div style={{++ fontSize: '12px',++ color: '#856404',++ marginBottom: '4px'++ }}>++ {t('taskInfo.reward' as any)}++ </div>++ <div style={{++ fontSize: '18px',++ fontWeight: 'bold',++ color: '#d63031'++ }}>++ ¥ {taskDetail.reward/100}++ </div>++ </div>++++ <div style={{++ flex: '1',++ padding: '12px',++ backgroundColor: '#d1ecf1',++ border: '1px solid #bee5eb',++ borderRadius: '8px',++ textAlign: 'center'++ }}>++ <div style={{++ fontSize: '12px',++ color: '#0c5460',++ marginBottom: '4px'++ }}>++ {t('taskInfo.type' as any)}++ </div>++ <div style={{++ fontSize: '14px',++ fontWeight: '500',++ color: '#0c5460'++ }}>++ {getTaskTypeName(taskDetail.type)}++ </div>++ </div>++ </div>++++ {/* 支持的平台类型 */}++ {taskDetail.accountTypes && taskDetail.accountTypes.length > 0 && (++ <div style={{++ display: 'flex',++ alignItems: 'center',++ gap: '8px',++ marginBottom: '12px'++ }}>++ <span style={{ fontSize: '14px', color: '#666' }}>支持平台:</span>++ <div style={{ display: 'flex', gap: '8px' }}>++ {taskDetail.accountTypes.map((platformType: string) => (++ <img++ key={platformType}++ src={getPlatformIcon(platformType)}++ alt={platformType}++ style={{ width: '25px', height: '25px' }}++ />++ ))}++ </div>++ </div>++ )}++ </div>++ </div>++++ {/* 底部状态栏 */}++ <div style={{++ display: 'flex',++ justifyContent: 'space-between',++ alignItems: 'center',++ padding: '16px 0',++ borderTop: '1px solid #e8e8e8',++ marginTop: '16px'++ }}>++ <div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>++ <Tag++ color={taskDetail.status === 'active' ? 'green' : 'red'}++ style={{++ fontSize: '12px',++ padding: '4px 8px'++ }}++ >++ {taskDetail.status === 'active' ? t('taskStatus.active' as any) : t('taskStatus.inactive' as any)}++ </Tag>++ <span style={{++ fontSize: '12px',++ color: '#666'++ }}>++ {taskDetail.status === 'active' ? t('messages.taskInProgress' as any) : t('messages.taskEnded' as any)}++ </span>++ </div>++++ <div style={{++ fontSize: '12px',++ color: '#999'++ }}>++ {taskDetail.currentRecruits && taskDetail.maxRecruits && (++ <span>++ {t('messages.acceptedCount' as any, { current: taskDetail.currentRecruits, max: taskDetail.maxRecruits })}++ </span>++ )}++ </div>++ </div>++++ {/* 根据任务状态显示不同按钮 */}++ {(() => {++ // 如果是待接受任务,显示接受任务按钮++ if (taskDetail.status === 'active' && taskDetail.currentRecruits < taskDetail.maxRecruits) {++ return (++ <div style={{ textAlign: 'center' }}>++ <Button++ type="primary"++ size="large"++ onClick={() => handleTaskAction(taskDetail)}++ style={{ marginTop: '12px' }}++ >++ {t('acceptTask')}++ </Button>++ </div>++ );++ }++++ return null;++ })()}++ </div>++ ) : !taskDetailLoading && (++ <div style={{ textAlign: 'center', color: '#999' }}>++ {t('messages.noTaskDetails')}++ </div>++ )}++ </Spin>++ </Modal>++++ {/* 已接受任务详情弹窗 */}++ <Modal++ title={t('taskDetails')}++ open={acceptedTaskDetailModalVisible}++ onCancel={() => {++ setAcceptedTaskDetailModalVisible(false);++ setAcceptedTaskDetail(null);++ }}++ footer={[++++ ]}++ width={800}++ zIndex={2000}++ styles={{++ header: {++ borderBottom: '1px solid #f0f0f0',++ paddingBottom: '16px'++ },++ body: {++ padding: '24px'++ }++ }}++ >++ <Spin spinning={acceptedTaskDetailLoading}>++ {acceptedTaskDetail ? (++ <div>++ {/* 视频发布风格布局 */}++ <div style={{++ display: 'flex',++ gap: '24px',++ marginBottom: '24px'++ }}>++ {/* 左侧:视频/媒体内容 */}++ <div style={{ flex: '0 0 400px' }}>++ {acceptedTaskDetail.task?.materials && acceptedTaskDetail.task.materials.length > 0 && (++ <div style={{++ border: '1px solid #e8e8e8',++ borderRadius: '12px',++ overflow: 'hidden',++ backgroundColor: '#000'++ }}>++ {acceptedTaskDetail.task.materials[0].mediaList && acceptedTaskDetail.task.materials[0].mediaList.length > 0 && (++ <div style={{ position: 'relative', cursor: 'pointer' }}>++ {acceptedTaskDetail.task.materials[0].mediaList[0].type === 'video' ? (++ <div++ style={{++ position: 'relative',++ overflow: 'hidden'++ }}++ onClick={() => handleVideoCoverClick(acceptedTaskDetail.task.materials[0].mediaList[0], acceptedTaskDetail.task.title)}++ >++ {/* 视频封面图片 */}++ <img++ src={acceptedTaskDetail.task.materials[0].coverUrl ? getOssUrl(acceptedTaskDetail.task.materials[0].coverUrl) : getOssUrl(acceptedTaskDetail.task.materials[0].mediaList[0].url)}++ alt="video cover"++ style={{++ width: '100%',++ height: 'auto',++ display: 'block'++ }}++ />++ {/* 播放按钮 */}++ <div style={{++ position: 'absolute',++ top: '50%',++ left: '50%',++ transform: 'translate(-50%, -50%)',++ color: 'white',++ fontSize: '24px',++ background: 'rgba(0,0,0,0.7)',++ borderRadius: '50%',++ width: '60px',++ height: '60px',++ display: 'flex',++ alignItems: 'center',++ justifyContent: 'center',++ cursor: 'pointer',++ transition: 'all 0.3s ease'++ }}>++ ▶++ </div>++ </div>++ ) : (++ <img++ src={getOssUrl(acceptedTaskDetail.task.materials[0].mediaList[0].url)}++ alt="media"++ style={{++ width: '100%',++ height: 'auto',++ display: 'block'++ }}++ onClick={() => handleMediaClick(acceptedTaskDetail.task.materials[0].mediaList[0], acceptedTaskDetail.task.title)}++ />++ )}++ </div>++ )}++ </div>++ )}++ </div>++++ {/* 右侧:标题和描述 */}++ <div style={{ flex: '1', minWidth: '300px' }}>++ {/* 标题区域 */}++ <div style={{ marginBottom: '16px' }}>++ <h2 style={{++ margin: '0 0 8px 0',++ fontSize: '20px',++ fontWeight: '600',++ lineHeight: '1.4',++ color: '#1a1a1a'++ }}>++ {acceptedTaskDetail.task?.title}++ </h2>++++ {/* 发布账号信息 */}++ {acceptedTaskDetail.accountId && (() => {++ const publishAccount = getAccountById(acceptedTaskDetail.accountId);++ return publishAccount ? (++ <div style={{++ display: 'flex',++ alignItems: 'center',++ gap: '8px',++ marginBottom: '12px'++ }}>++ <img++ src={publishAccount.avatar ? getOssUrl(publishAccount.avatar) : '/default-avatar.png'}++ alt="账号头像"++ style={{++ width: '32px',++ height: '32px',++ borderRadius: '50%',++ objectFit: 'cover'++ }}++ onError={(e) => {++ e.currentTarget.src = '/default-avatar.png';++ }}++ />++ <div>++ <div style={{++ fontSize: '14px',++ fontWeight: '500',++ color: '#1a1a1a'++ }}>++ {publishAccount.nickname}++ </div>++ <div style={{++ fontSize: '12px',++ color: '#666'++ }}>++ {getPlatformName(publishAccount.type)}++ </div>++ </div>++ </div>++ ) : null;++ })()}++ </div>++++ {/* 描述区域 */}++ <div style={{++ marginBottom: '16px',++ padding: '16px',++ backgroundColor: '#f8f9fa',++ borderRadius: '8px',++ border: '1px solid #e9ecef'++ }}>++ <div style={{++ fontSize: '14px',++ lineHeight: '1.6',++ color: '#495057'++ }}>++ <div dangerouslySetInnerHTML={{ __html: acceptedTaskDetail.task?.description }} />++ </div>++ </div>++++ {/* 任务信息卡片 */}++ <div style={{++ display: 'flex',++ gap: '12px',++ marginBottom: '16px'++ }}>++ <div style={{++ flex: '1',++ padding: '12px',++ backgroundColor: '#fff3cd',++ border: '1px solid #ffeaa7',++ borderRadius: '8px',++ textAlign: 'center'++ }}>++ <div style={{++ fontSize: '12px',++ color: '#856404',++ marginBottom: '4px'++ }}>++ {t('taskInfo.reward' as any)}++ </div>++ <div style={{++ fontSize: '18px',++ fontWeight: 'bold',++ color: '#d63031'++ }}>++ ¥ {acceptedTaskDetail.reward/100}++ </div>++ </div>++++ <div style={{++ flex: '1',++ padding: '12px',++ backgroundColor: '#d1ecf1',++ border: '1px solid #bee5eb',++ borderRadius: '8px',++ textAlign: 'center'++ }}>++ <div style={{++ fontSize: '12px',++ color: '#0c5460',++ marginBottom: '4px'++ }}>++ {t('taskInfo.type' as any)}++ </div>++ <div style={{++ fontSize: '14px',++ fontWeight: '500',++ color: '#0c5460'++ }}>++ {getTaskTypeName(acceptedTaskDetail.task?.type)}++ </div>++ </div>++ </div>++++ {/* 任务状态信息 */}++ <div style={{++ display: 'flex',++ gap: '12px',++ marginBottom: '16px'++ }}>++ <div style={{++ flex: '1',++ padding: '12px',++ backgroundColor: '#e2e3e5',++ border: '1px solid #d6d8db',++ borderRadius: '8px',++ textAlign: 'center'++ }}>++ <div style={{++ fontSize: '12px',++ color: '#495057',++ marginBottom: '4px'++ }}>++ 接受时间++ </div>++ <div style={{++ fontSize: '12px',++ fontWeight: '500',++ color: '#495057'++ }}>++ {formatTime(acceptedTaskDetail.createdAt)}++ </div>++ </div>++++ <div style={{++ flex: '1',++ padding: '12px',++ backgroundColor: '#e2e3e5',++ border: '1px solid #d6d8db',++ borderRadius: '8px',++ textAlign: 'center'++ }}>++ <div style={{++ fontSize: '12px',++ color: '#495057',++ marginBottom: '4px'++ }}>++ 提交时间++ </div>++ <div style={{++ fontSize: '12px',++ fontWeight: '500',++ color: '#495057'++ }}>++ {acceptedTaskDetail.submissionTime ? formatTime(acceptedTaskDetail.submissionTime) : '未提交'}++ </div>++ </div>++ </div>++ </div>++ </div>++++ {/* 底部状态栏 */}++ <div style={{++ display: 'flex',++ justifyContent: 'space-between',++ alignItems: 'center',++ padding: '16px 0',++ borderTop: '1px solid #e8e8e8',++ marginTop: '16px'++ }}>++ <div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>++ <Tag++ color={getTaskStatusTag(acceptedTaskDetail.status).color}++ style={{++ fontSize: '12px',++ padding: '4px 8px'++ }}++ >++ {getTaskStatusTag(acceptedTaskDetail.status).text}++ </Tag>++ <span style={{++ fontSize: '12px',++ color: '#666'++ }}>++ {acceptedTaskDetail.status === 'doing' ? '任务待完成' :++ acceptedTaskDetail.status === 'pending' ? '任务已完成' :++ '任务状态:' + acceptedTaskDetail.status}++ </span>++ </div>++++ <div style={{++ fontSize: '12px',++ color: '#999'++ }}>++ {acceptedTaskDetail.isFirstTimeSubmission && (++ <span style={{ color: '#52c41a' }}>首次提交</span>++ )}++ </div>++ </div>++++ {/* 根据任务状态显示不同按钮 */}++ {(() => {++ // 如果是已接受任务且状态为doing(待完成),显示完成任务按钮++ if (acceptedTaskDetail.status === 'doing') {++ return (++ <div style={{ textAlign: 'center', marginTop: '16px' }}>++ <Button++ type="primary"++ size="large"++ onClick={handleCompleteTask}++ style={{ marginTop: '12px' }}++ >++ {t('completeTask')}++ </Button>++ </div>++ );++ }++++ return null;++ })()}++ </div>++ ) : !acceptedTaskDetailLoading && (++ <div style={{ textAlign: 'center', color: '#999' }}>++ {t('messages.noTaskDetails')}++ </div>++ )}++ </Spin>++ </Modal>++++ {/* 媒体预览弹窗 */}++ <Modal++ title={previewMedia?.title || t('modal.mediaPreview')}++ open={mediaPreviewVisible}++ onCancel={handleCloseMediaPreview}++ afterClose={handleCloseMediaPreview}++ footer={[++ <Button key="close" onClick={handleCloseMediaPreview}>++ {t('modal.close')}++ </Button>++ ]}++ width={previewMedia?.type === 'video' ? 800 : 600}++ zIndex={3000}++ destroyOnHidden={true}++ styles={{++ body: {++ padding: '24px',++ textAlign: 'center'++ }++ }}++ >++ {previewMedia && (++ <div>++ {previewMedia.type === 'video' ? (++ <video++ ref={setVideoRef}++ src={previewMedia.url}++ controls++ style={{++ width: '100%',++ maxHeight: '500px',++ borderRadius: '8px'++ }}++ autoPlay++ onEnded={() => {++ // 视频播放结束时重置到开始++ if (videoRef) {++ videoRef.currentTime = 0;++ }++ }}++ />++ ) : (++ <img++ src={previewMedia.url}++ alt="preview"++ style={{++ width: '100%',++ maxHeight: '500px',++ objectFit: 'contain',++ borderRadius: '8px'++ }}++ />++ )}++ </div>++ )}++ </Modal>++++ {/* 任务进度弹窗 */}++ <Modal++ title={t('taskProcessing')}++ open={taskProgressVisible}++ closable={false}++ maskClosable={false}++ footer={null}++ width={500}++ zIndex={3000}++ styles={{++ body: {++ padding: '24px'++ }++ }}++ >++ <Steps++ direction="vertical"++ current={taskProgress.currentStep}++ items={taskProgress.steps.map((step, index) => ({++ title: step.title,++ status: step.status as 'wait' | 'process' | 'finish' | 'error',++ description: index === 0 ? (step.title.includes(t('completeTask' as any)) ? t('messages.taskProcessFailed') : t('messages.taskProcessFailed')) :++ index === 1 ? t('messages.taskProcessFailed') :++ index === 2 ? t('messages.taskProcessFailed') :++ t('messages.taskProcessFailed')++ }))}++ />++ </Modal>++++ {/* 账号选择弹窗 */}++ <Modal++ title={t('accountSelect.title' as any)}++ open={accountSelectVisible}++ onCancel={() => setAccountSelectVisible(false)}++ footer={null}++ width={600}++ zIndex={2500}++ styles={{++ header: {++ borderBottom: '1px solid #f0f0f0',++ paddingBottom: '16px'++ },++ body: {++ padding: '24px'++ }++ }}++ >++ <div style={{ marginBottom: '16px' }}>++ <p style={{ margin: 0, color: '#666' }}>++ {t('accountSelect.description' as any)}++ </p>++ </div>++ <List++ dataSource={availableAccounts}++ renderItem={(account) => (++ <List.Item++ style={{++ padding: '16px',++ border: '1px solid #f0f0f0',++ borderRadius: '8px',++ marginBottom: '8px',++ cursor: 'pointer',++ transition: 'all 0.3s ease'++ }}++ onMouseEnter={(e) => {++ e.currentTarget.style.borderColor = '#1890ff';++ e.currentTarget.style.backgroundColor = '#f6ffed';++ }}++ onMouseLeave={(e) => {++ e.currentTarget.style.borderColor = '#f0f0f0';++ e.currentTarget.style.backgroundColor = 'transparent';++ }}++ onClick={() => handleAccountSelect(account)}++ >++ <List.Item.Meta++ avatar={++ <img++ src={account.avatar ? getOssUrl(account.avatar) : '/default-avatar.png'}++ alt="账号头像"++ style={{++ width: '48px',++ height: '48px',++ borderRadius: '50%',++ objectFit: 'cover'++ }}++ onError={(e) => {++ e.currentTarget.src = '/default-avatar.png';++ }}++ />++ }++ title={++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>++ <span style={{ fontWeight: '500' }}>{account.nickname}</span>++ <Tag color="blue">{getPlatformName(account.type)}</Tag>++ </div>++ }++ description={++ <div style={{ color: '#666' }}>++ <div>{t('accountSelect.accountId' as any)}: {account.account}</div>++ {account.nickname && <div>昵称: {account.nickname}</div>}++ </div>++ }++ />++ </List.Item>++ )}++ />++ </Modal>++++ {/* 下载App提示弹窗 */}++ <DownloadAppModal++ visible={downloadAppVisible}++ onClose={() => setDownloadAppVisible(false)}++ platform={downloadAppConfig.platform}++ appName={downloadAppConfig.appName}++ downloadUrl={downloadAppConfig.downloadUrl}++ qrCodeUrl={downloadAppConfig.qrCodeUrl}++ zIndex={3000}++ />++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/vip/page.tsxindex 00000000,00000000..3ea1584dnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/vip/page.tsx@@@ -1,0 -1,0 +1,208 @@@++"use client";++++import { useState, useEffect } from "react";++import { CrownOutlined, TrophyOutlined, GiftOutlined, StarOutlined, RocketOutlined, DollarOutlined, HistoryOutlined, ThunderboltOutlined } from "@ant-design/icons";++import { message } from "antd";++import { useRouter } from "next/navigation";++import { createPaymentOrderApi, PaymentType } from "@/api/vip";++import { useUserStore } from "@/store/user";++import styles from "./vip.module.css";++import { useTransClient } from "@/app/i18n/client";++++export default function VipPage() {++ const router = useRouter();++ const { userInfo, lang } = useUserStore();++ const { t } = useTransClient('vip');++ const [selectedPlan, setSelectedPlan] = useState('month'); // 默认选择连续月费会员++ const [loading, setLoading] = useState(false);++ const [canUseTrial, setCanUseTrial] = useState(false); // 是否可以使用免费试用++++ // 检查用户是否可以享受免费试用++ useEffect(() => {++ if (userInfo) {++ // 如果用户没有vipInfo,说明从未开过会员,可以享受免费试用++ const hasVipInfo = userInfo.vipInfo && Object.keys(userInfo.vipInfo).length > 0;++ setCanUseTrial(!hasVipInfo);++ }++ }, [userInfo]);++++ // 会员权益数据 (8个)++ const vipBenefits = [++ { icon: <CrownOutlined />, name: t('vipBenefits.exclusiveBadge') },++ { icon: <TrophyOutlined />, name: t('vipBenefits.advancedFeatures') },++ { icon: <GiftOutlined />, name: t('vipBenefits.memberGift') },++ { icon: <StarOutlined />, name: t('vipBenefits.prioritySupport') },++ { icon: <DollarOutlined />, name: t('vipBenefits.discount') },++ { icon: <HistoryOutlined />, name: t('vipBenefits.unlimitedTime') },++ { icon: <ThunderboltOutlined />, name: t('vipBenefits.fastExperience') },++ { icon: <RocketOutlined />, name: t('vipBenefits.morePrivileges') },++ ];++++ const handleActivate = async () => {++ try {++ setLoading(true);++++ // 检查用户是否已登录++ if (!userInfo?.id) {++ message.error(t('pleaseLoginFirst'));++ router.push('/login');++ return;++ }++++ // 根据选择的计划映射到支付类型++ let paymentType;++ let paymentMethod;++ let flagTrialPeriodDays = 0; // 默认不给免费试用++++ switch (selectedPlan) {++ case 'onceMonth':++ paymentType = PaymentType.ONCE_MONTH;++ paymentMethod = 'payment';++ break;++ case 'month':++ paymentType = PaymentType.MONTH;++ paymentMethod = 'subscription';++ // 如果是订阅模式且用户从未开过会员,给免费试用++ flagTrialPeriodDays = canUseTrial ? 1 : 0;++ break;++ case 'year':++ paymentType = PaymentType.YEAR;++ paymentMethod = 'subscription';++ // 如果是订阅模式且用户从未开过会员,给免费试用++ flagTrialPeriodDays = canUseTrial ? 1 : 0;++ break;++ default:++ paymentType = PaymentType.MONTH;++ paymentMethod = 'subscription';++ flagTrialPeriodDays = canUseTrial ? 1 : 0;++ }++++ // 创建支付订单++ const response: any = await createPaymentOrderApi({++ success_url: lang === 'zh-CN' ? "/zh-CN/profile" : "/en/profile",++ mode: paymentMethod,++ payment: paymentType,++ metadata: {++ userId: userInfo.id++ }++ });++++ if (response?.code === 0) {++ message.success(t('paymentOrderCreated'));++ // 直接跳转到支付页面++ if (response.data?.url) {++ // window.location.href = response.data.url;++ window.open(response.data.url, '_blank');++ } else {++ message.error(t('paymentLinkNotFound'));++ }++ } else {++ message.error(response?.message || response?.msg || t('createPaymentOrderFailed'));++ }++ } catch (error) {++ console.error('创建支付订单失败:', error);++ message.error(t('createPaymentOrderError'));++ } finally {++ setLoading(false);++ }++ };++++ return (++ <div className={styles.container}>++ <div className={styles.vipCard}>++ <div className={styles.vipContent}>++ <div className={styles.vipHeader}>++ <span className={styles.vipIcon}><CrownOutlined /></span>++ <h2 className={styles.vipTitle}>{t('title')}</h2>++ </div>++ <p className={styles.vipDescription}>++ {t('description')}++ </p>++ <div className={styles.benefitsGrid}>++ {vipBenefits.map((benefit, index) => (++ <div key={index} className={styles.benefitItem}>++ <div className={styles.benefitIcon}>{benefit.icon}</div>++ <p className={styles.benefitName}>{benefit.name}</p>++ </div>++ ))}++ </div>++ </div>++ </div>++++ <h3 className={styles.title}>{t('selectDuration')}</h3>++++ {/* 免费试用提示 */}++ {canUseTrial && (++ <div className={styles.trialNotice}>++ <span className={styles.trialBadge}>{t('trialNotice.badge')}</span>++ <p>{t('trialNotice.description')}</p>++ </div>++ )}++++ <div className={styles.priceOptions}>++++ <div++ className={`${styles.priceCard} ${selectedPlan === 'month' ? styles.selected : ''}`}++ onClick={() => setSelectedPlan('month')}++ >++ <span className={styles.badge}>++ {canUseTrial ? t('badge.month') : t('badge.monthOld')}++ </span>++ <h4>{t('planTitles.month')}</h4>++ <div>++ <span className={styles.originalPrice}>$30</span>++ <span className={styles.discount}>++ {canUseTrial ? t('badge.month') : t('badge.monthOld')}++ </span>++ </div>++ <p className={styles.currentPrice}>$<span>19</span>{t('priceUnits.month')}</p>++ {canUseTrial && (++ <p className={styles.trialText}>{t('trialText.month')}</p>++ )}++ </div>++ <div++ className={`${styles.priceCard} ${selectedPlan === 'year' ? styles.selected : ''}`}++ onClick={() => setSelectedPlan('year')}++ >++ <span className={styles.badge}>++ {canUseTrial ? t('badge.year') : t('badge.yearOld')}++ </span>++ <h4>{t('planTitles.year')}</h4>++ <div>++ <span className={styles.originalPrice}>$180</span>++ <span className={styles.discount}>++ {canUseTrial ? t('badge.year') : t('badge.yearOld')}++ </span>++ </div>++ <p className={styles.currentPrice}>$<span>12</span>{t('priceUnits.month')}</p>++ <p className={styles.monthlyPrice}>$144{t('priceUnits.year')}</p>++ {canUseTrial && (++ <p className={styles.trialText}>{t('trialText.year')}</p>++ )}++ </div>++ <div++ className={`${styles.priceCard} ${selectedPlan === 'onceMonth' ? styles.selected : ''}`}++ onClick={() => setSelectedPlan('onceMonth')}++ >++ <span className={styles.badge}>{t('badge.onceMonth')}</span>++ <h4>{t('planTitles.onceMonth')}</h4>++ <div>++ <span className={styles.originalPrice}>$30</span>++ <span className={styles.discount}>{t('badge.onceMonth')}</span>++ </div>++ <p className={styles.currentPrice}>$<span>25</span></p>++ </div>++ </div>++++ <p className={styles.subscriptionInfo}>{t('autoRenewal')}</p>++++ <button++ className={styles.activateButton}++ onClick={handleActivate}++ disabled={loading}++ >++ {t('activateNow')}++ </button>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/vip/vip.module.cssindex 00000000,00000000..ffb663c4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/vip/vip.module.css@@@ -1,0 -1,0 +1,246 @@@++.container {++ padding: 24px;++ text-align: center;++}++++.title {++ font-size: 32px;++ color: #333;++ margin-bottom: 24px;++}++++.placeholder {++ background-color: #f0f2f5;++ padding: 48px;++ border-radius: 8px;++ font-size: 18px;++ color: #666;++}++++/* 免费试用提示样式 */++.trialNotice {++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ color: white;++ padding: 16px 24px;++ border-radius: 12px;++ margin-bottom: 24px;++ text-align: center;++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);++}++++.trialBadge {++ display: inline-block;++ background: rgba(255, 255, 255, 0.2);++ padding: 4px 12px;++ border-radius: 20px;++ font-size: 14px;++ font-weight: 600;++ margin-bottom: 8px;++}++++.trialNotice p {++ margin: 0;++ font-size: 16px;++ font-weight: 500;++}++++.trialText {++ font-size: 12px;++ color: #10b981;++ font-weight: 600;++ margin-top: 8px;++ background: #ecfdf5;++ padding: 4px 8px;++ border-radius: 6px;++ display: inline-block;++}++++/* 会员卡片样式 */++.vipCard {++ background: url('/assets/images/vipcard.png') no-repeat center center;++ background-size: cover;++ border-radius: 12px;++ padding: 24px;++ margin-bottom: 24px;++ color: #fff;++ position: relative;++ overflow: hidden;++ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);++}++++.vipCard::before {++ content: '';++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: linear-gradient(to right, #2B2F36, #4E4C4D);++ z-index: 0;++ border-radius: 12px;++}++++.vipContent {++ position: relative;++ z-index: 1;++ display: flex;++ flex-direction: column;++ height: 100%;++}++++.vipHeader {++ display: flex;++ align-items: center;++ margin-bottom: 16px;++}++++.vipIcon {++ width: 32px;++ height: 32px;++ margin-right: 8px;++ background-color: rgba(255, 255, 255, 0.2);++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 20px;++}++++.vipTitle {++ font-size: 24px;++ font-weight: bold;++ color: #fce2a9; /* 金色 */++}++++.vipDescription {++ font-size: 14px;++ color: rgba(255, 255, 255, 0.8);++ margin-bottom: 24px;++}++++.benefitsGrid {++ display: grid;++ grid-template-columns: repeat(4, 1fr);++ gap: 16px;++ margin-bottom: 32px;++}++++.benefitItem {++ text-align: center;++}++++.benefitIcon {++ width: 48px;++ height: 48px;++ background-color: rgba(255, 255, 255, 0.15);++ border-radius: 8px;++ margin: 0 auto 8px auto;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 24px;++}++++.benefitName {++ font-size: 13px;++ color: rgba(255, 255, 255, 0.9);++}++++.activateButton {++ background: linear-gradient(to right, #6a5acd, #a64dd8); /* 紫色渐变 */++ border: none;++ color: white;++ padding: 12px 24px;++ border-radius: 8px;++ font-size: 18px;++ font-weight: bold;++ cursor: pointer;++ width: 100%;++ transition: all 0.3s ease;++++ &:hover {++ opacity: 0.9;++ transform: translateY(-2px);++ }++}++++.priceOptions {++ display: flex;++ justify-content: center;++ gap: 24px;++ margin-bottom: 32px;++ flex-wrap: wrap;++}++++.priceCard {++ border: 2px solid #eee;++ border-radius: 12px;++ padding: 24px;++ cursor: pointer;++ transition: all 0.3s ease;++ width: 100%;++ max-width: 240px;++ position: relative;++ text-align: left;++}++++.priceCard.selected {++ border-color: #6a5acd;++ box-shadow: 0 4px 12px rgba(106, 90, 205, 0.2);++}++++.badge {++ position: absolute;++ top: 0;++ right: 0;++ background: linear-gradient(to right, #ff7e5f, #feb47b);++ color: white;++ font-size: 12px;++ padding: 4px 12px;++ border-bottom-left-radius: 8px;++ border-top-right-radius: 10px;++}++++.priceCard h4 {++ font-size: 18px;++ margin-top: 0;++ margin-bottom: 8px;++ color: #333;++}++++.originalPrice {++ font-size: 14px;++ color: #999;++ text-decoration: line-through;++ margin-right: 8px;++}++++.discount {++ font-size: 14px;++ color: #e91e63;++ font-weight: bold;++}++++.currentPrice {++ font-size: 32px;++ font-weight: bold;++ color: #6a5acd;++ margin-top: 16px;++}++++.currentPrice span {++ font-size: 20px;++}++++.subscriptionInfo {++ font-size: 14px;++ color: #999;++ margin-bottom: 24px;++}++++.monthlyPrice {++ font-size: 14px;++ color: #666;++ margin-top: 8px;++ font-style: italic;++}diff --cc project/aitoearn-web/src/app/[lng]/wallet/page.tsxindex 00000000,00000000..e3213ec2new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/wallet/page.tsx@@@ -1,0 -1,0 +1,286 @@@++"use client";++++import { useEffect, useMemo, useState } from "react";++import { Button, Card, Form, Input, Modal, Select, Table, message, Popconfirm } from "antd";++import { useTransClient } from "@/app/i18n/client";++import { useParams } from "next/navigation";++import { useUserStore } from "@/store/user";++import {++ createUserWalletAccount,++ deleteUserWalletAccount,++ getUserWalletAccountList,++ updateUserWalletAccount,++ EMAIL_REGEX,++ UserWalletAccount,++ UserWalletAccountCreateDto,++} from "@/api/userWalletAccount";++++const { Option } = Select;++++export default function WalletPage() {++ const { t } = useTransClient("wallet");++ const { lng } = useParams();++ const { userInfo } = useUserStore();++++ const [list, setList] = useState<UserWalletAccount[]>([]);++ const [loading, setLoading] = useState(false);++ const [pagination, setPagination] = useState({ current: 1, pageSize: 10, total: 0 });++++ const [form] = Form.useForm<UserWalletAccountCreateDto>();++ const [modalOpen, setModalOpen] = useState(false);++ const [editing, setEditing] = useState<UserWalletAccount | null>(null);++ const [submitting, setSubmitting] = useState(false);++++ const columns = useMemo(++ () => [++ {++ title: t("columns.userName"),++ dataIndex: "userName",++ key: "userName",++ width: 100,++ ellipsis: true++ },++ {++ title: t("columns.mail"),++ dataIndex: "mail",++ key: "mail",++ width: 150,++ ellipsis: true,++ responsive: ['md'] as any++ },++ {++ title: t("columns.account"),++ dataIndex: "account",++ key: "account",++ width: 120,++ ellipsis: true++ },++ {++ title: t("columns.type"),++ dataIndex: "type",++ key: "type",++ width: 80,++ render: (v: string) => (v === "ZFB" ? t("types.ZFB") : t("types.WX_PAY"))++ },++ {++ title: t("columns.phone"),++ dataIndex: "phone",++ key: "phone",++ width: 120,++ ellipsis: true,++ responsive: ['lg'] as any++ },++ {++ title: t("columns.cardNum"),++ dataIndex: "cardNum",++ key: "cardNum",++ width: 120,++ ellipsis: true,++ responsive: ['lg'] as any++ },++ {++ title: t("columns.actions"),++ key: "actions",++ width: 120,++ fixed: 'right' as any,++ render: (_: any, record: UserWalletAccount) => (++ <div style={{ display: 'flex', flexDirection: 'row', gap: '4px' }}>++ <Button++ size="small"++ type="link"++ onClick={() => onEdit(record)}++ style={{ padding: '2px 4px', fontSize: '11px' }}++ >++ {t("actions.edit")}++ </Button>++ <Popconfirm++ title={t("actions.deleteConfirm")}++ onConfirm={() => onDelete(record)}++ okText={t("actions.confirm" as any)}++ cancelText={t("actions.cancel" as any)}++ >++ <Button++ size="small"++ type="link"++ danger++ style={{ padding: '2px 4px', fontSize: '11px' }}++ >++ {t("actions.delete")}++ </Button>++ </Popconfirm>++ </div>++ )++ }++ ],++ [t]++ );++++ useEffect(() => {++ fetchList(1, 10);++ }, []);++++ async function fetchList(pageNo: number, pageSize: number) {++ setLoading(true);++ try {++ const res = await getUserWalletAccountList(pageNo, pageSize);++ if (res?.data) {++ setList(res.data.list || []);++ setPagination({ current: pageNo, pageSize, total: res.data.total || 0 });++ }++ } finally {++ setLoading(false);++ }++ }++++ function openCreate() {++ setEditing(null);++ form.resetFields();++ form.setFieldsValue({ userId: userInfo?._id || "" } as any);++ setModalOpen(true);++ }++++ function onEdit(record: UserWalletAccount) {++ setEditing(record);++ form.setFieldsValue({++ userId: record.userId,++ mail: record.mail,++ userName: record.userName,++ account: record.account,++ cardNum: record.cardNum,++ phone: record.phone,++ type: record.type,++ });++ setModalOpen(true);++ }++++ async function onDelete(record: UserWalletAccount) {++ const res = await deleteUserWalletAccount(record._id);++ if (res) {++ message.success(t("messages.deleteSuccess"));++ fetchList(pagination.current, pagination.pageSize);++ }++ }++++ async function onSubmit() {++ try {++ const values = await form.validateFields();++ setSubmitting(true);++ if (editing) {++ const res = await updateUserWalletAccount(editing._id, values);++ if (res) message.success(t("messages.updateSuccess"));++ } else {++ const res = await createUserWalletAccount(values);++ if (res) message.success(t("messages.createSuccess"));++ }++ setModalOpen(false);++ fetchList(pagination.current, pagination.pageSize);++ } finally {++ setSubmitting(false);++ }++ }++++ return (++ <div style={{++ padding: '16px',++ minHeight: '100vh',++ backgroundColor: '#f5f5f5'++ }}>++ <Card++ title={t("title")}++ extra={++ <Button++ type="primary"++ onClick={openCreate}++ size="small"++ style={{++ fontSize: '12px',++ height: '32px',++ padding: '4px 12px'++ }}++ >++ {t("actions.create")}++ </Button>++ }++ style={{++ margin: '0 auto',++ maxWidth: '100%',++ boxShadow: '0 2px 8px rgba(0,0,0,0.1)'++ }}++ >++ <Table++ rowKey="_id"++ columns={columns as any}++ dataSource={list}++ loading={loading}++ scroll={{ x: 800 }}++ size="small"++ pagination={{++ current: pagination.current,++ pageSize: pagination.pageSize,++ total: pagination.total,++ showSizeChanger: false,++ showQuickJumper: false,++ showTotal: (total, range) =>++ `${range[0]}-${range[1]} / ${total}`,++ onChange: (p, s) => fetchList(p, s || 10),++ simple: true,++ pageSizeOptions: ['5', '10', '20'],++ responsive: true++ }}++ style={{++ fontSize: '12px'++ }}++ />++ </Card>++++ <Modal++ open={modalOpen}++ title={editing ? t("dialogs.editTitle") : t("dialogs.createTitle")}++ onCancel={() => setModalOpen(false)}++ onOk={onSubmit}++ confirmLoading={submitting}++ destroyOnHidden++ width="90%"++ style={{++ maxWidth: '500px',++ top: '20px'++ }}++ bodyStyle={{++ maxHeight: '70vh',++ overflowY: 'auto',++ padding: '16px'++ }}++ centered++ >++ <Form form={form} layout="vertical" preserve={false}>++ <Form.Item name="userId" label={t("form.userId")} rules={[{ required: true, message: t("form.required") }]}>++ <Input disabled placeholder={t("form.userIdPlaceholder")} />++ </Form.Item>++ <Form.Item name="mail" label={t("form.mail")} rules={[{ required: true, pattern: EMAIL_REGEX, message: t("form.mailInvalid") }]}>++ <Input placeholder={t("form.mailPlaceholder")} />++ </Form.Item>++ <Form.Item name="userName" label={t("form.userName")}>++ <Input placeholder={t("form.userNamePlaceholder")} />++ </Form.Item>++ <Form.Item name="account" label={t("form.account")} rules={[{ required: true, message: t("form.required") }]}>++ <Input placeholder={t("form.accountPlaceholder")} />++ </Form.Item>++ <Form.Item name="cardNum" label={t("form.cardNum")}>++ <Input placeholder={t("form.cardNumPlaceholder")} />++ </Form.Item>++ <Form.Item name="phone" label={t("form.phone")}>++ <Input placeholder={t("form.phonePlaceholder")} />++ </Form.Item>++ <Form.Item name="type" label={t("form.type")} rules={[{ required: true, message: t("form.required") }]}>++ <Select placeholder={t("form.typePlaceholder")}>++ <Option value="ZFB">{t("types.ZFB")}</Option>++ <Option value="WX_PAY">{t("types.WX_PAY")}</Option>++ </Select>++ </Form.Item>++ </Form>++ </Modal>++ </div>++ );++}++++diff --cc project/aitoearn-web/src/app/[lng]/websit/data-deletion/page.tsxindex 00000000,00000000..38d58876new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/websit/data-deletion/page.tsx@@@ -1,0 -1,0 +1,98 @@@++"use client";++++import { useTransClient } from "@/app/i18n/client";++import styles from "../websit.module.scss";++++// 导入首页的Header组件++function Header() {++ const { t } = useTransClient('home');++++ return (++ <header className={styles.header}>++ <div className={styles.headerContainer}>++ <div className={styles.logo}>++ <span className={styles.logoText}>{t('header.logo')}</span>++ </div>++ <nav className={styles.nav}>++ <a href="#marketplace" className={styles.navLink}>{t('header.nav.marketplace')}</a>++ <a href="#pricing" className={styles.navLink}>{t('header.nav.pricing')}</a>++ <a href="#docs" className={styles.navLink}>{t('header.nav.docs')}</a>++ <a href="#blog" className={styles.navLink}>{t('header.nav.blog')}</a>++ </nav>++ <button className={styles.getStartedBtn}>{t('header.getStarted')}</button>++ </div>++ </header>++ );++}++++export default function DataDeletionPage() {++ return (++ <div className={styles.websitPage}>++ <Header />++++ <main className={styles.main}>++ <div className={styles.container}>++ <div className={styles.header}>++ <h1 className={styles.title}>++ Data Deletion Instructions++ </h1>++ <p className={styles.lastUpdated}>++ Last Updated: 2025.6.27++ </p>++ </div>++++ <div className={styles.content}>++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>For Pre-Launch Users:</h2>++ <p className={styles.sectionContent}>++ Our application is currently in pre-launch phase and does not store real user data.++ If you have interacted with our test systems, contact us for data removal.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>Standard Procedure (Post-Launch):</h2>++ <ol className={styles.stepsList}>++ <li className={styles.stepItem}>++ <div className={styles.stepNumber}>1</div>++ <div className={styles.stepText}>Log in to your AiToEarn account</div>++ </li>++ <li className={styles.stepItem}>++ <div className={styles.stepNumber}>2</div>++ <div className={styles.stepText}>Navigate to Settings > Privacy</div>++ </li>++ <li className={styles.stepItem}>++ <div className={styles.stepNumber}>3</div>++ <div className={styles.stepText}>Click "Request Account Deletion"</div>++ </li>++ <li className={styles.stepItem}>++ <div className={styles.stepNumber}>4</div>++ <div className={styles.stepText}>Confirmation will be sent to your registered email</div>++ </li>++ </ol>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>Contact for Assistance:</h2>++ <div className={styles.contactInfo}>++ <h3 className={styles.contactTitle}>Pre-launch inquiries only</h3>++ <p className={styles.contactText}>++ <strong>Email:</strong> [email protected]++ </p>++ </div>++ </section>++++ <section className={styles.section}>++ <div className={styles.warningBox}>++ <h3 className={styles.warningTitle}>Important Note:</h3>++ <p className={styles.warningText}>++ This page will be automatically updated upon app launch++ </p>++ </div>++ </section>++ </div>++ </div>++ </main>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/websit/data-protection-agreement/page.tsxindex 00000000,00000000..6cf904cdnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/websit/data-protection-agreement/page.tsx@@@ -1,0 -1,0 +1,237 @@@++"use client";++++import { useTransClient } from "@/app/i18n/client";++import styles from "../websit.module.scss";++++// 导入首页的Header组件++function Header() {++ const { t } = useTransClient('home');++++ return (++ <header className={styles.header}>++ <div className={styles.headerContainer}>++ <div className={styles.logo}>++ <span className={styles.logoText}>{t('header.logo')}</span>++ </div>++ <nav className={styles.nav}>++ <a href="#marketplace" className={styles.navLink}>{t('header.nav.marketplace')}</a>++ <a href="#pricing" className={styles.navLink}>{t('header.nav.pricing')}</a>++ <a href="#docs" className={styles.navLink}>{t('header.nav.docs')}</a>++ <a href="#blog" className={styles.navLink}>{t('header.nav.blog')}</a>++ </nav>++ <button className={styles.getStartedBtn}>{t('header.getStarted')}</button>++ </div>++ </header>++ );++}++++export default function DataProtectionAgreementPage() {++ return (++ <div className={styles.websitPage}>++ <Header />++++ <main className={styles.main}>++ <div className={styles.container}>++ <div className={styles.header}>++ <h1 className={styles.title}>++ Data Protection Agreement++ </h1>++ <p className={styles.lastUpdated}>++ Last Updated: 2024-12-26++ </p>++ </div>++++ <div className={styles.content}>++ <section className={styles.section}>++ <p className={styles.introduction}>++ This Data Protection Agreement outlines how we handle, protect, and process your personal data in compliance with applicable data protection laws, including the General Data Protection Regulation (GDPR) and other relevant privacy regulations.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>1. Data Controller Information</h2>++ <p className={styles.sectionContent}>++ Aitoearn, Inc. acts as the data controller for personal data collected through our services. We are responsible for determining the purposes and means of processing your personal data.++ </p>++ <div className={styles.contactInfo}>++ <h3 className={styles.contactTitle}>Contact Information</h3>++ <p className={styles.contactText}>++ Email: [email protected]<br/>++ Address: [Company Address]<br/>++ Data Protection Officer: [email protected]++ </p>++ </div>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>2. Types of Data We Collect</h2>++ <p className={styles.sectionContent}>++ We collect and process the following categories of personal data:++ </p>++ <ul className={styles.listContent}>++ <li><strong>Account Information:</strong> Name, email address, username, password</li>++ <li><strong>Profile Data:</strong> Profile pictures, bio information, social media links</li>++ <li><strong>Content Data:</strong> Posts, comments, media files, scheduling information</li>++ <li><strong>Usage Data:</strong> Platform interactions, feature usage, analytics data</li>++ <li><strong>Technical Data:</strong> IP address, device information, browser type, session data</li>++ <li><strong>Communication Data:</strong> Support tickets, feedback, correspondence</li>++ </ul>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>3. Legal Basis for Processing</h2>++ <p className={styles.sectionContent}>++ We process your personal data based on the following legal grounds:++ </p>++ <ul className={styles.listContent}>++ <li><strong>Contract Performance:</strong> To provide our services and fulfill our contractual obligations</li>++ <li><strong>Legitimate Interest:</strong> To improve our services, prevent fraud, and ensure security</li>++ <li><strong>Consent:</strong> For marketing communications and optional features (where required)</li>++ <li><strong>Legal Obligation:</strong> To comply with applicable laws and regulations</li>++ </ul>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>4. Data Sharing and Third Parties</h2>++ <p className={styles.sectionContent}>++ We may share your personal data with:++ </p>++ <ul className={styles.listContent}>++ <li><strong>Service Providers:</strong> Cloud hosting, analytics, payment processing, customer support</li>++ <li><strong>Social Media Platforms:</strong> When you connect and publish content to external platforms</li>++ <li><strong>Legal Authorities:</strong> When required by law or to protect our legal rights</li>++ <li><strong>Business Partners:</strong> With your explicit consent for specific integrations</li>++ </ul>++ <p className={styles.sectionContent}>++ We ensure all third parties maintain appropriate data protection standards through contractual agreements.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>5. International Data Transfers</h2>++ <p className={styles.sectionContent}>++ Your personal data may be transferred to and processed in countries outside your residence. We ensure adequate protection through:++ </p>++ <ul className={styles.listContent}>++ <li>European Commission adequacy decisions</li>++ <li>Standard Contractual Clauses (SCCs)</li>++ <li>Data Processing Agreements with appropriate safeguards</li>++ <li>Certification schemes and codes of conduct</li>++ </ul>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>6. Your Rights Under Data Protection Laws</h2>++ <p className={styles.sectionContent}>++ You have the following rights regarding your personal data:++ </p>++ <ul className={styles.listContent}>++ <li><strong>Right of Access:</strong> Request copies of your personal data</li>++ <li><strong>Right to Rectification:</strong> Correct inaccurate or incomplete data</li>++ <li><strong>Right to Erasure:</strong> Request deletion of your personal data</li>++ <li><strong>Right to Restrict Processing:</strong> Limit how we use your data</li>++ <li><strong>Right to Data Portability:</strong> Receive your data in a portable format</li>++ <li><strong>Right to Object:</strong> Object to certain types of processing</li>++ <li><strong>Right to Withdraw Consent:</strong> Withdraw consent for consent-based processing</li>++ </ul>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>7. Data Retention</h2>++ <p className={styles.sectionContent}>++ We retain your personal data for different periods depending on the purpose:++ </p>++ <ul className={styles.listContent}>++ <li><strong>Account Data:</strong> Until account deletion plus 30 days for backup recovery</li>++ <li><strong>Content Data:</strong> Until deletion by user or account termination</li>++ <li><strong>Usage Analytics:</strong> Aggregated data retained for 2 years</li>++ <li><strong>Legal/Compliance Data:</strong> As required by applicable laws</li>++ <li><strong>Marketing Data:</strong> Until consent withdrawal or 3 years of inactivity</li>++ </ul>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>8. Data Security Measures</h2>++ <p className={styles.sectionContent}>++ We implement comprehensive security measures to protect your personal data:++ </p>++ <ul className={styles.listContent}>++ <li>End-to-end encryption for data transmission</li>++ <li>Advanced encryption standards (AES-256) for data storage</li>++ <li>Multi-factor authentication and access controls</li>++ <li>Regular security audits and penetration testing</li>++ <li>Employee training on data protection practices</li>++ <li>Incident response and breach notification procedures</li>++ </ul>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>9. Data Breach Notification</h2>++ <p className={styles.sectionContent}>++ In the event of a personal data breach that is likely to result in a high risk to your rights and freedoms, we will:++ </p>++ <ul className={styles.listContent}>++ <li>Notify relevant supervisory authorities within 72 hours</li>++ <li>Inform affected individuals without undue delay</li>++ <li>Provide clear information about the breach and our response</li>++ <li>Take immediate measures to contain and mitigate the breach</li>++ </ul>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>10. Data Subject Requests</h2>++ <p className={styles.sectionContent}>++ To exercise your data protection rights, please contact us at:++ </p>++ <div className={styles.contactInfo}>++ <h3 className={styles.contactTitle}>Data Protection Requests</h3>++ <p className={styles.contactText}>++ Email: [email protected]<br/>++ Subject Line: Data Protection Request - [Type of Request]<br/>++ Response Time: Within 30 days of receipt++ </p>++ </div>++ <p className={styles.sectionContent}>++ We may require additional information to verify your identity before processing your request.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>11. Children's Privacy</h2>++ <p className={styles.sectionContent}>++ Our services are not intended for children under 13 years of age (or 16 in the EU). We do not knowingly collect personal data from children. If we become aware that we have collected personal data from a child, we will take immediate steps to delete such information.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>12. Supervisory Authority</h2>++ <p className={styles.sectionContent}>++ You have the right to lodge a complaint with a supervisory authority if you believe our processing of your personal data violates applicable data protection laws. You can contact your local data protection authority or the authority in the country where the alleged violation occurred.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>13. Updates to This Agreement</h2>++ <p className={styles.sectionContent}>++ We may update this Data Protection Agreement from time to time to reflect changes in our practices or applicable laws. We will notify you of material changes through our platform or via email. Continued use of our services after such changes constitutes acceptance of the updated agreement.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>14. Contact Information</h2>++ <div className={styles.contactInfo}>++ <h3 className={styles.contactTitle}>Data Protection Inquiries</h3>++ <p className={styles.contactText}>++ For any questions about this Data Protection Agreement or our data processing practices:<br/><br/>++ Email: [email protected]<br/>++ Data Protection Officer: [email protected]<br/>++ General Contact: [email protected]++ </p>++ </div>++ </section>++ </div>++ </div>++ </main>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/websit/privacy-policy/page.tsxindex 00000000,00000000..e8eeccc8new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/websit/privacy-policy/page.tsx@@@ -1,0 -1,0 +1,282 @@@++"use client";++++import { useTransClient } from "@/app/i18n/client";++import styles from "../websit.module.scss";++++// 导入首页的Header组件++function Header() {++ const { t } = useTransClient('home');++++ return (++ <header className={styles.header}>++ <div className={styles.headerContainer}>++ <div className={styles.logo}>++ <span className={styles.logoText}>{t('header.logo')}</span>++ </div>++ <nav className={styles.nav}>++ <a href="#marketplace" className={styles.navLink}>{t('header.nav.marketplace')}</a>++ <a href="#pricing" className={styles.navLink}>{t('header.nav.pricing')}</a>++ <a href="#docs" className={styles.navLink}>{t('header.nav.docs')}</a>++ <a href="#blog" className={styles.navLink}>{t('header.nav.blog')}</a>++ </nav>++ <button className={styles.getStartedBtn}>{t('header.getStarted')}</button>++ </div>++ </header>++ );++}++++export default function PrivacyPolicyPage() {++ return (++ <div className={styles.websitPage}>++ <Header />++++ <main className={styles.main}>++ <div className={styles.container}>++ <div className={styles.header}>++ <h1 className={styles.title}>++ Privacy Policy++ </h1>++ <p className={styles.lastUpdated}>++ Last Updated: 2024-12-26++ </p>++ </div>++++ <div className={styles.content}>++ <section className={styles.section}>++ <p className={styles.introduction}>++ Aitoearn provides this Privacy Policy to inform you of our policies and procedures regarding the collection, use, protection, and disclosure of Personal Information received from your use of this website, located at https://aitoearn.ai (“Site”), as well as all related websites including our subdomains, applications, browser extensions, and other services provided by us (collectively, together with the Site, our “Service”), and in connection with our customer, vendor, and partner relationships. This Privacy Policy also tells you about your rights and choices with respect to your Personal Information, and how you can reach us to update your contact information or get answers to questions you may have about our privacy practices.++ </p>++ <p className={styles.sectionContent}>++ In addition to the activities described in this Privacy Policy, we may process Personal Information on behalf of our commercial customers when they use the Service. We process such Personal Information as a data processor of our commercial customers, which are the entities responsible for the data processing. To understand how a commercial customer processes your Personal Information, please refer to that customer’s privacy policy.++ </p>++ <p className={styles.sectionContent}>++ Registration with, use of, and access to the Service is subject to this Privacy Policy and our Terms of Use located at https://aitoearn.ai/en/websit/terms-of-service.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>Table of Contents</h2>++ <ul className={styles.listContent}>++ <li><a href="#section1">1. Personal Information We May Collect</a></li>++ <li><a href="#section2">2. Personal Information Provided by You</a></li>++ <li><a href="#section2a">2a. Personal Information Collected from Connected Social Media Accounts</a></li>++ <li><a href="#section2b">2b. Personal Information Automatically Obtained from Your Interactions with the Service</a></li>++ <li><a href="#section3">3. How We May Use Your Personal Information</a></li>++ <li><a href="#section4">4. How We Share Your Personal Information</a></li>++ <li><a href="#section5">5. How We Protect Your Personal Information</a></li>++ <li><a href="#section6">6. Your Rights and Choices</a></li>++ <li><a href="#section7">7. Data Transfers</a></li>++ <li><a href="#section8">8. Children's Privacy</a></li>++ <li><a href="#section9">9. Updates to this Privacy Policy</a></li>++ <li><a href="#section11">10. How to Contact Us</a></li>++ </ul>++ </section>++++ <section className={styles.section} id="section1">++ <h2 className={styles.sectionTitle}>1. Personal Information We May Collect</h2>++ <p className={styles.sectionContent}>++ For the purpose of this Privacy Policy, "Personal Information" means any information relating to an identified or identifiable individual. We obtain Personal Information relating to you from various sources described below.++ </p>++ <p className={styles.sectionContent}>++ Where applicable, we indicate whether and why you must provide us with your Personal Information, as well as the consequences of failing to do so. If you do not provide Personal Information when requested, you may not be able to benefit from our Service if that information is necessary to provide you with the service or if we are legally required to collect it.++ </p>++ </section>++++ <section className={styles.section} id="section2">++ <h2 className={styles.sectionTitle}>2. Personal Information Provided by You</h2>++++ <h3 className={styles.subSectionTitle}>Registration</h3>++ <p className={styles.sectionContent}>++ If you desire to have access to certain restricted sections of the Site or request to receive marketing materials, you may be required to become a registered user, and to submit the following types of Personal Information to Aitoearn: your name, email address, phone number, full user name, password, city, and time zone.++ </p>++++ <h3 className={styles.subSectionTitle}>Customer Support</h3>++ <p className={styles.sectionContent}>++ We may collect information through your communications with our customer support team or other communications that you may send us and their contents.++ </p>++++ <h3 className={styles.subSectionTitle}>Making a Purchase</h3>++ <p className={styles.sectionContent}>++ When you make payments through the Service, you will need to provide Personal Information such as your credit card number and billing address.++ </p>++++ <h3 className={styles.subSectionTitle}>Social Media</h3>++ <p className={styles.sectionContent}>++ In order to allow you to post to your social media platforms, we may ask you to provide your username, account ids, social handle, timezones, and email address.++ </p>++ </section>++++ <section className={styles.section} id="section2a">++ <h2 className={styles.sectionTitle}>2a. Personal Information Collected from Connected Social Media Accounts</h2>++ <p className={styles.sectionContent}>++ If you connect your third party social media account to your Aitoearn account, we may collect certain information stored in your social media account such as:++ </p>++++ <h3 className={styles.subSectionTitle}>Facebook</h3>++ <p className={styles.sectionContent}>++ Aitoearn may allow you to connect a Facebook page or profile to your Aitoearn account, in which case we will access certain information from Facebook regarding your account. In particular, we may collect profile image, display name, username / page ID or profile ID, access tokens, sent posts. This includes the content of your post and engagement data (such as click rates, likes, re-shares, impressions, as well as general engagement counts), to the extent permitted by applicable law.++ </p>++++ <h3 className={styles.subSectionTitle}>Twitter</h3>++ <p className={styles.sectionContent}>++ Aitoearn may allow you to connect a Twitter profile to your Aitoearn account, in which case we will access certain information from Twitter regarding your account. In particular, we may collect profile image, display name, username / profile ID, access tokens, and sent posts. This includes the content of your post and engagement data (such as click rates, likes, retweets, re-shares, impressions, as well as general engagement counts), to the extent permitted by applicable law.++ </p>++++ <h3 className={styles.subSectionTitle}>Instagram</h3>++ <p className={styles.sectionContent}>++ Aitoearn may allow you to connect an Instagram profile to your Aitoearn account, in which case we will access certain information from Instagram regarding your account. In particular, we may collect profile image, display name, username / profile ID, access tokens, and sent posts.++ </p>++++ <h3 className={styles.subSectionTitle}>LinkedIn</h3>++ <p className={styles.sectionContent}>++ Aitoearn may allow you to connect a LinkedIn profile to your Aitoearn account, in which case we will access certain information from LinkedIn regarding your account. In particular, we may collect profile image, display name, username / profile ID, access tokens, and sent posts.++ </p>++++ <h3 className={styles.subSectionTitle}>TikTok</h3>++ <p className={styles.sectionContent}>++ Aitoearn may allow you to connect a TikTok profile to your Aitoearn account, in which case we will access certain information from TikTok regarding your account. In particular, we may collect profile image, display name, username / profile ID, access tokens, and sent posts.++ </p>++++ <h3 className={styles.subSectionTitle}>YouTube</h3>++ <p className={styles.sectionContent}>++ Aitoearn may allow you to connect a YouTube channel to your Aitoearn account, in which case we will access certain information from Google and YouTube regarding your account. In particular, we may collect profile image, display name, profile ID, access tokens, existing videos. Aitoearn uses YouTube API Services and by using the YouTube integration via Aitoearn, you agree to be bound by the YouTube Terms of Service.++ </p>++ </section>++++ <section className={styles.section} id="section2b">++ <h2 className={styles.sectionTitle}>2b. Personal Information Automatically Obtained from Your Interactions with the Service</h2>++++ <h3 className={styles.subSectionTitle}>Log Data</h3>++ <p className={styles.sectionContent}>++ When you use our Service, our servers automatically record information that your browser sends whenever you visit a website ("Log Data"). This Log Data may include information such as your IP address, browser type or the domain from which you are visiting, the web-pages you visit, the search terms you use, and any advertisements on which you click.++ </p>++++ <h3 className={styles.subSectionTitle}>Cookies and Similar Technologies</h3>++ <p className={styles.sectionContent}>++ Like many websites, we also use "cookie" technology to collect additional website usage data and to improve the Site and our Service. A cookie is a small data file that we transfer to your computer's hard disk. Aitoearn may use both session cookies and persistent cookies to better understand how you interact with the Site and our Service.++ </p>++ <p className={styles.sectionContent}>++ You can instruct your browser, by editing its options, to stop accepting cookies or to prompt you before accepting a cookie from the websites you visit. Please note that if you delete, or choose not to accept, cookies from the Service, you may not be able to utilize the features of the Service to their fullest potential.++ </p>++ </section>++++ <section className={styles.section} id="section3">++ <h2 className={styles.sectionTitle}>3. How We May Use Your Personal Information</h2>++ <p className={styles.sectionContent}>++ We may use the Personal Information we obtain about you to:++ </p>++ <ul className={styles.listContent}>++ <li>create and manage your account, provide our Service, process payments, and respond to your inquiries;</li>++ <li>manage account authentication such as two-factor authentication;</li>++ <li>communicate with you to verify your account and for informational and operational purposes;</li>++ <li>tailor our Service (e.g., we may use cookies and similar technologies to remember your preferences);</li>++ <li>publish your content, comments or messages on social media platforms;</li>++ <li>provide tailored advertising, for Aitoearn services, via Google AdWords;</li>++ <li>aggregate your Personal Information for analytical purposes;</li>++ <li>provide customer support;</li>++ <li>operate, evaluate and improve our business;</li>++ <li>send you marketing communications about products, services, offers, programs and promotions;</li>++ <li>ensure the security of our Service;</li>++ <li>enforce our agreements related to our Service and our other legal rights;</li>++ <li>comply with applicable legal requirements, industry standards and our policies.</li>++ </ul>++ </section>++++ <section className={styles.section} id="section4">++ <h2 className={styles.sectionTitle}>4. How We Share Your Personal Information</h2>++ <p className={styles.sectionContent}>++ We may disclose the Personal Information we collect about you as described below or otherwise disclosed to you at the time the data is collected.++ </p>++++ <h3 className={styles.subSectionTitle}>Service Providers</h3>++ <p className={styles.sectionContent}>++ We engage certain trusted third parties to perform functions and provide services to us, including hosting and maintenance, error monitoring, debugging, performance monitoring, billing, customer relationship, database storage and management, and direct marketing campaigns. We may share your personal information with these third parties, but only to the extent necessary to perform these functions and provide such services.++ </p>++++ <h3 className={styles.subSectionTitle}>Compliance with Laws and Law Enforcement</h3>++ <p className={styles.sectionContent}>++ Aitoearn cooperates with government and law enforcement officials or private parties to enforce and comply with the law. To the extent permitted under applicable law, we may disclose any information about you to government or law enforcement officials or private parties as we believe is necessary or appropriate to investigate, respond to, and defend against claims.++ </p>++++ <h3 className={styles.subSectionTitle}>Business Transfers</h3>++ <p className={styles.sectionContent}>++ Aitoearn may sell, transfer or otherwise share some or all of its assets, including personal information, in connection with a merger, acquisition, reorganization, sale of assets, or similar transaction, or in the event of insolvency or bankruptcy.++ </p>++ </section>++++ <section className={styles.section} id="section5">++ <h2 className={styles.sectionTitle}>5. How We Protect Your Personal Information</h2>++ <p className={styles.sectionContent}>++ Aitoearn cares deeply about safeguarding the confidentiality of your personal information. We employ administrative and electronic measures designed to appropriately protect your personal information against accidental or unlawful destruction, accidental loss, unauthorized alteration, unauthorized disclosure or access, misuse, and any other unlawful form of processing of the personal information in our possession.++ </p>++ <p className={styles.sectionContent}>++ Please be aware that no security measures are perfect or impenetrable. We cannot guarantee that information about you will not be accessed, viewed, disclosed, altered, or destroyed by breach of any of our administrative, physical, and electronic safeguards.++ </p>++ <p className={styles.sectionContent}>++ We will make any legally-required disclosures of any breach of the security, confidentiality, or integrity of your unencrypted electronically stored personal information to you via email or conspicuous posting on our site in the most expedient time possible and without unreasonable delay.++ </p>++ </section>++++ <section className={styles.section} id="section6">++ <h2 className={styles.sectionTitle}>6. Your Rights and Choices</h2>++ <p className={styles.sectionContent}>++ If you decide at any time that you no longer wish to receive marketing communications from us, please follow the unsubscribe instructions provided in any of the communications. You may also opt out from receiving commercial email from us by sending your request to us by email at [email protected].++ </p>++ <p className={styles.sectionContent}>++ In certain jurisdictions you have the right to request access and receive information about the personal information we maintain about you, to update and correct inaccuracies in your personal information, to restrict or object to the processing of your personal information, to have the information blocked, anonymized or deleted, as appropriate, or to exercise your right to data portability to transfer your personal information to another company.++ </p>++ <p className={styles.sectionContent}>++ Where required by law, we obtain your consent for the processing of certain personal information collected by cookies or similar technologies, or used to send you direct marketing communications, or when we carry out other processing activities for which consent may be required.++ </p>++ </section>++++ <section className={styles.section} id="section7">++ <h2 className={styles.sectionTitle}>7. Data Transfers</h2>++ <p className={styles.sectionContent}>++ Personal information that we collect may be transferred to, and stored at, any of our affiliates, partners or service providers which may be inside or outside the European Economic Area (EEA), the United Kingdom (UK) or Switzerland, including in the US. Your personal information may be transferred to countries that do not have the same data protection laws as the country in which you initially provided the information.++ </p>++ <p className={styles.sectionContent}>++ Aitoearn complies with the EU-U.S. Data Privacy Framework, the Swiss-U.S. Data Privacy Framework, and the UK Extension to the Data Privacy Framework (the "DPFs") to transfer personal information outside the EEA, the UK and Switzerland to the U.S.++ </p>++ </section>++++ <section className={styles.section} id="section8">++ <h2 className={styles.sectionTitle}>8. Children's Privacy</h2>++ <p className={styles.sectionContent}>++ The site is not directed to persons under 16. If a parent or guardian becomes aware that his or her child has provided us with personal information without their consent, he or she should contact us at [email protected]. We do not knowingly collect personal information from children under 16. If we become aware that a child under 16 has provided us with personal information, we will delete such information from our files.++ </p>++ </section>++++ <section className={styles.section} id="section9">++ <h2 className={styles.sectionTitle}>9. Updates to this Privacy Policy</h2>++ <p className={styles.sectionContent}>++ This privacy policy may be updated from time to time for any reason; each version will apply to information collected while it was in place. We will notify you of any modifications to our privacy policy by posting the new privacy policy on our site and indicating the date of the latest revision.++ </p>++ <p className={styles.sectionContent}>++ In the event that the modifications materially alter your rights or obligations hereunder, we will make reasonable efforts to notify you of the change. For example, we may send a message to your email address or generate a pop-up or similar notification when you access the service for the first time after such material changes are made.++ </p>++ </section>++++++ <section className={styles.section} id="section11">++ <h2 className={styles.sectionTitle}>10. How to Contact Us</h2>++ <div className={styles.contactInfo}>++ <h3 className={styles.contactTitle}>Contact Information</h3>++ <p className={styles.contactText}>++ Aitoearn Inc. is the entity responsible for the processing of your personal information. If you have any questions or comments regarding this privacy policy, or if you would like to exercise your rights to your personal information, you may contact us:++ </p>++ <p className={styles.contactText}>++ <strong>Email:</strong> [email protected]<br/>++ <strong>Privacy Questions:</strong> [email protected]++ </p>++ <p className={styles.contactText}>++ If you have any thoughts or questions about this privacy policy please let us know at [email protected]++ </p>++ </div>++ </section>++ </div>++ </div>++ </main>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/websit/terms-of-service/page.tsxindex 00000000,00000000..66b37877new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/websit/terms-of-service/page.tsx@@@ -1,0 -1,0 +1,194 @@@++"use client";++++import { useTransClient } from "@/app/i18n/client";++import styles from "../websit.module.scss";++++// 导入首页的Header组件++function Header() {++ const { t } = useTransClient('home');++++ return (++ <header className={styles.header}>++ <div className={styles.headerContainer}>++ <div className={styles.logo}>++ <span className={styles.logoText}>{t('header.logo')}</span>++ </div>++ <nav className={styles.nav}>++ <a href="#marketplace" className={styles.navLink}>{t('header.nav.marketplace')}</a>++ <a href="#pricing" className={styles.navLink}>{t('header.nav.pricing')}</a>++ <a href="#docs" className={styles.navLink}>{t('header.nav.docs')}</a>++ <a href="#blog" className={styles.navLink}>{t('header.nav.blog')}</a>++ </nav>++ <button className={styles.getStartedBtn}>{t('header.getStarted')}</button>++ </div>++ </header>++ );++}++++export default function TermsOfServicePage() {++ return (++ <div className={styles.websitPage}>++ <Header />++++ <main className={styles.main}>++ <div className={styles.container}>++ <div className={styles.header}>++ <h1 className={styles.title}>++ Terms of Service++ </h1>++ <p className={styles.lastUpdated}>++ Last Updated: 2024-12-26++ </p>++ </div>++++ <div className={styles.content}>++ <section className={styles.section}>++ <p className={styles.introduction}>++ The following sets forth Aitoearn's Terms of Use. We know how tempting it is to skip these Terms of Use, but it's important to establish what you can expect from us as you use Aitoearn's Service, and what we expect from you. The Terms of Use is a binding legal document, and you are required to read and accept it in full in order to use our Service.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>Aitoearn, Inc Terms of Use</h2>++ <p className={styles.sectionContent}>++ Welcome, and thank you for your interest in Aitoearn, Inc. ("Aitoearn," "we," or "us") and our website at aitoearn.ai, along with our related websites, networks, hosted applications, mobile or other downloadable applications, and other services provided by us (collectively, the "Service"). These Terms of Use are a legally binding contract between you and Aitoearn regarding your use of the Service.++ </p>++ <p className={styles.sectionContent}>++ <strong>PLEASE READ THE FOLLOWING TERMS CAREFULLY:</strong><br/>++ BY CLICKING "I ACCEPT,"OR BY DOWNLOADING, INSTALLING, OR OTHERWISE ACCESSING OR USING THE SERVICE, YOU AGREE THAT YOU HAVE READ AND UNDERSTOOD, AND, AS A CONDITION TO YOUR USE OF THE SERVICE, YOU AGREE TO BE BOUND BY, THE FOLLOWING TERMS AND CONDITIONS, INCLUDING Aitoearn'S PRIVACY POLICY https://aitoearn.ai/en/websit/privacy-policy AND ANY ADDITIONAL TERMS AND POLICIES Aitoearn MAY PROVIDE FROM TIME TO TIME (TOGETHER, THESE "TERMS").++ </p>++ <p className={styles.sectionContent}>++ <strong>Arbitration NOTICE.</strong> Except for certain kinds of disputes described in Section 14, you agree that disputes arising under these Terms will be resolved by binding, individual arbitration, and BY ACCEPTING THESE TERMS, YOU AND Aitoearn ARE EACH WAIVING THE RIGHT TO A TRIAL BY JURY OR TO PARTICIPATE IN ANY CLASS ACTION OR REPRESENTATIVE PROCEEDING.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>1. SERVICE AND ACCOUNT</h2>++ <h3 className={styles.subSectionTitle}>1.1 Service Overview</h3>++ <p className={styles.sectionContent}>++ The Service provides a social media management tool that enables users to release posts on social platforms at a scheduled time, in addition to other design and analytics tools to help bolster users' social media content.++ </p>++ <h3 className={styles.subSectionTitle}>1.2 Modification of the Service</h3>++ <p className={styles.sectionContent}>++ Aitoearn reserves the right to modify or discontinue all or any portion of the Service at any time (including by limiting or discontinuing certain features of the Service), temporarily or permanently, without notice to you. Aitoearn will have no liability for any change to the Service, including any paid-for functionalities of the Service, or any suspension or termination of your access to or use of the Service. Service fees are not refundable.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>2. Eligibility</h2>++ <p className={styles.sectionContent}>++ You must be at least 18-years old to use the Service. By agreeing to these Terms, you represent and warrant to us that: (a) you are at least 18-years old; (b) you have not previously been suspended or removed from the applicable Service; and (c) your registration and your use of the Service is in compliance with any and all laws and regulations. If you are an entity, organization, or company, the individual accepting these Terms on your behalf represents and warrants that they have authority to bind you to these Terms and you agree to be bound by these Terms.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>3. Accounts and Registration</h2>++ <p className={styles.sectionContent}>++ To access most features of the Service, you must register for an account. When you register for an account, you may be required to provide us with some information about yourself, such as your name, email address, or other contact information. You agree that the information you provide to us is accurate, complete, and not misleading, and that you will keep it accurate and up to date at all times. When you register, you will be asked to create a password. You are solely responsible for maintaining the confidentiality of your account and password, and you accept responsibility for all activities that occur under your account. If you believe that your account is no longer secure, then you should immediately notify us at [email protected].++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>4. Payment Terms</h2>++ <p className={styles.sectionContent}>++ Some features of the Service may require you to pay fees upon registering for the applicable subscription. Before you pay any fees, you will have an opportunity to review and accept the fees that you will be charged. All fees are in U.S. Dollars and are non-refundable unless otherwise specifically provided for in these Terms. Fees vary based on the plan, with different pricing schemes for individual users and organizations.++ </p>++ <h3 className={styles.subSectionTitle}>4.1 Price</h3>++ <p className={styles.sectionContent}>++ Aitoearn reserves the right to determine pricing for the Service. Aitoearn will make reasonable efforts to keep pricing information published on our website up to date. We encourage you to check our pricing page periodically for current pricing information. If you cancel your subscription you may forego your current price.++ </p>++ <h3 className={styles.subSectionTitle}>4.2 Authorization</h3>++ <p className={styles.sectionContent}>++ You authorize Aitoearn to charge all sums for the orders that you make and any level of Service you select as described in these Terms or published by Aitoearn, including all applicable taxes, to the payment method specified in your account. If you pay any fees with a credit card, then Aitoearn may seek pre-authorization of your credit card account prior to your purchase to verify that the credit card is valid and has the necessary funds or credit available to cover your purchase.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>5. LICENSE TO Aitoearn SERVICES</h2>++ <h3 className={styles.subSectionTitle}>5.1 Limited License</h3>++ <p className={styles.sectionContent}>++ Subject to your complete and ongoing compliance with these Terms, Aitoearn grants you, solely for your a limited, non-exclusive, non-transferable, non-sublicensable, and revocable license to: (a) install and use one object code copy of any mobile or other downloadable application associated with the Service obtained from a legitimate marketplace (whether installed by you or pre-installed on your mobile device by the device manufacturer or a wireless telephone provider) on a mobile device that you own or control; and (b) access and use the Service.++ </p>++ <h3 className={styles.subSectionTitle}>5.2 License Restrictions</h3>++ <p className={styles.sectionContent}>++ Except and solely to the extent such a restriction is impermissible under applicable law, you may not: (a) reproduce, distribute, publicly display, publicly perform, or create derivative works of the Service; (b) make modifications to the Service; or (c) interfere with or circumvent any feature of the Service, including any security or access control mechanism. If you are prohibited under applicable law from using the Service, then you may not use it.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>6. Ownership; Proprietary Rights</h2>++ <p className={styles.sectionContent}>++ The Service is owned and operated by Aitoearn. The visual interfaces, graphics, design, compilation, information, data, computer code (including source code or object code), products, software, services, domain names, templates, and all other elements of the Service provided by Aitoearn ("Materials") are protected by intellectual property and other laws. All Materials included in the Service are the property of Aitoearn or its third-party licensors. Except as expressly authorized by Aitoearn, you may not make use of the Materials.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>7. USER CONTENT</h2>++ <h3 className={styles.subSectionTitle}>7.1 User Content Generally</h3>++ <p className={styles.sectionContent}>++ Certain features of the Service may permit users to submit, upload, publish, broadcast, or otherwise transmit ("Post") content to or via the Service, including social media posts and other content which may be comprised of messages, reviews, photos, video or audio (including sound or voice recordings and musical recordings embodied in the video or audio), images, folders, data, text, and any other works of authorship or other works ("User Content"). You retain any copyright and other proprietary rights that you may hold in the User Content that you Post to the Service subject to the licenses granted in these Terms.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>8. Prohibited Conduct</h2>++ <p className={styles.sectionContent}>++ BY USING THE SERVICE, YOU AGREE NOT TO:++ </p>++ <ul className={styles.listContent}>++ <li>use the Service for any illegal purpose or in violation of any local, state, national, or international law;</li>++ <li>harass, threaten, demean, embarrass, bully, or otherwise harm any other user of the Service;</li>++ <li>violate, encourage others to violate, or provide instructions on how to violate, any right of a third party, including by infringing or misappropriating any third-party intellectual property right;</li>++ <li>access, search, or otherwise use any portion of the Service through the use of any engine, software, tool, agent, device, or mechanism (including spiders, robots, crawlers, and data mining tools) other than the software or search agents provided by Aitoearn;</li>++ <li>interfere with security-related features of the Service;</li>++ <li>perform any fraudulent activity including impersonating any person or entity, claiming a false affiliation or identify, accessing any other Service account without permission, or falsifying your age or date of birth;</li>++ </ul>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>9. INTELLECTUAL PROPERTY PROTECTION</h2>++ <p className={styles.sectionContent}>++ Aitoearn respects the intellectual property rights of others, takes the protection of intellectual property rights very seriously, and asks users of the Service to do the same. Infringing activity will not be tolerated on or through the Service.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>10. TERM AND TERMINATION</h2>++ <p className={styles.sectionContent}>++ These Terms are effective beginning when you accept the Terms or first download, install, access, or use the Service, and ending when terminated as described in this section. If you violate any provision of these Terms, then your authorization to access the Service and these Terms automatically terminate. In addition, Aitoearn may, at its sole discretion, terminate these Terms or your account on the Service, or suspend or terminate your access to the Service, at any time for any reason or no reason, with or without notice.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>11. LIMITATION OF LIABILITY</h2>++ <p className={styles.sectionContent}>++ TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL THE Aitoearn ENTITIES BE LIABLE TO YOU FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR PUNITIVE DAMAGES (INCLUDING DAMAGES FOR LOSS OF PROFITS, GOODWILL, OR ANY OTHER INTANGIBLE LOSS) ARISING OUT OF OR RELATING TO YOUR ACCESS TO OR USE OF, OR YOUR INABILITY TO ACCESS OR USE, THE SERVICE OR ANY MATERIALS OR CONTENT ON THE SERVICE, WHETHER BASED ON WARRANTY, CONTRACT, TORT (INCLUDING NEGLIGENCE), STATUTE, OR ANY OTHER LEGAL THEORY.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>12. Dispute Resolution and Arbitration</h2>++ <p className={styles.sectionContent}>++ In the interest of resolving disputes between you and Aitoearn in the most expedient and cost effective manner, and except as described in the Arbitration provisions, you and Aitoearn agree that every dispute arising in connection with these Terms, the Service, and communications from us will be resolved by binding arbitration. Arbitration is less formal than a lawsuit in court. YOU UNDERSTAND AND AGREE THAT, BY ENTERING INTO THESE TERMS, YOU AND Aitoearn ARE EACH WAIVING THE RIGHT TO A TRIAL BY JURY OR TO PARTICIPATE IN A CLASS ACTION.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>13. MISCELLANEOUS</h2>++ <p className={styles.sectionContent}>++ These Terms, including the Privacy Policy and any other agreements expressly incorporated by reference into these Terms, are the entire and exclusive understanding and agreement between you and Aitoearn regarding your use of the Service. These Terms are governed by the laws of the State of California without regard to conflict of law principles.++ </p>++ </section>++++ <section className={styles.section}>++ <h2 className={styles.sectionTitle}>14. Contact Information</h2>++ <p className={styles.sectionContent}>++ The Service is offered by Aitoearn, Inc. You may contact us by emailing us at [email protected].++ </p>++ </section>++ </div>++ </div>++ </main>++ </div>++ );++}diff --cc project/aitoearn-web/src/app/[lng]/websit/websit.module.scssindex 00000000,00000000..d435846fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/[lng]/websit/websit.module.scss@@@ -1,0 -1,0 +1,323 @@@++.websitPage {++ min-height: 100vh;++ background: #fff;++}++++.header {++ position: fixed;++ top: 0;++ left: 0;++ right: 0;++ background: rgba(255, 255, 255, 0.95);++ backdrop-filter: blur(20px);++ border-bottom: 1px solid rgba(0, 0, 0, 0.1);++ z-index: 100;++}++++.headerContainer {++ max-width: 1200px;++ margin: 0 auto;++ padding: 0 20px;++ height: 70px;++ display: flex;++ align-items: center;++ justify-content: space-between;++}++++.logo {++ display: flex;++ align-items: center;++}++++.logoText {++ font-size: 24px;++ font-weight: bold;++ color: #733DEC;++}++++.nav {++ display: flex;++ gap: 32px;++++ @media (max-width: 768px) {++ display: none;++ }++}++++.navLink {++ color: #6b7280;++ text-decoration: none;++ font-weight: 500;++ transition: color 0.2s;++++ &:hover {++ color: #111827;++ }++}++++.getStartedBtn {++ background: #733DEC;++ color: white;++ border: none;++ padding: 10px 20px;++ border-radius: 8px;++ font-weight: 500;++ cursor: pointer;++ transition: background 0.2s;++++ &:hover {++ background: #5b2bc7;++ }++}++++.main {++ padding-top: 70px;++ min-height: calc(100vh - 70px);++}++++.container {++ max-width: 800px;++ margin: 0 auto;++ padding: 40px 20px;++}++++.header {++ text-align: center;++ margin-bottom: 48px;++ padding-bottom: 24px;++ border-bottom: 1px solid #e5e7eb;++}++++.title {++ font-size: 48px;++ font-weight: bold;++ color: #111827;++ margin-bottom: 16px;++++ @media (max-width: 768px) {++ font-size: 36px;++ }++}++++.lastUpdated {++ color: #6b7280;++ font-size: 14px;++}++++.content {++ line-height: 1.7;++}++++.section {++ margin-bottom: 32px;++}++++.introduction {++ font-size: 18px;++ color: #374151;++ margin-bottom: 32px;++ padding: 24px;++ background: #f9fafb;++ border-radius: 12px;++ border-left: 4px solid #733DEC;++}++++.sectionTitle {++ font-size: 24px;++ font-weight: 600;++ color: #111827;++ margin-bottom: 16px;++}++++.sectionContent {++ color: #374151;++ font-size: 16px;++ margin-bottom: 16px;++}++++.stepsList {++ list-style: none;++ padding: 0;++ margin: 24px 0;++}++++.stepItem {++ display: flex;++ align-items: flex-start;++ margin-bottom: 16px;++ padding: 16px;++ background: #f9fafb;++ border-radius: 8px;++}++++.stepNumber {++ background: #733DEC;++ color: white;++ width: 24px;++ height: 24px;++ border-radius: 50%;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 14px;++ font-weight: 600;++ margin-right: 16px;++ flex-shrink: 0;++}++++.stepText {++ color: #374151;++ font-size: 16px;++}++++.contactInfo {++ background: #eff6ff;++ border: 1px solid #dbeafe;++ border-radius: 12px;++ padding: 24px;++ margin: 32px 0;++}++++.contactTitle {++ font-size: 18px;++ font-weight: 600;++ color: #1e40af;++ margin-bottom: 12px;++}++++.contactText {++ color: #1e40af;++ font-size: 16px;++}++++.warningBox {++ background: #fef3cd;++ border: 1px solid #facc15;++ border-radius: 12px;++ padding: 24px;++ margin: 32px 0;++}++++.warningTitle {++ font-size: 18px;++ font-weight: 600;++ color: #a16207;++ margin-bottom: 12px;++}++++.warningText {++ color: #a16207;++ font-size: 16px;++}++++.subSectionTitle {++ font-size: 20px;++ font-weight: 600;++ color: #111827;++ margin-bottom: 12px;++ margin-top: 24px;++}++++.listContent {++ margin: 16px 0;++ padding-left: 20px;++++ li {++ color: #374151;++ font-size: 16px;++ margin-bottom: 8px;++ line-height: 1.6;++++ a {++ color: #733DEC;++ text-decoration: none;++ transition: color 0.2s;++++ &:hover {++ color: #5B21B6;++ text-decoration: underline;++ }++ }++ }++}++++.contactTitle {++ font-size: 18px;++ font-weight: 600;++ color: #111827;++ margin-bottom: 12px;++}++++.contactText {++ color: #374151;++ font-size: 16px;++ line-height: 1.6;++ margin-bottom: 12px;++++ strong {++ color: #111827;++ font-weight: 600;++ }++}++++.contactInfo {++ background: #f8fafc;++ border: 1px solid #e2e8f0;++ border-radius: 12px;++ padding: 24px;++ margin: 24px 0;++}++++.stepsList {++ margin: 16px 0;++ padding: 0;++ list-style: none;++ counter-reset: step-counter;++}++++.stepItem {++ display: flex;++ align-items: flex-start;++ margin-bottom: 16px;++ padding: 16px;++ background: #f8fafc;++ border-radius: 8px;++ border-left: 4px solid #733DEC;++}++++.stepNumber {++ display: flex;++ align-items: center;++ justify-content: center;++ width: 32px;++ height: 32px;++ background: #733DEC;++ color: white;++ border-radius: 50%;++ font-weight: 600;++ font-size: 16px;++ margin-right: 16px;++ flex-shrink: 0;++}++++.stepText {++ color: #374151;++ font-size: 16px;++ line-height: 1.6;++ flex: 1;++}++++.warningBox {++ background: #fef3c7;++ border: 1px solid #f59e0b;++ border-radius: 12px;++ padding: 20px;++ margin: 24px 0;++}++++.warningTitle {++ font-size: 18px;++ font-weight: 600;++ color: #92400e;++ margin-bottom: 8px;++}diff --cc project/aitoearn-web/src/app/config/accountConfig.tsindex 00000000,00000000..2c293289new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/config/accountConfig.ts@@@ -1,0 -1,0 +1,15 @@@++// 账号状态++export enum AccountStatus {++ // 未失效++ USABLE = 1,++ // 失效++ DISABLE = 0,++}++++// 小红书账号异常状态++export enum XhsAccountAbnormal {++ // 账号正常++ Normal = 1,++ // 账号异常(无法发布视频)++ Abnormal = 2,++}diff --cc project/aitoearn-web/src/app/config/appDownloadConfig.tsindex 00000000,00000000..b68bcbeanew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/config/appDownloadConfig.ts@@@ -1,0 -1,0 +1,74 @@@++/**++ * 应用下载配置文件++ * 管理不同平台的下载链接、二维码等信息++ */++++export interface AppDownloadConfig {++ platform: string;++ appName: string;++ downloadUrl: string;++ qrCodeUrl?: string;++ description: string;++ tips: string[];++}++++// 主应用下载配置(默认英文)++export const MAIN_APP_DOWNLOAD_URL = "https://docs.aitoearn.ai/en/downloads";++++// 根据语言获取主应用下载地址++// zh-* 使用中文地址,其余使用英文地址++import { useUserStore } from "@/store/user";++export const getMainAppDownloadUrl = (lng?: string): string => {++ const lang = (lng || useUserStore.getState().lang || "zh-CN").toLowerCase();++ const isZh = lang.startsWith("zh");++ return isZh++ ? "https://docs.aitoearn.ai/zh/downloads"++ : "https://docs.aitoearn.ai/en/downloads";++};++++export const APP_DOWNLOAD_CONFIGS: Record<string, AppDownloadConfig> = {++ xhs: {++ platform: "小红书",++ appName: "小红书App",++ downloadUrl: "https://apps.apple.com/cn/app/id123456789", // 这里配置实际的下载链接++ qrCodeUrl: "", // 这里配置实际的二维码图片URL++ description: "小红书相关操作需要在移动端App中进行,请下载并安装小红书App后继续操作。",++ tips: [++ "安装完成后,请在App中登录您的账号",++ "确保账号已通过实名认证",++ "在App中完成相关任务操作"++ ]++ },++ douyin: {++ platform: "抖音",++ appName: "抖音App",++ downloadUrl: "https://apps.apple.com/cn/app/douyin/id123456789",++ qrCodeUrl: "",++ description: "抖音相关操作需要在移动端App中进行,请下载并安装抖音App后继续操作。",++ tips: [++ "安装完成后,请在App中登录您的账号",++ "确保账号已通过实名认证",++ "在App中完成相关任务操作"++ ]++ },++ // 可以继续添加其他平台的配置++};++++/**++ * 获取平台下载配置++ * @param platformKey 平台标识符,如 'xhs', 'douyin'++ * @returns 下载配置信息++ */++export const getAppDownloadConfig = (platformKey: string): AppDownloadConfig | null => {++ return APP_DOWNLOAD_CONFIGS[platformKey] || null;++};++++/**++ * 检查任务是否需要App操作++ * @param accountTypes 账号类型数组++ * @returns 需要App操作的平台列表++ */++export const getTasksRequiringApp = (accountTypes: string[]): string[] => {++ return accountTypes.filter(type => APP_DOWNLOAD_CONFIGS[type]);++};++diff --cc project/aitoearn-web/src/app/config/platConfig.tsindex 00000000,00000000..8f673402new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/config/platConfig.ts@@@ -1,0 -1,0 +1,304 @@@++import { PubType } from "@/app/config/publishConfig";++import ksSvg from "@/assets/svgs/plat/ks.svg";++import bilibiliSvg from "@/assets/svgs/plat/bilibili.svg";++import youtubeSvg from "@/assets/svgs/plat/youtube.png";++import douyinSvg from "@/assets/svgs/plat/douyin.svg";++import tiktokSvg from "@/assets/svgs/plat/tiktok.svg";++import twitterSvg from "@/assets/svgs/plat/twitter.png";++import facebookSvg from "@/assets/svgs/plat/facebook.png";++import instagramSvg from "@/assets/svgs/plat/instagram.png";++import threadsSvg from "@/assets/svgs/plat/threads.png";++import wxSphSvg from "@/assets/svgs/plat/wx-sph.svg";++import gongzhonghaoSvg from "@/assets/svgs/plat/gongzhonghao.png";++import pinterestSvg from "@/assets/svgs/plat/pinterest.png";++import xhsSvg from "@/assets/svgs/plat/xhs.svg";++import linkedinSvg from "@/assets/svgs/plat/linkedin.png";++import { directTrans } from "@/app/i18n/client";++++// 平台类型++export enum PlatType {++ Tiktok = "tiktok", // tiktok++ Douyin = "douyin", // 抖音++ Xhs = "xhs", // 小红书++ WxSph = "wxSph", // 微信视频号++ KWAI = "KWAI", // 快手++ YouTube = "youtube", // YouTube++ BILIBILI = "bilibili", // B站++ Twitter = "twitter", // Twitter++ WxGzh = "wxGzh", // 微信公众号++ Facebook = "facebook", // Facebook++ Instagram = "instagram", // Instagram++ Threads = "threads", // Threads++ Pinterest = "pinterest", // Pinterest++ LinkedIn = "linkedin", // LinkedIn++}++++export interface IAccountPlatInfo {++ // 平台主题颜色++ themeColor: string;++ // 显示的icon++ icon: string;++ // 平台中文名称++ name: string;++ // 平台url++ url: string;++ // 支持的发布类型++ pubTypes: Set<PubType>;++ /**++ * 通用发布参数配置,有两个地方用到++ * 1. 在设置通用发布参数的时候会根据当前选择的账户中的最小参数为基准设置参数限制++ * 2. 规定每个平台通用参数的限制++ */++ commonPubParamsConfig: {++ // title限制字数,可以不填,不填表示该平台无标题参数++ titleMax?: number;++ // 话题数量限制++ topicMax: number;++ // 描述字数限制++ desMax: number;++ // 图片数量限制++ imagesMax?: number;++ };++ // 是否在PC端不显示++ pcNoThis?: boolean;++ // 平台提示++ tips?: {++ // 添加账号时候的提示++ account: string;++ // 在发布时添加账号时候的提示++ publish: string;++ };++}++++// 各个平台的信息++export const AccountPlatInfoMap = new Map<PlatType, IAccountPlatInfo>([++ [++ PlatType.Xhs,++ {++ name: "rednote",++ icon: xhsSvg,++ url: "https://www.xiaohongshu.com/",++ themeColor: "red",++ pubTypes: new Set([]),++ commonPubParamsConfig: {++ titleMax: 100,++ topicMax: 100,++ desMax: 1000,++ },++ pcNoThis: true,++ },++ ],++ [++ PlatType.KWAI,++ {++ name: "kwai",++ icon: ksSvg,++ url: "https://cp.kuaishou.com/profile",++ pubTypes: new Set([PubType.VIDEO]),++ commonPubParamsConfig: {++ topicMax: 4,++ desMax: 500,++ },++ themeColor: "#FF4D00",++ },++ ],++ [++ PlatType.BILIBILI,++ {++ name: "bilibili",++ icon: bilibiliSvg,++ url: "https://cp.kuaishou.com/profile",++ pubTypes: new Set([PubType.VIDEO]),++ commonPubParamsConfig: {++ topicMax: 10,++ titleMax: 80,++ desMax: 2000,++ },++ themeColor: "#F06198",++ },++ ],++ [++ PlatType.WxGzh,++ {++ name: "wxgzh",++ icon: gongzhonghaoSvg.src,++ url: "https://mp.weixin.qq.com/",++ pubTypes: new Set([PubType.ImageText, PubType.Article]),++ commonPubParamsConfig: {++ topicMax: 10,++ desMax: 2200,++ imagesMax: 20,++ },++ themeColor: "green",++ },++ ],++++ [++ PlatType.Douyin,++ {++ name: "douyin",++ icon: douyinSvg,++ url: "https://www.douyin.com/",++ pubTypes: new Set([]),++ commonPubParamsConfig: {++ titleMax: 30,++ topicMax: 5,++ desMax: 1000,++ },++ themeColor: "#FF4D00",++ pcNoThis: true,++ },++ ],++ [++ PlatType.WxSph,++ {++ name: "wxsph",++ icon: wxSphSvg,++ url: "https://mp.weixin.qq.com/",++ pubTypes: new Set([PubType.VIDEO, PubType.ImageText]),++ commonPubParamsConfig: {++ titleMax: 100,++ topicMax: 100,++ desMax: 5000,++ },++ themeColor: "green",++ pcNoThis: true,++ },++ ],++ [++ PlatType.Tiktok,++ {++ name: "TikTok",++ icon: tiktokSvg,++ url: "https://www.tiktok.com/",++ pubTypes: new Set([PubType.VIDEO, PubType.ImageText]),++ commonPubParamsConfig: {++ topicMax: 100,++ desMax: 4000,++ imagesMax: 10,++ },++ themeColor: "black",++ },++ ],++ [++ PlatType.YouTube,++ {++ name: "YouTube",++ icon: youtubeSvg.src,++ url: "https://www.youtube.com/",++ pubTypes: new Set([PubType.VIDEO]),++ commonPubParamsConfig: {++ titleMax: 100,++ topicMax: 100,++ desMax: 5000,++ },++ themeColor: "#F07171",++ },++ ],++ [++ PlatType.Twitter,++ {++ name: "Twitter",++ icon: twitterSvg.src,++ url: "https://x.com/",++ pubTypes: new Set([PubType.VIDEO, PubType.ImageText, PubType.Article]),++ commonPubParamsConfig: {++ topicMax: 100,++ desMax: 280,++ imagesMax: 4,++ },++ themeColor: "blue",++ },++ ],++ [++ PlatType.Facebook,++ {++ name: "Facebook",++ icon: facebookSvg.src,++ url: "https://www.facebook.com/",++ pubTypes: new Set([PubType.VIDEO, PubType.ImageText]),++ commonPubParamsConfig: {++ topicMax: 100,++ desMax: 5000,++ imagesMax: 10,++ },++ themeColor: "blue",++ },++ ],++ [++ PlatType.Instagram,++ {++ name: "Instagram",++ icon: instagramSvg.src,++ url: "https://www.instagram.com/",++ pubTypes: new Set([PubType.VIDEO, PubType.ImageText]),++ commonPubParamsConfig: {++ titleMax: 80,++ topicMax: 100,++ desMax: 2200,++ imagesMax: 10,++ },++ themeColor: "blue",++ },++ ],++ [++ PlatType.Threads,++ {++ name: "Threads",++ icon: threadsSvg.src,++ url: "https://www.threads.net/",++ pubTypes: new Set([PubType.VIDEO, PubType.ImageText, PubType.Article]),++ commonPubParamsConfig: {++ topicMax: 100,++ desMax: 500,++ imagesMax: 20,++ },++ themeColor: "blue",++ },++ ],++ [++ PlatType.Pinterest,++ {++ name: "Pinterest",++ icon: pinterestSvg.src,++ url: "https://www.pinterest.com/",++ pubTypes: new Set([PubType.VIDEO, PubType.ImageText]),++ commonPubParamsConfig: {++ titleMax: 16,++ topicMax: 100,++ desMax: 2200,++ imagesMax: 1,++ },++ themeColor: "#CC2025",++ },++ ],++ [++ PlatType.LinkedIn,++ {++ name: "LinkedIn",++ icon: linkedinSvg.src,++ url: "https://www.linkedin.com/",++ pubTypes: new Set([PubType.VIDEO, PubType.ImageText]),++ commonPubParamsConfig: {++ titleMax: 80,++ topicMax: 100,++ desMax: 500,++ imagesMax: 20,++ },++ themeColor: "blue",++ },++ ],++]);++export const AccountPlatInfoArr = Array.from(AccountPlatInfoMap);++++// 遍历设置 name getter++AccountPlatInfoMap.forEach((info) => {++ const rawName = info.name;++ Object.defineProperty(info, "name", {++ get() {++ return directTrans("account", rawName);++ },++ configurable: true,++ enumerable: true,++ });++});diff --cc project/aitoearn-web/src/app/config/publishConfig.tsindex 00000000,00000000..bba76ca7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/config/publishConfig.ts@@@ -1,0 -1,0 +1,6 @@@++// 发布类型++export enum PubType {++ VIDEO = "video", // 视频++ ImageText = "article", // 图文++ Article = "article2", // 纯文字++}diff --cc project/aitoearn-web/src/app/favicon.icoindex 00000000,00000000..c1af481anew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/app/globals.cssindex 00000000,00000000..cc498843new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/globals.css@@@ -1,0 -1,0 +1,65 @@@++@import "../assets/fonts/font.css";++++/* 全局样式重置 */++* {++ margin: 0;++ padding: 0;++ box-sizing: border-box;++}++++li {++ list-style: none;++}++++body {++ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,++ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',++ 'Noto Color Emoji';++ -webkit-font-smoothing: antialiased;++ -moz-osx-font-smoothing: grayscale;++}++++html,++body {++ max-width: 100vw;++ overflow-x: hidden;++ font-size: var(--fs-sm);++}++++body {++ color: var(--text-color);++ background: var(--background-color);++ -webkit-font-smoothing: antialiased;++ -moz-osx-font-smoothing: grayscale;++ min-height: 50vh;++}++++a {++ color: inherit;++ text-decoration: none;++}++++/* 全局自定义滚动条样式 */++.ant-table-body {++ scrollbar-width: auto;++ scrollbar-color: auto;++}++*::-webkit-scrollbar {++ width: 10px;++ height: 10px;++}++++*::-webkit-scrollbar-track {++ background: transparent;++ border-radius: 6px;++}++++*::-webkit-scrollbar-thumb {++ background: #cccccc;++ border-radius: 6px;++ border: 2px solid #f0f0f0;++}++++*::-webkit-scrollbar-thumb:hover {++ background: #a2a2a2;++}diff --cc project/aitoearn-web/src/app/globals.tsindex 00000000,00000000..b99ef751new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/globals.ts@@@ -1,0 -1,0 +1,3 @@@++export type PageParams = {++ params: Promise<{ lng: string }>;++};diff --cc project/aitoearn-web/src/app/healthz/layout.tsxindex 00000000,86f36c29..86f36c29mode 000000,100644..100644--- a/project/aitoearn-web/src/app/healthz/layout.tsx+++ b/project/aitoearn-web/src/app/healthz/layout.tsxdiff --cc project/aitoearn-web/src/app/healthz/page.tsxindex 00000000,4f418089..4f418089mode 000000,100644..100644--- a/project/aitoearn-web/src/app/healthz/page.tsx+++ b/project/aitoearn-web/src/app/healthz/page.tsxdiff --cc project/aitoearn-web/src/app/hooks/useCssVariables.tsindex 00000000,00000000..40fea41fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/hooks/useCssVariables.ts@@@ -1,0 -1,0 +1,78 @@@++"use client";++++import { useState, useEffect } from "react";++++/**++ * 自定义 Hook,用于获取多个 CSS 变量的值。++ * @param variableNames - CSS 变量名称数组(例如,['--main-color', '--secondary-color'])。++ * @param element - 获取 CSS 变量的元素(默认为 document.documentElement)。++ * @returns 一个对象,其中 CSS 变量名称作为键,变量值作为值。++ */++const useCssVariables = (++ variableNames: string[] = [++ "--theColor1",++ "--theColor2",++ "--theColor3",++ "--theColor4",++ "--theColor5",++ "--theColor6",++ "--theColor7",++ "--theColor8",++ "--theColor9",++ "--colorPrimary1",++ "--colorPrimary2",++ "--colorPrimary3",++ "--colorPrimary4",++ "--colorPrimary5",++ "--colorPrimary6",++ "--colorPrimary7",++ "--colorPrimary8",++ "--colorPrimary9",++ ],++ element?: HTMLElement,++): Record<string, string> => {++ const [variables, setVariables] = useState<Record<string, string>>({});++++ if (typeof window === "undefined") return variables;++++ element = element || document.documentElement;++++ useEffect(() => {++ const handleVariableChange = () => {++ const computedStyle = getComputedStyle(element);++ const newVariables = variableNames.reduce(++ (acc, name) => {++ acc[name] = computedStyle.getPropertyValue(name).trim();++ return acc;++ },++ {} as Record<string, string>,++ );++++ // 只有在变量值实际发生变化时才更新状态++ setVariables((prevVariables) => {++ const hasChanged = variableNames.some(++ (name) => prevVariables[name] !== newVariables[name],++ );++ return hasChanged ? newVariables : prevVariables;++ });++ };++++ // 初始获取++ handleVariableChange();++++ // 可选:观察元素样式的变化++ const observer = new MutationObserver(handleVariableChange);++ observer.observe(element, {++ attributes: true,++ attributeFilter: ["style", "class"],++ });++++ return () => {++ observer.disconnect();++ };++ }, [variableNames, element]);++++ return variables;++};++++export default useCssVariables;diff --cc project/aitoearn-web/src/app/i18n/client.tsindex 00000000,27f7a713..27f7a713mode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/client.ts+++ b/project/aitoearn-web/src/app/i18n/client.tsdiff --cc project/aitoearn-web/src/app/i18n/index.tsindex 00000000,00000000..23674612new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/index.ts@@@ -1,0 -1,0 +1,47 @@@++import { createInstance, Namespace, FlatNamespace, KeyPrefix } from "i18next";++import resourcesToBackend from "i18next-resources-to-backend";++import { initReactI18next } from "react-i18next/initReactI18next";++import { FallbackNs } from "react-i18next";++import { getOptions } from "./settings";++++const initI18next = async (lng: string, ns: string | string[]) => {++ // on server side we create a new instance for each render, because during compilation everything seems to be executed in parallel++ const i18nInstance = createInstance();++ await i18nInstance++ .use(initReactI18next)++ .use(++ resourcesToBackend(++ (language: string, namespace: string) =>++ import(`./locales/${language}/${namespace}.json`),++ ),++ )++ .init(getOptions(lng, ns));++ return i18nInstance;++};++++type $Tuple<T> = readonly [T?, ...T[]];++type $FirstNamespace<Ns extends Namespace> = Ns extends readonly any[]++ ? Ns[0]++ : Ns;++++export async function useTranslation<++ Ns extends FlatNamespace | $Tuple<FlatNamespace>,++ KPrefix extends KeyPrefix<++ FallbackNs<++ Ns extends FlatNamespace ? FlatNamespace : $FirstNamespace<FlatNamespace>++ >++ > = undefined,++>(lng: string, ns?: Ns, options: { keyPrefix?: KPrefix } = {}) {++ // @ts-ignore++ ns = ns || "translation";++ const i18nextInstance = await initI18next(++ lng,++ Array.isArray(ns) ? (ns as string[]) : (ns as string),++ );++ return {++ t: Array.isArray(ns)++ ? i18nextInstance.getFixedT(lng, ns[0], options.keyPrefix)++ : i18nextInstance.getFixedT(lng, ns as FlatNamespace, options.keyPrefix),++ i18n: i18nextInstance,++ };++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/account.jsonindex 00000000,907fd156..907fd156mode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/en/account.json+++ b/project/aitoearn-web/src/app/i18n/locales/en/account.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/en/cgmaterial.jsonindex 00000000,00000000..39d5147enew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/cgmaterial.json@@@ -1,0 -1,0 +1,134 @@@++{++ "header": {++ "title": "AI Draft Box",++ "importContent": "Import Content",++ "createGroup": "New Group"++ },++ "sidebar": {++ "noGroups": "No Groups",++ "noGroupsDesc": "Create your first group to organize materials",++ "selectGroup": "Select Group",++ "selectGroupDesc": "Choose a group from left to view materials",++ "edit": "Edit",++ "delete": "Delete",++ "deleteConfirm": "Delete Group",++ "deleteConfirmDesc": "Delete \"{{name}}\"?",++ "deleteSuccess": "Deleted",++ "deleteFailed": "Delete failed",++ "updateSuccess": "Updated",++ "updateFailed": "Update failed",++ "noDesc": "No description"++ },++ "content": {++ "noMaterials": "No Materials",++ "noMaterialsDesc": "Create your first material or batch generate",++ "createMaterial": "Create Material",++ "batchGenerate": "Batch Generate",++ "edit": "Edit",++ "generating": "Generating",++ "completed": "Completed"++ },++ "createGroup": {++ "title": "New Group",++ "name": "Name",++ "namePlaceholder": "Enter group name",++ "type": "Type",++ "typePlaceholder": "Select type",++ "imageText": "Image & Text",++ "video": "Video",++ "desc": "Description",++ "descPlaceholder": "Optional description",++ "createSuccess": "Group created",++ "createFailed": "Create failed",++ "getGroupsFailed": "Get groups failed",++ "getMaterialsFailed": "Get materials failed"++ },++ "createMaterial": {++ "title": "Create Material",++ "selectCoverGroup": "Select Cover Group",++ "selectCoverGroupDesc": "Select image group for cover",++ "selectVideoGroup": "Select Video Group",++ "selectVideoGroupDesc": "Select video group for content",++ "selectCover": "Select Cover",++ "selectVideo": "Select Video",++ "reselectCoverGroup": "Reselect Cover",++ "reselectVideoGroup": "Reselect Video",++ "coverMustBeImage": "Cover must be image",++ "imageGroupOnly": "Image group only",++ "videoGroupOnly": "Video group only",++ "selectMediaGroup": "Select media group",++ "selectCoverAndMaterials": "Select cover & materials",++ "selectCoverGroupRequired": "Select cover group",++ "selectVideoGroupRequired": "Select video group",++ "selectCoverRequired": "Select cover",++ "selectVideoRequired": "Select video",++ "createSuccess": "Material created",++ "createFailed": "Create failed"++ },++ "batchGenerate": {++ "title": "Batch Generate",++ "model": "Model",++ "modelPlaceholder": "Select model",++ "prompt": "Prompt",++ "promptPlaceholder": "Enter prompt",++ "titlePlaceholder": "Enter title",++ "descPlaceholder": "Enter description",++ "coverGroup": "Cover Group",++ "coverGroupPlaceholder": "Select cover group",++ "mediaGroups": "Media Groups",++ "mediaGroupsPlaceholder": "Select media groups",++ "num": "Count",++ "location": "Location",++ "preview": "Preview",++ "startTask": "Start Task",++ "cancel": "Cancel",++ "taskStarted": "Task started",++ "generateFailed": "Generate failed",++ "previewFailed": "Preview failed",++ "noPreview": "No preview"++ },++ "import": {++ "title": "Import Content",++ "selectAccount": "Select Account",++ "publishContent": "Published Content (Select to import)",++ "importSelected": "Import Selected",++ "selectToImport": "Select content to import",++ "selectGroupFirst": "Select group first",++ "importSuccess": "Imported {{count}} items",++ "importFailed": "Import failed",++ "getAccountsFailed": "Get accounts failed",++ "getPublishListFailed": "Get publish list failed"++ },++ "detail": {++ "title": "Material Detail",++ "titleLabel": "Title:",++ "descLabel": "Description:",++ "typeLabel": "Type:",++ "coverLabel": "Cover:",++ "materialsLabel": "Materials:",++ "statusLabel": "Status:",++ "noMaterials": "No materials"++ },++ "editGroup": {++ "title": "Edit Group",++ "namePlaceholder": "Enter new name",++ "enterName": "Enter name"++ },++ "editMaterial": {++ "title": "Edit Material",++ "updateSuccess": "Updated",++ "updateFailed": "Update failed"++ },++ "mediaGroupType": {++ "img": "Image",++ "video": "Video",++ "mixed": "Mixed"++ },++ "selectCover": "Select Cover",++ "selectMaterials": "Select Materials",++ "title": "Title",++ "description": "Description",++ "location": "Location",++ "mediaCount": "items",++ "pleaseCompleteForm": "Complete form"++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/common.jsonindex 00000000,b05ff8a9..b05ff8a9mode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/en/common.json+++ b/project/aitoearn-web/src/app/i18n/locales/en/common.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/en/dataStatistics.jsonindex 00000000,00000000..ed75e3dcnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/dataStatistics.json@@@ -1,0 -1,0 +1,23 @@@++{++ "title": "Data Statistics",++ "description": "View and analyze your data statistics here.",++ "accountData": "Account Data",++ "selectSpace": "Select Space",++ "inputAccountName": "Enter account name",++ "noAccount": "No accounts",++ "totalAccount": "Total Accounts",++ "online": "Online",++ "offline": "Offline",++ "fansCount": "Fans",++ "growthFansCount": "Growth Fans",++ "loginFailed": "Login Failed",++ "relogin": "Relogin",++ "dataDetails": "Data Details",++ "timeRange": "Time Range:",++ "yesterdayIncrease": "Yesterday Increase",++ "readCount": "Reads",++ "commentCount": "Comments",++ "likeCount": "Likes",++ "collectCount": "Collections",++ "forwardCount": "Shares"++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/engagement.jsonindex 00000000,00000000..8f5cb98enew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/engagement.json@@@ -1,0 -1,0 +1,28 @@@++{++ "title": "Engagement",++ "columns": {++ "postId": "Post ID",++ "platform": "Platform",++ "title": "Title",++ "mediaType": "Media Type",++ "publishTime": "Publish Time",++ "viewCount": "Views",++ "likeCount": "Likes",++ "commentCount": "Comments",++ "shareCount": "Shares",++ "clickCount": "Clicks",++ "impressionCount": "Impressions",++ "favoriteCount": "Favorites",++ "permaLink": "Link",++ "open": "Open"++ },++ "placeholders": {++ "uid": "Enter account UID"++ },++ "actions": {++ "search": "Search",++ "reset": "Reset"++ }++}++++diff --cc project/aitoearn-web/src/app/i18n/locales/en/home.jsonindex 00000000,00000000..9d0e1d4dnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/home.json@@@ -1,0 -1,0 +1,265 @@@++{++ "releaseBanner": {++ "tag": "Release v0.8.0",++ "text": "Build and Extend AI Workflows with Plugins and a Thriving Marketplace."++ },++ "header": {++ "logo": "Aitoearn",++ "nav": {++ "home": "Home",++ "marketplace": "Marketplace",++ "pricing": "Pricing",++ "status": "Status",++ "docs": "Docs",++ "blog": "Blog",++ "download": "Downloads"++++ },++ "getStarted": "Get Started"++ },++ "hero": {++ "stars": "105.2k",++ "starsText": "stars on",++ "github": "GitHub",++ "title": "The Best Content Marketing\nAI Agent",++ "subtitle": "From today on, easily manage your social media with AI. AITOEARN provides one-stop capabilities from creative inspiration, content creation, content distribution to content interaction management, making AI within reach.",++ "getStarted": "Get Started",++ "useMobilePhone": "use on mobile phone"++ },++ "brandBar": {++ "title": "Supported Social Media Platforms"++ },++ "buildSection": {++ "badge": "Feature 1",++ "title": "Content Publishing",++ "titleBlue": " — One-Click Multi-Platform",++ "features": {++ "hotTopic": {++ "title": "Distribute Everywhere",++ "description": "Publish to the widest range of global platforms (Douyin, Kwai, WeChat, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, YouTube, Pinterest, X)."++ },++ "international": {++ "title": "Calendar Scheduler",++ "description": "Plan & coordinate content like a calendar across all platforms. Unified Dashboard: Manage all interactions in one place."++ }++ },++ "carouselHint": "Use scroll wheel to switch images"++ },++ "hotspotSection": {++ "badge": "Feature 2",++ "title": "Content Hotspot — Viral Inspiration Engine",++ "titleBlue": "Case Library & Trend Radar",++ "features": {++ "hotTopic": {++ "title": "Case Library",++ "description": "Explore how others create posts with 10,000+ likes."++ },++ "international": {++ "title": "Trend Radar",++ "description": "Discover the latest viral trends instantly, reduce creator anxiety."++ }++ },++ "carouselHint": "Use scroll wheel to switch images"++ },++ "searchSection": {++ "badge": "Feature 3",++ "title": "Content Search — Brand & Market Insights",++ "titleBlue": "Brand Monitoring & Content Discovery",++ "features": {++ "hotTopic": {++ "title": "Brand Monitoring",++ "description": "Track conversations about your brand in real-time."++ },++ "international": {++ "title": "Content Discovery",++ "description": "Search for posts, topics, and communities for targeted engagement."++ }++ },++ "carouselHint": "Use scroll wheel to switch images"++ },++ "commentsSection": {++ "badge": "Feature 4",++ "title": "Comments Search — Precision User Mining",++ "titleBlue": "Smart Comment Search & Conversion Booster",++ "features": {++ "hotTopic": {++ "title": "Smart Comment Search",++ "description": "Detect high-conversion signals like \"link please\" or \"how to buy.\""++ },++ "international": {++ "title": "Conversion Booster",++ "description": "Reply instantly, drive higher engagement & sales."++ }++ },++ "carouselHint": "Use scroll wheel to switch images"++ },++ "connectSection": {++ "badge": "Feature 5",++ "title": "Content Engagement — Growth Engine",++ "titleBlue": "Unified Dashboard & Proactive Engagement",++ "features": {++ "creation": {++ "title": "Unified Dashboard",++ "description": "Manage all interactions in one place."++ },++ "distribution": {++ "title": "Proactive Engagement",++ "description": "Join trending conversations, connect with potential customers. Turn passive operations into active traffic growth."++ }++ },++ "carouselHint": "Use scroll wheel to switch images"++ },++ "upcomingSection": {++ "badge": "Coming Soon",++ "title": "Full-Stack AI-Powered Content Growth & Monetization Platform",++ "titleBlue": "Coming Soon Features, Stay Tuned",++ "features": {++ "smartImport": {++ "title": "Smart Import",++ "description": "Import historical content for fast re-editing & redistribution. Example: Sync your Xiaohongshu posts to YouTube in one click."++ },++ "analytics": {++ "title": "Content Analytics — Full-Funnel Data",++ "description": "Cross-Platform Comparison: One platform may block traffic, but others won't. End-to-End Monitoring: Track performance and build your path to 1M+ followers."++ },++ "aiCreation": {++ "title": "AI Content Creation — End-to-End Assistant",++ "description": "AI Copywriting: Auto-generate titles, captions & descriptions. AI Commenting: Engage proactively, attract traffic. Image & Card Generator: Speed up content workflows. Supported AI Video Models and Image Models."++ },++ "marketplace": {++ "title": "Content Marketplace — Trade & Monetize",++ "description": "Creators: Sell your content directly, find buyers fast. Brands: Purchase ready-made, high-quality content. AI-Powered Growth: Let's use AI to earn. Let's earn money together!"++ }++ }++ },++ "downloadSection": {++ "title": "Start Creating Anytime, Anywhere",++ "titleBlue": "Easy Management on Mobile Too",++ "description": "With the AI ToEarn mobile app, your creativity is no longer limited to desktop. We also provide iOS and Android mobile apps for you to unleash your creativity anytime, anywhere, with just one phone!",++ "qrCodeText": "Scan QR Code to Download",++ "appStore": {++ "text": "Download on the",++ "store": "App Store"++ },++ "googlePlay": {++ "text": "GET IT ON",++ "store": "Google Play"++ }++ },++ "enterpriseSection": {++ "badge": "Enterprise Service",++ "title": "Professional AI Social Media Solutions",++ "titleBlue": "Powering Enterprise Marketing Success",++ "subtitle": "Enterprise AI marketing transformation requires not just tools, but solid infrastructure. AI ToEarn provides a reliable platform to distribute AI content creation capabilities across multiple departments for unparalleled marketing efficiency."++ },++ "statsSection": {++ "stats": {++ "users": {++ "number": "50K+",++ "label": "Users"++ },++ "platforms": {++ "number": "15+",++ "label": "Social Platforms"++ },++ "countries": {++ "number": "100+",++ "label": "Countries"++ },++ "content": {++ "number": "5M+",++ "label": "Content Published"++ }++ },++ "testimonial": {++ "quote": "In today's highly competitive content marketing landscape, rapid validation and creation tools are not just helpful—they're essential for survival. For marketing companies like ours, AI ToEarn provides indispensable value in this AI frontier.",++ "author": "John Smith",++ "title": "Content Operations Director at Leading MCN Agency"++ },++ "caseStudies": {++ "timeSaved": {++ "title": "Estimated annual content creation time saved",++ "number": "50,000 hours"++ },++ "aiAssistant": {++ "title": "AI Marketing Assistant: Serving 500+ enterprise clients with cross-platform content distribution"++ }++ }++ },++ "communitySection": {++ "badge": "Community Ecosystem",++ "title": "Join Our",++ "titleBlue": "Active Creator Community",++ "subtitle": "AI ToEarn is powered by a global community of AI content creators. Join us to explore the infinite boundaries of AI content marketing.",++ "buttons": {++ "wechat": "WeChat Group",++ "community": "Creator Community"++ },++ "wechatPopup": "Scan QR code to follow WeChat Official Account",++ "communityPopup": "Scan QR code to join community group",++ "stats": {++ "downloads": {++ "number": "200K+",++ "label": "Downloads"++ },++ "members": {++ "number": "15K",++ "label": "Community Members"++ },++ "creators": {++ "number": "500+",++ "label": "Active Creators"++ }++ }++ },++ "footer": {++ "resources": {++ "title": "Resources",++ "links": {++ "docs": "Documentation",++ "blog": "Blog",++ "download": "Downloads",++ "education": "Education",++ "partner": "Partners",++ "support": "Support",++ "roadmap": "Roadmap"++ }++ },++ "company": {++ "title": "Company",++ "links": {++ "talk": "Contact Us",++ "terms": "Terms of Service",++ "privacy": "Privacy Policy",++ "cookies": "Cookie Settings",++ "data": "Data Protection Agreement",++ "marketplace": "Marketplace Agreement",++ "brand": "Brand Guidelines"++ }++ },++ "description": "AI ToEarn one-stop social media management platform solution, from creative inspiration to content creation, from content distribution to content interaction management",++ "social": {++ "github": "GitHub",++ "discord": "Discord",++ "youtube": "YouTube",++ "linkedin": "LinkedIn",++ "twitter": "Twitter"++ },++ "bigText": "Let's Use AI To",++ "copyright": "© 2025 AITOEARN, Corp.",++ "tagline": "",++ "dataDeletion": {++ "title": "Data Deletion Instructions",++ "prelaunch": "Our application is currently in pre-launch phase and does not store real user data. If you have interacted with our test systems, contact us for data removal.",++ "standardTitle": "Standard Procedure (Post-Launch):",++ "standardSteps": [++ "Log in to your AiToEarn account",++ "Navigate to Settings > Privacy",++ "Click \"Request Account Deletion\"",++ "Confirmation will be sent to your registered email"++ ],++ "contactTitle": "Contact for Assistance:",++ "contactEmail": "Email: [email protected] (Pre-launch inquiries only)"++ }++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/hot-content.jsonindex 00000000,00000000..ca82c129new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/hot-content.json@@@ -1,0 -1,0 +1,60 @@@++{++ "all": "All",++ "loading": "Loading...",++ "noData": "No Data",++ "rank": "Rank",++ "cover": "Cover",++ "title": "Title",++ "author": "Author",++ "category": "Category",++ "likes": "Likes",++ "shares": "Shares",++ "comments": "Comments",++ "collections": "Collections",++ "publishTime": "Published at",++ "fans": "Fans",++ "viewMore": "View More",++ "timeRange": "Time Range",++ "filter": "Filter",++ "hotTopics": "Hot Topics",++ "viralTitles": "Viral Titles",++ "topics": "Topics",++ "engagement": "Engagement",++ "rising": "Hot",++ "noHotTopics": "No hot topics data",++ "noViralTitles": "No viral titles data",++ "noTopicData": "No topic data",++ "total": "Total",++ "items": "items",++ "video": "Video",++ "noImage": "No Image",++ "platform": "Platform",++ "hotEvents": "Hot Events",++ "hotContent": "Hot Content",++ "noTitle": "No Title",++ "baseInfo": "Base Info",++ "views": "Views",++ "recommend": "Recommend",++ "watch": "Watch",++ "dailyRank": "Daily Rank",++ "updateFrequency": "Update Frequency",++ "statEndTime": "Stat End Time",++ "daily": "Daily",++ "sortRule": "Sort Rule",++ "sortRuleDesc": "Top 500 works by likes of the day are recommended",++ "dataDescription": "Data Description",++ "expand": "Expand",++ "collapse": "Collapse",++ "hotValue": "Hot Value",++ "hotTrend": "Hot Trend",++ "shortDrama": "Short Drama",++ "cultureTourism": "Culture & Tourism",++ "contentOverseas": "Content Overseas",++ "hot": "Hot",++ "last3days": "Last 3 days",++ "last7days": "Last 7 days",++ "last15days": "Last 15 days",++ "last30days": "Last 30 days",++ "backToAll": "Back to All",++ "last90days": "Last 90 days"++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/imageEditor.jsonindex 00000000,00000000..7e5342acnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/imageEditor.json@@@ -1,0 -1,0 +1,3 @@@++{++ "imageEditing": "image editing"++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/income.jsonindex 00000000,00000000..6f8b0b01new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/income.json@@@ -1,0 -1,0 +1,47 @@@++{++ "title": "My Income",++ "subtitle": "Manage your income records and withdrawal applications",++ "currentBalance": "Current Balance",++ "incomeRecords": "Income Records",++ "withdrawRecords": "Withdrawal Records",++ "incomeId": "Income ID",++ "amount": "Amount",++ "type": "Type",++ "description": "Description",++ "createTime": "Create Time",++ "actions": "Actions",++ "applyWithdraw": "Apply Withdrawal",++ "withdrawId": "Withdrawal ID",++ "status": "Status",++ "updateTime": "Update Time",++ "confirmWithdraw": "Confirm Withdrawal Application",++ "cancel": "Cancel",++ "confirm": "Confirm Withdrawal",++ "withdrawAmount": "Withdrawal Amount",++ "incomeType": "Income Type",++ "withdrawWarning": "⚠️ After submitting your withdrawal application, we will process your request within 1-3 business days.",++ "withdrawWarning2": "Please ensure your account information is correct. After successful withdrawal, the amount will be transferred to your designated account.",++ "incomeTypes": {++ "task": "Task Income",++ "task_back": "Task Refund",++ "reward_back": "Reward Refund",++ "task_withdraw": "Task Withdrawal"++ },++ "withdrawStatus": {++ "wait": "Waiting",++ "success": "Withdrawal Successful",++ "fail": "Withdrawal Failed",++ "task_withdraw": "Task Withdrawal"++ },++ "messages": {++ "getIncomeRecordsFailed": "Failed to get income records",++ "getWithdrawRecordsFailed": "Failed to get withdrawal records",++ "withdrawSubmitted": "Withdrawal application submitted successfully",++ "withdrawFailed": "Failed to submit withdrawal application",++ "pleaseLoginFirst": "Please login first",++ "noIncomeRecords": "No income records",++ "noWithdrawRecords": "No withdrawal records",++ "loading": "Loading...",++ "totalRecords": "Total {{total}} records"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/interactive.jsonindex 00000000,00000000..d4db3791new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/interactive.json@@@ -1,0 -1,0 +1,41 @@@++{++ "title": "Interactive Management",++ "messages": {++ "pleaseLoginFirst": "Please login first",++ "commentSuccess": "Comment posted successfully",++ "commentFailed": "Failed to post comment, please try again",++ "replySuccess": "Reply posted successfully",++ "replyFailed": "Failed to post reply, please try again"++ },++ "ui": {++ "selectChannel": "Please select a channel for interaction on the left",++ "selectChannelDesc": "After selecting an account, the latest posts from that channel will be automatically loaded with comment interaction features.",++ "loadMore": "Load More",++ "noMorePosts": "No more posts",++ "loading": "Loading...",++ "sending": "Sending...",++ "send": "Send",++ "reply": "Reply",++ "expandReplies": "Expand Replies",++ "collapseReplies": "Collapse Replies",++ "loadMoreReplies": "Load More Replies",++ "loadMoreComments": "Load More Comments",++ "commentPlaceholder": "Enter comment...",++ "replyPlaceholder": "Reply to @{name}",++ "noImage": "No Image"++ },++ "stats": {++ "likes": "Likes",++ "comments": "Comments",++ "views": "Views",++ "shares": "Shares",++ "clicks": "Clicks",++ "impressions": "Impressions",++ "favorites": "Favorites"++ },++ "mediaTypes": {++ "video": "Video",++ "image": "Image",++ "article": "Article"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/login.jsonindex 00000000,1d2599d1..1d2599d1mode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/en/login.json+++ b/project/aitoearn-web/src/app/i18n/locales/en/login.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/en/material.jsonindex 00000000,00000000..144c5b12new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/material.json@@@ -1,0 -1,0 +1,162 @@@++{++ "mediaManagement": {++ "title": "Media Management",++ "createGroup": "Create Media Group",++ "editGroup": "Edit Media Group",++ "aiVideoGenerate": "AI Video Gen",++ "groupName": "Group Name",++ "groupNamePlaceholder": "Enter group name",++ "description": "Description",++ "descriptionPlaceholder": "Enter description (optional)",++ "type": "Type",++ "video": "Video",++ "image": "Image",++ "create": "Create",++ "save": "Save",++ "cancel": "Cancel",++ "delete": "Delete",++ "edit": "Edit",++ "deleteConfirm": "Delete this media group?",++ "createSuccess": "Created successfully",++ "createFailed": "Create failed",++ "updateSuccess": "Updated successfully",++ "updateFailed": "Update failed",++ "deleteSuccess": "Deleted successfully",++ "deleteFailed": "Delete failed",++ "getListFailed": "Get list failed",++ "noGroups": "No media groups",++ "noGroupsDesc": "Create your first media group to manage materials",++ "createNow": "Create Now",++ "resources": " resources",++ "noDescription": "No description"++ },++ "aiGenerate": {++ "title": "AI Tools",++ "backToAlbum": "Back to Album",++ "textToImage": "Text to Image",++ "fireflyCard": "Firefly Card",++ "videoGeneration": "Video Generation",++ "prompt": "Prompt",++ "promptPlaceholder": "Enter prompt",++ "width": "Width",++ "height": "Height",++ "generate": "Generate",++ "generating": "Generating...",++ "content": "Content",++ "contentPlaceholder": "Enter content",++ "titlePlaceholder": "Enter title",++ "template": "Template",++ "uploadToMediaGroup": "Upload to Media Group",++ "selectMediaGroup": "Select Media Group",++ "selectMediaGroupPlaceholder": "Please select media group",++ "upload": "Upload",++ "uploading": "Uploading...",++ "uploadSuccess": "Upload successful",++ "uploadFailed": "Upload failed",++ "getMediaGroupListFailed": "Failed to get media group list",++ "pleaseEnterPrompt": "Please enter prompt",++ "pleaseSelectMediaGroup": "Please select media group",++ "pleaseEnterContent": "Please enter content",++ "pleaseEnterTitle": "Please enter title",++ "selectSize": "Select Size",++ "generateCount": "Generate Count",++ "imageQuality": "Image Quality",++ "imageStyle": "Image Style",++ "selectModel": "Select Model",++ "standard": "Standard",++ "hd": "HD",++ "vivid": "Vivid",++ "natural": "Natural",++ "goldCardTemplate": "Gold Card Template",++ "memoTemplate": "Memo Template",++ "simpleTemplate": "Simple Template",++ "blackSunTemplate": "Black Sun Template",++ "templateE": "Template E",++ "writingTemplate": "Writing Template",++ "codeTemplate": "Code Template",++ "templateD": "Template D",++ "videoPromptPlaceholder": "Enter video description",++ "videoDuration": "Video Duration",++ "videoSize": "Video Size",++ "videoMode": "Generation Mode",++ "uploadImage": "Upload Image",++ "firstFrame": "First Frame",++ "tailFrame": "Tail Frame",++ "imageUrlPlaceholder": "Image URL or base64",++ "taskStatus": "Task Status",++ "taskSubmitted": "Task Submitted",++ "taskProcessing": "Task Processing",++ "taskCompleted": "Task Completed",++ "taskFailed": "Task Failed",++ "checkStatus": "Check Status",++ "videoGenerationFailed": "Video generation failed",++ "videoGenerationSuccess": "Video generation successful",++ "pleaseEnterVideoPrompt": "Please enter video description",++ "pleaseSelectVideoModel": "Please select video model",++ "videoUploadSuccess": "Video upload successful",++ "videoUploadFailed": "Video upload failed",++ "md2card": "Markdown to Card",++ "markdownPlaceholder": "Enter Markdown content",++ "selectTheme": "Select Theme",++ "themeMode": "Theme Mode",++ "lightMode": "Light Mode",++ "darkMode": "Dark Mode",++ "cardWidth": "Card Width",++ "cardHeight": "Card Height",++ "splitMode": "Split Mode",++ "noSplit": "No Split",++ "split": "Split",++ "mdxMode": "MDX Mode",++ "overHiddenMode": "Overflow Hidden",++ "generateCard": "Generate Card",++ "cardGenerationFailed": "Card generation failed",++ "cardUploadSuccess": "Card upload successful",++ "cardUploadFailed": "Card upload failed",++ "pleaseEnterMarkdown": "Please enter Markdown content",++ "imageGenerationFailed": "Image generation failed",++ "fireflyCardGenerationFailed": "Firefly card generation failed",++ "pleaseEnterContentAndTitle": "Please enter content and title",++ "taskSubmittedSuccess": "Task submitted",++ "videoGenerationSuccess": "Video generation successful",++ "checkVideoTaskStatusFailed": "Check video task status failed",++ "pleaseEnterVideoDescription": "Please enter video description",++ "selectSizePlaceholder": "Select size",++ "generateCountPlaceholder": "Generate count",++ "imageQualityPlaceholder": "Image quality",++ "imageStylePlaceholder": "Image style",++ "selectModelPlaceholder": "Select model",++ "selectVideoModelPlaceholder": "Select video model",++ "textToVideo": "Text to Video",++ "imageToVideo": "Image to Video",++ "seconds": "s",++ "selectThemePlaceholder": "Select theme",++ "themeModePlaceholder": "Theme mode",++ "cardWidthPlaceholder": "Card width",++ "cardHeightPlaceholder": "Card height",++ "splitModePlaceholder": "Split mode",++ "markdownToCard": "Markdown to Card",++ "markdownCard": "Markdown Card",++ "templateA": "Default",++ "templateB": "Transparent",++ "templateC": "Quote",++ "templateJin": "Book",++ "templateMemo": "Memo",++ "templateEasy": "Border",++ "templateWrite": "Handwriting",++ "pleaseUploadFirstFrame": "Please upload first frame image",++ "pleaseUploadTailFrame": "Please upload tail frame image",++ "imageRequirements": "Image Requirements",++ "aspectRatioRange": "Aspect Ratio Range",++ "aspectRatioRangeValue": "(0.4, 2.5)",++ "dimensionRange": "Dimension Range",++ "dimensionRangeValue": "(300px, 6000px)",++ "imageSizeLimit": "Image Size Limit",++ "imageSizeLimitValue": "Less than 30MB",++ "imageFormatSupport": "Supported Formats",++ "imageFormatSupportValue": "JPG, PNG, WEBP",++ "estimatedCreditCost": "Estimated Credit Cost",++ "credits": "credits",++ "getImageModelsFailed": "Failed to get image generation models",++ "getVideoModelsFailed": "Failed to get video generation models"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/notification.jsonindex 00000000,00000000..9d338740new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/notification.json@@@ -1,0 -1,0 +1,91 @@@++{++ "title": "Notifications",++ "detailTitle": "Notification Details",++ "markAllAsRead": "Mark All as Read",++ "markAsRead": "Mark as Read",++ "delete": "Delete",++ "close": "Close",++ "noNotifications": "No notifications",++ "confirmDelete": "Are you sure you want to delete this notification?",++ "confirm": "Confirm",++ "cancel": "Cancel",++ "deleteSuccess": "Deleted successfully",++ "deleteFailed": "Delete failed",++ "markSuccess": "Marked successfully",++ "markFailed": "Mark failed",++ "markAllSuccess": "All marked successfully",++ "getNotificationListFailed": "Failed to get notification list",++ "getNotificationDetailFailed": "Failed to get notification details",++ "createTime": "Create Time",++ "readTime": "Read Time",++ "taskDetail": "Task Details",++ "acceptTask": "Accept Task",++ "noTaskDetails": "No task details",++ "taskProcessing": "Processing Task...",++ "acceptingTask": "Accepting task...",++ "publishingTask": "Publishing task...",++ "submittingTask": "Submitting task...",++ "taskCompleted": "Task Completed",++ "taskProcessFailed": "Task processing failed",++ "acceptTaskFailed": "Failed to accept task",++ "publishTaskFailed": "Failed to publish task",++ "submitTaskFailed": "Failed to submit task",++ "getTaskDetailFailed": "Failed to get task details",++ "accountInfoFailed": "Failed to get account information",++ "appRequiredNotice": "⚠️ Notice:",++ "appRequiredMessage": "Tasks from publisher account ({{platform}}) require mobile app operation. Please download the corresponding app to continue.",++ "mediaPreview": "Media Preview",++ "pageInfo": "{{start}}-{{end}} of {{total}} records",++ "notificationTypes": {++ "system": "System Notification",++ "user": "User Notification",++ "material": "Material Notification",++ "task_reminder": "Task Reminder",++ "other": "Other Notification"++ },++ "taskStatus": {++ "active": "Active",++ "inactive": "Inactive"++ },++ "taskInfo": {++ "description": "Description",++ "publisherAccount": "Publisher Account",++ "reward": "Reward",++ "taskType": "Task Type",++ "platformTypes": "Supported Platforms"++ },++ "taskTypes": {++ "video": "Video",++ "article": "Article",++ "article2": "Text Only"++ },++ "platforms": {++ "tiktok": "TikTok",++ "youtube": "YouTube",++ "twitter": "Twitter",++ "bilibili": "Bilibili",++ "KWAI": "Kwai",++ "douyin": "Douyin",++ "xhs": "Xiaohongshu",++ "wxSph": "WeChat Video",++ "wxGzh": "WeChat Official",++ "facebook": "Facebook",++ "instagram": "Instagram",++ "threads": "Threads",++ "pinterest": "Pinterest"++ },++ "time": {++ "justNow": "Just now",++ "minutesAgo": "{{minutes}} minutes ago",++ "hoursAgo": "{{hours}} hours ago",++ "daysAgo": "{{days}} days ago"++ },++ "accountSelect": {++ "title": "Select Publisher Account",++ "description": "Please select an account to publish the task:",++ "noAccounts": "No eligible accounts found, please add an account first",++ "redirectingToAccounts": "Redirecting to accounts page, please add eligible accounts",++ "accountId": "Account ID",++ "description": "Description"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/pinterest.jsonindex 00000000,00000000..8ad83e6bnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/pinterest.json@@@ -1,0 -1,0 +1,120 @@@++{++ "title": "Pinterest Management",++ "tabs": {++ "boards": "My Boards",++ "pins": "My Pins"++ },++ "actions": {++ "selectAccount": "Select Account",++ "refresh": "Refresh",++ "createBoard": "Create Board",++ "createPin": "Create Pin",++ "search": "Search...",++ "view": "View",++ "edit": "Edit",++ "delete": "Delete",++ "link": "Link",++ "change": "Change"++ },++ "stats": {++ "followers": "Followers",++ "boardCount": "Board Count",++ "pinCount": "Pin Count",++ "monthlyViews": "Monthly Views"++ },++ "board": {++ "createTitle": "Create New Board",++ "name": "Board Name",++ "namePlaceholder": "Enter board name",++ "description": "Description",++ "descriptionPlaceholder": "Enter board description",++ "privacy": "Privacy Settings",++ "public": "Public",++ "private": "Private",++ "createButton": "Create Board",++ "deleteConfirm": "Are you sure to delete this board?",++ "detailTitle": "Board Details",++ "createTime": "Created Time",++ "noDescription": "No description"++ },++ "pin": {++ "createTitle": "Create New Pin",++ "selectBoard": "Pinning To",++ "selectBoardPlaceholder": "Select board to publish to",++ "uploadImage": "Upload Image",++ "uploadImagePlaceholder": "Click to upload image to OSS",++ "uploadHint": "Supports JPG, PNG, GIF formats, max 10MB",++ "uploading": "Uploading to OSS...",++ "uploadSuccess": "✓ Upload successful",++ "reupload": "Re-upload",++ "ossUrl": "OSS URL",++ "title": "Title",++ "titlePlaceholder": "Enter pin title",++ "description": "Description",++ "descriptionPlaceholder": "Enter pin description",++ "link": "Link",++ "linkPlaceholder": "Enter target link (optional)",++ "altText": "Alt Text",++ "altTextPlaceholder": "Enter image alt text (optional)",++ "dominantColor": "Dominant Color",++ "dominantColorTip": "Select pin's dominant color",++ "createButton": "Create Pin",++ "deleteConfirm": "Are you sure to delete this pin?",++ "detailTitle": "Pin Details",++ "pinId": "Pin ID",++ "boardId": "Board ID",++ "creativeType": "Creative Type",++ "boardOwner": "Board Owner",++ "isOwner": "Owner",++ "isRemovable": "Removable",++ "isStandard": "Standard Pin",++ "noDescription": "No description",++ "imageAlt": "Pin image"++ },++ "badges": {++ "pins": "Pins",++ "followers": "Followers",++ "owner": "Owner",++ "yes": "Yes",++ "no": "No",++ "selected": "Selected"++ },++ "empty": {++ "noBoards": "No boards",++ "noPins": "No pins"++ },++ "pagination": {++ "total": "{range} of {total} items"++ },++ "messages": {++ "loadAccountsFailed": "Failed to load account list",++ "loadBoardsFailed": "Failed to load board list",++ "loadPinsFailed": "Failed to load pin list",++ "boardCreateSuccess": "Board created successfully",++ "boardCreateFailed": "Failed to create board",++ "boardDeleteSuccess": "Board deleted successfully",++ "boardDeleteFailed": "Failed to delete board",++ "pinCreateSuccess": "Pin created successfully",++ "pinCreateFailed": "Failed to create pin",++ "pinDeleteSuccess": "Pin deleted successfully",++ "pinDeleteFailed": "Failed to delete pin",++ "getBoardDetailFailed": "Failed to get board details",++ "getPinDetailFailed": "Failed to get pin details",++ "uploadImageFirst": "Please upload an image first",++ "selectImageFile": "Please select an image file",++ "imageSizeLimit": "Image size cannot exceed 10MB",++ "imageUploadSuccess": "Image uploaded successfully",++ "imageUploadFailed": "Image upload failed, please try again",++ "noAccountFound": "No Pinterest account found"++ },++ "validation": {++ "boardNameRequired": "Please enter board name",++ "selectBoardRequired": "Please select a board",++ "titleRequired": "Please enter title",++ "descriptionRequired": "Please enter description"++ },++ "confirm": {++ "ok": "OK",++ "cancel": "Cancel"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/pricing.jsonindex 00000000,00000000..02f14103new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/pricing.json@@@ -1,0 -1,0 +1,433 @@@++{++++++ "title": "Pricing & Plans",++ "subtitle": "Choose the plan that best fits your needs and start your AI creation journey",++ "monthly": "Monthly",++ "yearly": "Yearly",++ "save25": "Save 25%",++ "save50": "Save 50%",++ "month": "month",++ "credits": "Credits",++ "videos": "Videos",++ "images": "Images",++ "flashSale50": "Flash Sale 50%",++ "mostPopular": "Most Popular",++ "plans": {++ "free": {++ "name": "Free",++ "credits": "60 Credits",++ "videos": "60 Videos/month",++ "images": "120 Images/month",++ "button": "Get Started"++ },++ "plus": {++ "name": "Plus",++ "credits": "700 Credits",++ "videos": "700 Videos/month",++ "images": "1400 Images/month",++ "button": "Get Plus"++ }++ },++ "features": {++ "textModeration": "Text Moderation",++ "imageModeration": "Image Moderation",++ "videoModeration": "Video Moderation",++ "multiModel": "Multi-Model Support",++ "textToVideo": "Text to Video",++ "imageToVideo": "Image to Video",++ "videoToVideo": "Video to Video",++ "consistentCharacter": "Consistent Character",++ "aiAnimation": "AI Animation",++ "aiImage": "AI Image",++ "voiceClone": "Voice Clone",++ "voiceSynthesis": "Voice Synthesis",++ "fasterSpeed": "Faster Speed",++ "withWatermark": "With Watermark",++ "noWatermark": "No Watermark",++ "storage500M": "500M Storage",++ "storage5G": "5G Storage"++ },++ "faq": {++ "title": "Frequently Asked Questions",++ "paymentMethods": {++ "question": "What payment methods do you support?",++ "answer": "We support multiple payment methods, including major credit cards (Visa, MasterCard, American Express) as well as Alipay. If you are using our services in China, you can purchase one-time services with Alipay."++ },++ "creditDeduction": {++ "question": "How are credits deducted for image and video generation?",++ "answer": "Our pricing for image and video generation is aligned with the official channels. If bulk purchases from the official channels come with discounts, we will also pass those discounts on to you.",++ "pricingTable": {++ "title": "Detailed Pricing Table",++ "headers": {++ "model": "Model",++ "type": "Type",++ "duration": "Duration",++ "resolution": "Resolution",++ "notes": "Notes",++ "credits": "Credits",++ "price": "Price",++ "channel": "Channel"++ },++ "rows": [++ {++ "model": "gpt-5",++ "type": "Large Model",++ "duration": "",++ "resolution": "",++ "notes": "Large model pricing follows official pricing",++ "credits": "Per million tokens",++ "price": "Input ¥9, Output ¥72",++ "channel": "yun"++ },++ {++ "model": "gpt-5-mini",++ "type": "Large Model",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "",++ "price": "Input ¥1.8, Output ¥14.4",++ "channel": "yun"++ },++ {++ "model": "gpt-5-nano",++ "type": "Large Model",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "",++ "price": "Input ¥0.36, Output ¥2.88",++ "channel": "yun"++ },++ {++ "model": "gemini-2.5-pro",++ "type": "Large Model",++ "duration": "",++ "resolution": "Video Support",++ "notes": "",++ "credits": "",++ "price": "Input ¥9, Output ¥72",++ "channel": "yun"++ },++ {++ "model": "chatgpt-4o-latest",++ "type": "Large Model",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "",++ "price": "Input ¥36, Output ¥108",++ "channel": "yun"++ },++ {++ "model": "gemini-2.5-flash",++ "type": "Large Model",++ "duration": "",++ "resolution": "Video Support",++ "notes": "",++ "credits": "",++ "price": "Input ¥2.16, Output ¥18",++ "channel": "yun"++ },++ {++ "model": "qwen-vl-max-latest",++ "type": "Large Model",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "",++ "price": "Input ¥1.6, Output ¥4",++ "channel": "yun"++ },++ {++ "model": "gemini-2.5-flash-image",++ "type": "Image Generation",++ "duration": "",++ "resolution": "",++ "notes": "Also known as nano banana, supports multi-image input",++ "credits": "1 credit",++ "price": "¥0.27",++ "channel": "yun"++ },++ {++ "model": "seedream-3.0",++ "type": "Image Generation",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "2.6 credits",++ "price": "¥0.26",++ "channel": "Official"++ },++ {++ "model": "seededit-3.0",++ "type": "Image Generation",++ "duration": "",++ "resolution": "",++ "notes": "Image editing, supports jpeg, png formats",++ "credits": "3 credits",++ "price": "¥0.3",++ "channel": "Official"++ },++ {++ "model": "gpt-image-1",++ "type": "Image Generation",++ "duration": "",++ "resolution": "Image editing support",++ "notes": "",++ "credits": "Promotion",++ "price": "Low $0.011-0.016, Medium $0.042-0.063, High $0.167-0.25",++ "channel": "yun"++ },++ {++ "model": "FLUX.1 Kontext [max]",++ "type": "Image Generation",++ "duration": "",++ "resolution": "Image editing support",++ "notes": "",++ "credits": "1.5 credits",++ "price": "¥0.6",++ "channel": "yun"++ },++ {++ "model": "FLUX.1 Kontext [pro]",++ "type": "Image Generation",++ "duration": "",++ "resolution": "Image editing support",++ "notes": "",++ "credits": "1 credit",++ "price": "¥0.3",++ "channel": "yun"++ },++ {++ "model": "Flux 1.1 pro ultra",++ "type": "Image Generation",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "4.5 credits",++ "price": "¥0.45",++ "channel": "Official"++ },++ {++ "model": "Flux1.1 pro",++ "type": "Image Generation",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "3 credits",++ "price": "¥0.3",++ "channel": "Official"++ },++ {++ "model": "midjourney relax",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "",++ "notes": "",++ "credits": "Free",++ "price": "",++ "channel": "yun"++ },++ {++ "model": "midjourney fast/turbo",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "",++ "notes": "",++ "credits": "4 credits",++ "price": "",++ "channel": "yun"++ },++ {++ "model": "kling1.5/1.6/2.1",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "720p",++ "notes": "",++ "credits": "20 credits",++ "price": "¥2",++ "channel": "yun"++ },++ {++ "model": "kling1.5/1.6/2.1",++ "type": "Video Generation",++ "duration": "10s",++ "resolution": "720p",++ "notes": "",++ "credits": "40 credits",++ "price": "¥4",++ "channel": "yun"++ },++ {++ "model": "kling1.5/1.6/2.1",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "1080p",++ "notes": "",++ "credits": "35 credits",++ "price": "¥3.5",++ "channel": "yun"++ },++ {++ "model": "kling1.5/1.6/2.1",++ "type": "Video Generation",++ "duration": "10s",++ "resolution": "1080p",++ "notes": "",++ "credits": "70 credits",++ "price": "¥7",++ "channel": "yun"++ },++ {++ "model": "kling2.1大师",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "1080p",++ "notes": "",++ "credits": "100 credits",++ "price": "¥10",++ "channel": "yun"++ },++ {++ "model": "kling2.1大师",++ "type": "Video Generation",++ "duration": "10s",++ "resolution": "1080p",++ "notes": "",++ "credits": "200 credits",++ "price": "¥20",++ "channel": "yun"++ },++ {++ "model": "wan2.2-plus",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "480p",++ "notes": "",++ "credits": "70 credits",++ "price": "¥0.7",++ "channel": "yun"++ },++ {++ "model": "wan2.2-plus",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "1080p",++ "notes": "",++ "credits": "35 credits",++ "price": "¥3.5",++ "channel": "yun"++ },++ {++ "model": "wan2.1-turbo(14b)",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "720p",++ "notes": "Do not use volcano channel",++ "credits": "12 credits",++ "price": "¥1.2",++ "channel": "yun"++ },++ {++ "model": "wan2.1-plus",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "720p",++ "notes": "Supports first and last frames",++ "credits": "35 credits",++ "price": "¥3.5",++ "channel": "yun"++ },++ {++ "model": "wanx2.1-vace-plus",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "720p",++ "notes": "Video editing",++ "credits": "35 credits",++ "price": "¥3.5",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-pro",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "480p",++ "notes": "Supports 10s",++ "credits": "7.2 credits",++ "price": "¥0.72",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-pro",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "720p",++ "notes": "10s price doubles",++ "credits": "16.4 credits",++ "price": "¥1.64",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-pro",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "1080p",++ "notes": "",++ "credits": "36.7 credits",++ "price": "¥3.67",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-lite",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "480p",++ "notes": "Supports first and last frames",++ "credits": "5 credits",++ "price": "¥0.5",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-lite",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "720p",++ "notes": "Supports 10s",++ "credits": "11 credits",++ "price": "¥1.1",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-lite",++ "type": "Video Generation",++ "duration": "5s",++ "resolution": "1080p",++ "notes": "10s price doubles",++ "credits": "25 credits",++ "price": "¥2.5",++ "channel": "yun"++ }++ ]++ }++ },++ "creditExpiry": {++ "question": "Do my credits expire?",++ "answer": "Our credit expiration policy is very flexible. Credits will only expire 12 calendar months after they are acquired, giving you plenty of time to use them."++ },++ "moreCredits": {++ "question": "What if I need more credits?",++ "answer": "You can earn free credits by publishing content daily. In addition, you can get more credits by subscribing to a membership or purchasing credits directly."++ },++ "checkCredits": {++ "question": "How can I check my credit status?",++ "answer": "Simply click on your credit balance to view detailed changes and usage history."++ },++ "hiddenFees": {++ "question": "Are there any hidden fees?",++ "answer": "No. The price you see is the price you pay. There are no hidden charges beyond the plan you select."++ }++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/profile.jsonindex 00000000,00000000..18623b79new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/profile.json@@@ -1,0 -1,0 +1,189 @@@++{++ "personalInfo": "Profile",++ "orderManagement": "Orders",++ "myOrders": "My Orders",++ "mySubscriptions": "My Subscriptions",++ "plusMember": "PLUS Member",++ "vipUserGreeting": "Dear VIP user, you have unlocked all member benefits",++ "vipDescription": "Upgrade to unlock all features with 8 benefits",++ "activateNow": "Activate Now",++ "modifyUsername": "Edit Username",++ "logout": "Logout",++ "userId": "User ID",++ "username": "Username",++ "email": "Email",++ "accountStatus": "Account Status",++ "normal": "Normal",++ "disabled": "Disabled",++ "memberType": "Member Type",++ "memberExpireTime": "Expiry Date",++ "nonMember": "Non-Member",++ "monthlyMember": "Monthly",++ "yearlyMember": "Yearly",++ "unknown": "Unknown",++ "upgradeCallToAction": "Upgrade to PLUS for more features!",++ "activatePlusMember": "Upgrade to PLUS",++ "orderId": "Order ID",++ "packageType": "Package",++ "amount": "Amount",++ "status": "Status",++ "createTime": "Created",++ "expireTime": "Expires",++ "actions": "Actions",++ "viewDetails": "Details",++ "goToPay": "Pay",++ "subscriptionId": "Subscription ID",++ "cancelSubscription": "Cancel",++ "cancelSubscriptionConfirm": "Cancel subscription? You'll lose member benefits.",++ "confirm": "Confirm",++ "cancel": "Cancel",++ "orderDetails": "Order Details",++ "close": "Close",++ "goToPayment": "Pay Now",++ "internalId": "Internal ID",++ "subscriptionMode": "Mode",++ "refundedAmount": "Refunded",++ "paymentIntent": "Payment Intent",++ "paymentMethod": "Payment Method",++ "paymentLink": "Payment Link",++ "openPaymentPage": "Open Payment",++ "totalRecords": "Total: {total}",++ "loading": "Loading...",++ "noOrderRecords": "No orders",++ "noSubscriptionRecords": "No subscriptions",++ "pleaseLoginFirst": "Please login first",++ "logoutSuccess": "Logged out",++ "updateSuccess": "Updated",++ "updateFailed": "Update failed",++ "getUserInfoFailed": "Failed to get user info",++ "getOrderListFailed": "Failed to get orders",++ "getSubscriptionListFailed": "Failed to get subscriptions",++ "refundSubmitted": "Refund submitted",++ "refundFailed": "Refund failed",++ "unsubscribeSuccess": "Unsubscribed",++ "unsubscribeFailed": "Unsubscribe failed",++ "getOrderDetailFailed": "Failed to get order details",++ "pleaseEnterUsername": "Enter username",++ "usernameLengthMin": "Min 2 characters",++ "usernameLengthMax": "Max 20 characters",++ "confirmModify": "Confirm",++ "monthlySubscription": "Monthly",++ "yearlySubscription": "Yearly",++ "oneTimeMonthly": "One-time Monthly",++ "oneTimeYearly": "One-time Yearly",++ "paymentSuccess": "Paid",++ "waitingForPayment": "Pending",++ "refundSuccess": "Refunded",++ "orderCancelled": "Cancelled",++ "subscriptionSuccess": "Active",++ "subscriptionCancelled": "Cancelled",++ "vipBenefits": {++ "exclusiveBadge": "Badge",++ "advancedFeatures": "Advanced",++ "memberGift": "Gifts",++ "prioritySupport": "Priority",++ "discount": "Discount",++ "unlimitedTime": "Unlimited",++ "fastExperience": "Fast",++ "morePrivileges": "More"++ },++ "points": {++ "title": "Points Records",++ "myPoints": "My Points",++ "pointsDescription": "View your points change history and usage",++ "pointsChange": "Points Change",++ "balance": "Balance",++ "changeType": "Change Type",++ "description": "Description",++ "time": "Time",++ "earn": "Earn",++ "spend": "Spend",++ "refund": "Refund",++ "expire": "Expire",++ "aiService": "AI Service",++ "userRegister": "User Register",++ "publish": "Publish",++ "point": "Points Trade",++ "noPointsRecords": "No points records",++ "totalRecords": "{{total}} records total"++ },++ "pointsPurchase": {++ "title": "Buy Points",++ "currentPoints": "Current Points",++ "selectAmount": "Select Amount",++ "description": "$15 for 1000 points, slide to select",++ "purchasePoints": "Purchase Points",++ "totalPrice": "Total",++ "buyNow": "Buy Now",++ "paying": "Paying...",++ "paymentTip": "After payment, click to confirm status",++ "confirmPayment": "I Paid",++ "purchaseSuccess": "Points purchased!",++ "paymentPending": "Payment pending, try later",++ "orderRefunded": "Order refunded",++ "orderCancelled": "Order cancelled",++ "orderUnknown": "Unknown status, try later",++ "queryFailed": "Query failed, retry",++ "createOrderFailed": "Create order failed, retry",++ "redirectingToPayment": "Redirecting to payment...",++ "publish": "Publish",++ "publishDesc": "Earn points by publishing",++ "vip": "VIP",++ "vipDesc": "VIP point benefits",++ "buyPoints": "Buy Points",++ "buyPointsDesc": "Direct recharge",++ "getPointsMethods": "Get points:"++ },++ "freeTrial": {++ "title": "🎉 Free Member Trial",++ "congratulations": "Congratulations! You've earned a 7-day free member trial!",++ "description": "As a new user, you can enjoy 7 days of free member benefits and experience all premium features, including:",++ "unlimitedAI": "✓ Unlimited AI Generation",++ "priorityProcessing": "✓ Priority Processing",++ "advancedModels": "✓ Advanced Models",++ "dedicatedSupport": "✓ Dedicated Support",++ "noAds": "✓ Ad-Free Experience",++ "morePrivileges": "✓ More Privileges",++ "completelyFree": "🎁 Completely free, no payment required",++ "claimNow": "Claim Now",++ "later": "Later"++ },++ "vipHonorText": "VIP Member",++ "inviteCode": "Invite Code",++ "edit": "Edit",++ "copy": "Copy",++ "copySuccess": "Copied",++ "cancelAccount": "Cancel Account",++ "cancelAccountWarning": "Account cancellation is irreversible. Once cancelled, all your data will be permanently deleted, including:",++ "cancelAccountDataList": "Personal profile and settings,All published content,Points and membership benefits,Order and payment records",++ "cancelAccountCaution": "Please proceed with caution!",++ "cancelAccountSecurity": "For your account security, please get a verification code for identity verification first.",++ "verificationCode": "Verification Code",++ "pleaseEnterVerificationCode": "Please enter verification code",++ "getVerificationCode": "Get Verification Code",++ "resendAfter": "s before resend",++ "confirmCancel": "Confirm Cancellation",++ "stats": {++ "totalEarned": "Total Earned",++ "balance": "Balance",++ "points": "Points",++ "coupons": "Coupons",++ "currencyYuan": "CNY"++ },++ "deleteAccount": {++ "title": "Delete your account",++ "desc": "When you delete your account, you lose access to Aitoearn services and we permanently delete your personal data.",++ "apply": "Delete Account"++ },++ "messages": {++ "getPointsRecordsFailed": "Failed to get points records",++ "verificationCodeSent": "Verification code sent",++ "getVerificationCodeFailed": "Failed to get verification code",++ "accountCancelledSuccess": "Account cancelled successfully",++ "priceId": "Price ID"++ },++ "memberTypes": {++ "oneTime": "One-time",++ "trial": "Trial"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/publish.jsonindex 00000000,eccc4719..eccc4719mode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/en/publish.json+++ b/project/aitoearn-web/src/app/i18n/locales/en/publish.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/en/route.jsonindex 00000000,00000000..bfbd32f8new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/route.json@@@ -1,0 -1,0 +1,14 @@@++{++ "home": "Home",++ "accounts": "Publish",++ "publish": "Publish",++ "hotContent": "Hot Content",++ "hotContentNew": "Hot Content New",++ "aiTools": "AI Tools",++ "tasks": "Tasks",++ "interactive": "Engage",++ "engagement": "Engagement",++ "dataStatistics": "Data",++ "navigation": "Navigation",++ "aiRank": "AI Rank"++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/task.jsonindex 00000000,00000000..6b18c557new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/task.json@@@ -1,0 -1,0 +1,103 @@@++{++ "title": "Task Center",++ "subtitle": "Accept tasks, complete tasks, earn rewards",++ "pendingTasks": "Pending Tasks",++ "acceptedTasks": "Accepted Tasks",++ "taskDetails": "Task Details",++ "acceptTask": "Accept Task",++ "completeTask": "Complete Task",++ "submitTask": "Submit Task",++ "viewDetails": "View Details",++ "taskProcessing": "Processing Task...",++ "acceptingTask": "Accepting task...",++ "publishingTask": "Publishing task...",++ "submittingTask": "Submitting task...",++ "taskCompleted": "Task Completed",++ "taskStatus": {++ "pending": "Pending",++ "doing": "Completed",++ "accepted": "Accepted",++ "completed": "Completed",++ "rejected": "Rejected",++ "active": "In Progress",++ "inactive": "Ended"++ },++ "taskTypes": {++ "video": "Video",++ "article": "Article",++ "article2": "Text Only"++ },++ "platforms": {++ "tiktok": "TikTok",++ "youtube": "YouTube",++ "twitter": "Twitter",++ "bilibili": "Bilibili",++ "KWAI": "Kwai",++ "douyin": "Douyin",++ "xhs": "Xiaohongshu",++ "wxSph": "WeChat Video",++ "wxGzh": "WeChat Official",++ "facebook": "Facebook",++ "instagram": "Instagram",++ "threads": "Threads",++ "pinterest": "Pinterest"++ },++ "taskInfo": {++ "publishTime": "Publish Time",++ "endTime": "End Time",++ "acceptTime": "Accept Time",++ "submitTime": "Submit Time",++ "reward": "Reward",++ "type": "Type",++ "status": "Status",++ "description": "Description",++ "account": "Publisher Account",++ "currentRecruits": "Accepted",++ "maxRecruits": "Max Recruits",++ "people": "people",++ "firstSubmission": "First Submission"++ },++ "messages": {++ "pleaseLoginFirst": "Please login first to view tasks",++ "getPendingTasksFailed": "Failed to get pending tasks",++ "getAcceptedTasksFailed": "Failed to get accepted tasks",++ "acceptTaskSuccess": "Task accepted successfully!",++ "acceptTaskFailed": "Failed to accept task",++ "submitTaskSuccess": "Task submitted successfully!",++ "submitTaskFailed": "Failed to submit task",++ "publishTaskFailed": "Failed to publish task",++ "getTaskDetailFailed": "Failed to get task details",++ "taskProcessFailed": "Task processing failed",++ "noPendingTasks": "No pending tasks",++ "noAcceptedTasks": "No accepted tasks",++ "noTaskDetails": "No task details",++ "loading": "Loading...",++ "totalRecords": "Total {{total}} records",++ "pageInfo": "{{start}}-{{end}} of {{total}} records",++ "taskInProgress": "Task is in progress, can be accepted",++ "taskEnded": "Task has ended",++ "acceptedCount": "Accepted {{current}}/{{max}} people"++ },++ "modal": {++ "submitTask": "Submit Task",++ "submitLink": "Submit Link",++ "submitLinkPlaceholder": "Please enter the link after completing the task",++ "submitTip": "Please ensure you have completed the task requirements and provided the correct submission link.",++ "confirmSubmit": "Confirm Submit",++ "cancel": "Cancel",++ "close": "Close",++ "mediaPreview": "Media Preview"++ },++ "time": {++ "justNow": "Just now",++ "minutesAgo": "{{minutes}} minutes ago",++ "hoursAgo": "{{hours}} hours ago",++ "daysAgo": "{{days}} days ago"++ },++ "accountSelect": {++ "title": "Select Account",++ "description": "Please select an account to use for publishing the task",++ "accountId": "Account ID",++ "redirectingToAccounts": "Redirecting to accounts page, please add channel account"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/translation.jsonindex 00000000,00000000..dfaecf91new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/translation.json@@@ -1,0 -1,0 +1,4 @@@++{++ "title": "Aitoearn: The Best Open Source Content AI Agent",++ "content": "The best open-source matrix tool"++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/vip.jsonindex 00000000,00000000..cb6aac5cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/vip.json@@@ -1,0 -1,0 +1,203 @@@++{++ "title": "PLUS Member",++ "description": "Upgrade to unlock all features with 8 benefits",++ "activateNow": "Activate Now",++ "upgrade": "Upgrade",++ "membership": "Membership",++ "pleaseLoginFirst": "Please login first",++ "paymentOrderCreated": "Payment order created",++ "paymentLinkNotFound": "Payment link not found",++ "createPaymentOrderFailed": "Failed to create payment order",++ "createPaymentOrderError": "Failed to create payment order, please try again",++ "trialNotice": {++ "badge": "🎉 New User Exclusive",++ "description": "Choose monthly or yearly subscription to enjoy 7-day free trial!"++ },++ "trialText": {++ "month": "Free for first 7 days, then $15/month",++ "year": "Free for first 7 days, then $120/year"++ },++ "badge": {++ "onceMonth": "One-time",++ "month": "7-day Free Trial",++ "year": "7-day Free Trial",++ "monthOld": "25% Off",++ "yearOld": "50% Off"++ },++ "vipBenefits": {++ "exclusiveBadge": "Badge",++ "advancedFeatures": "Advanced",++ "memberGift": "Gifts",++ "prioritySupport": "Priority",++ "discount": "Discount",++ "unlimitedTime": "Unlimited",++ "fastExperience": "Fast",++ "morePrivileges": "More"++ },++ "plans": {++ "onceMonth": "One-time Monthly",++ "month": "Monthly",++ "year": "Yearly"++ },++ "planTitles": {++ "month": "Monthly Member",++ "year": "Yearly Member",++ "onceMonth": "Monthly Member"++ },++ "selectDuration": "Select Duration",++ "autoRenewal": "Auto-renewal, cancel anytime",++ "priceUnits": {++ "month": "/month",++ "year": "/year"++ },++ "subscriptionManagement": "Subscription Management",++ "subscriptionPlanManagement": "Subscription Plan Management",++ "subscriptionPlans": "Plans",++ "purchaseHistory": "Purchase History",++ "myMembership": "My Membership",++ "basicMembership": "Basic Membership",++ "validUntil": "Valid Until",++ "activatedAutoRenewalPlans": "Activated Auto-renewal Plans",++ "activatedAutoRenewalPlansno": "Unactivated Auto-renewal Plans",++ "noAutoRenewalItems": "You haven't activated any auto-renewal items yet",++ "viewMorePlans": "View More Plans",++ "continuousAnnual": "Continuous Annual",++ "oneTimePurchase": "One-time Purchase",++ "alipayPayment": "Alipay Payment",++ "noMoreContent": "No more content",++ "previousPage": "Previous",++ "nextPage": "Next",++ "pageInfo": "Page {current} of {total}",++ "continuousMember": "Continuous Member",++ "singleMember": "Single Month Member",++ "autoRenewalEnabled": "Auto-renewal Enabled",++ "autoRenewalDisabled": "Auto-renewal Disabled",++ "nextRenewalDate": "Next Renewal Date",++ "membershipExpires": "Membership Expires",++ "currentPlan": "Current Plan",++ "modal": {++ "title": "7-Day Free Trial",++ "highlight": "Get 100 Points",++ "choosePlan": "Choose your plan or",++ "buyPoints": "Buy Points",++ "pointsDetail": "Points Detail",++ "vipInfo": {++ "details": "Details",++ "subscription": "Subscription",++ "planType": "Plan Type",++ "monthly": "Monthly PLUS",++ "monthly2": "Monthly",++ "yearly2": "Yearly",++ "yearly": "Yearly PLUS",++ "singleMonth": "Single Month",++ "trial": "Trial",++ "cancelled": "Cancelled",++ "expireTime": "Expire Time",++ "xufeiTime": "Renewal Time",++ "remainingPoints": "Remaining Points",++ "buyPoints": "Buy Points"++ },++ "tabs": {++ "yearly": "Yearly",++ "monthly": "Monthly",++ "once": "One-Month"++ },++ "savings": {++ "yearly": "Save 50%",++ "monthly": "Save 25%"++ },++ "free": {++ "title": "Free",++ "price": "¥0",++ "period": "/month",++ "forever": "Forever",++ "currentPlan": "Current Plan",++ "freePlan": "Free Plan",++ "points": "60 pts/month",++ "features": {++ "dailyPoints": "Up to 10+ video gens/month",++ "maxPoints": "Trending insights",++ "videos": "All major platforms",++ "images": "Unlimited channel links",++ "storage": "Content & comment search, smart engage"++ }++ },++ "plans": {++ "goumai": "Buy",++ "yearly": {++ "title": "Yearly",++ "bestValue": "Best Value",++ "price": "12",++ "period": "/month",++ "originalPrice": "$300/year",++ "button": "$144/year Save 50%",++ "points": "760 pts/month (incl. 60 check-in)",++ "description": "Up to 150+ video gens/month",++ "features": {++ "contentReview": "Content safety review",++ "dailyPoints": "Free Nano Banana, Sora-2 unlimited use",++ "multiModel": "GPT-5, Gemini 2.5 Pro",++ "textToVideo": "Douyin、Redbook、Kwai、Bilibli,Wechat、TikTok、YouTube、Facebook、Instagram.Threads、Twitter(X)、Pinterest All major platforms",++ "aiGeneration": "Unlimited channel links",++ "noWatermark": "Content & comment search, smart engage"++ }++ },++ "monthly": {++ "title": "Monthly",++ "price": "19",++ "period": "/month",++ "originalPrice": "$25/month",++ "button": "$19/month Save 25%",++ "points": "760 pts/month (incl. 60 check-in)",++ "description": "Up to 150+ video gens/month"++ },++ "once": {++ "title": "One-time Monthly",++ "price": "25",++ "period": "/month",++ "button": "$25/month",++ "points": "760 pts/month (incl. 60 check-in)",++ "description": "Up to 150+ video gens/month",++ "storage": "5G storage"++ }++ },++ "trial": "7-day free trial",++ "cancelAnytime": "Cancel anytime",++ "cancelMonthly": "Cancel anytime"++ },++ "points": {++ "title": "Points Detail",++ "current": "Current Points",++ "remaining": "Remaining",++ "subscribed": "Subscribed",++ "recharged": "Recharged",++ "gifted": "Gifted",++ "validity": "Validity",++ "tabs": {++ "all": "All",++ "spend": "Spent",++ "earn": "Earned"++ },++ "noData": "No data",++ "disclaimer": "Last 30 days only, data may be delayed",++ "recordChange": "Points Change",++ "recordTypes": {++ "recharge": "Recharge",++ "consume": "Consume",++ "gift": "Gift",++ "refund": "Refund",++ "expire": "Expire",++ "adjust": "Adjust"++ }++ },++ "recharge": {++ "title": "Buy Points",++ "current": "Current Points",++ "price": "1000 credits for $15",++ "amount": "Buy Points",++ "total": "Total",++ "buyNow": "Buy Now",++ "range": "1K-50K",++ "unit": "credits"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/en/wallet.jsonindex 00000000,6cb1441d..6cb1441dmode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/en/wallet.json+++ b/project/aitoearn-web/src/app/i18n/locales/en/wallet.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/en/youtube.jsonindex 00000000,00000000..bbe9fea9new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/en/youtube.json@@@ -1,0 -1,0 +1,17 @@@++{++ "youtubeAuth": "YouTube Authorization",++ "authDescription": "Please enter your email address to get YouTube authorization",++ "email": "Email",++ "enterEmail": "Enter your email address",++ "authorize": "Authorize",++ "pleaseEnterEmail": "Please enter your email address",++ "invalidEmail": "Please enter a valid email address",++ "authFailed": "Authorization failed, please try again later",++ "checkAuth": "checkAuth",++ "uploadVideo": "Upload Video",++ "needAuthFirst": "Need Auth First",++ "uploadFailed": "Upload Failed",++ "uploadSuccess": "Upload Success",++ "checkFailed": "Check Failed",++ "alreadyAuthorized": "Already Authorized"++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/account.jsonindex 00000000,dfcbe6f8..dfcbe6f8mode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/zh-CN/account.json+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/account.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/cgmaterial.jsonindex 00000000,00000000..57c90190new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/cgmaterial.json@@@ -1,0 -1,0 +1,134 @@@++{++ "header": {++ "title": "AI草稿箱",++ "importContent": "导入发布内容",++ "createGroup": "新建草稿箱组"++ },++ "sidebar": {++ "noGroups": "暂无草稿箱组",++ "noGroupsDesc": "创建您的第一个草稿箱组开始整理素材",++ "selectGroup": "请选择草稿箱组",++ "selectGroupDesc": "从左侧选择一个草稿箱组来查看其中的素材",++ "edit": "编辑",++ "delete": "删除",++ "deleteConfirm": "删除草稿组",++ "deleteConfirmDesc": "确定要删除\"{{name}}\"吗?",++ "deleteSuccess": "删除成功",++ "deleteFailed": "删除失败",++ "updateSuccess": "更新成功",++ "updateFailed": "更新失败",++ "noDesc": "暂无描述"++ },++ "content": {++ "noMaterials": "暂无草稿素材",++ "noMaterialsDesc": "创建您的第一个素材或批量生成草稿",++ "createMaterial": "创建素材",++ "batchGenerate": "批量生成草稿",++ "edit": "编辑",++ "generating": "生成中",++ "completed": "已生成"++ },++ "createGroup": {++ "title": "新建草稿箱组",++ "name": "组名称",++ "namePlaceholder": "请输入草稿箱组名称",++ "type": "类型",++ "typePlaceholder": "请选择草稿类型",++ "imageText": "图文草稿",++ "video": "视频草稿",++ "desc": "描述",++ "descPlaceholder": "请输入草稿箱组描述(可选)",++ "createSuccess": "创建草稿箱组成功",++ "createFailed": "创建草稿箱组失败",++ "getGroupsFailed": "获取草稿箱组失败",++ "getMaterialsFailed": "获取草稿素材失败"++ },++ "createMaterial": {++ "title": "创建素材",++ "selectCoverGroup": "选择封面组(图片组)",++ "selectCoverGroupDesc": "选择一个图片组作为封面来源",++ "selectVideoGroup": "选择视频组",++ "selectVideoGroupDesc": "选择一个视频组作为视频素材来源",++ "selectCover": "选择封面(图片,单选)",++ "selectVideo": "选择视频素材(单选)",++ "reselectCoverGroup": "重新选择封面组",++ "reselectVideoGroup": "重新选择视频组",++ "coverMustBeImage": "封面必须是图片",++ "imageGroupOnly": "图文组不能选择视频素材",++ "videoGroupOnly": "视频组只能选择视频素材",++ "selectMediaGroup": "请选择媒体组",++ "selectCoverAndMaterials": "请完整选择封面和素材",++ "selectCoverGroupRequired": "请选择封面组(图片组)",++ "selectVideoGroupRequired": "请选择视频组",++ "selectCoverRequired": "请选择封面(图片)",++ "selectVideoRequired": "请选择视频素材",++ "createSuccess": "创建素材成功",++ "createFailed": "创建素材失败"++ },++ "batchGenerate": {++ "title": "批量生成草稿",++ "model": "大模型",++ "modelPlaceholder": "请选择大模型",++ "prompt": "提示词",++ "promptPlaceholder": "请输入提示词",++ "titlePlaceholder": "请输入标题",++ "descPlaceholder": "请输入简介",++ "coverGroup": "封面组",++ "coverGroupPlaceholder": "请选择封面组",++ "mediaGroups": "素材组",++ "mediaGroupsPlaceholder": "请选择素材组",++ "num": "生成数量",++ "location": "地理位置",++ "preview": "预览",++ "startTask": "开始任务",++ "cancel": "取消",++ "taskStarted": "批量生成任务已启动",++ "generateFailed": "批量生成草稿失败",++ "previewFailed": "获取预览失败",++ "noPreview": "暂无预览内容"++ },++ "import": {++ "title": "导入已有发布内容",++ "selectAccount": "选择账户",++ "publishContent": "的发布内容 (选择要导入的内容)",++ "importSelected": "导入选中内容",++ "selectToImport": "请选择要导入的发布内容",++ "selectGroupFirst": "请先选择草稿箱组",++ "importSuccess": "成功导入 {{count}} 条内容到草稿箱",++ "importFailed": "导入失败",++ "getAccountsFailed": "获取账户列表失败",++ "getPublishListFailed": "获取发布列表失败"++ },++ "detail": {++ "title": "素材详情",++ "titleLabel": "标题:",++ "descLabel": "简介:",++ "typeLabel": "类型:",++ "coverLabel": "封面:",++ "materialsLabel": "素材内容:",++ "statusLabel": "状态:",++ "noMaterials": "暂无素材内容"++ },++ "editGroup": {++ "title": "编辑草稿箱组",++ "namePlaceholder": "请输入新组名",++ "enterName": "请输入新组名"++ },++ "editMaterial": {++ "title": "编辑素材",++ "updateSuccess": "更新素材成功",++ "updateFailed": "更新素材失败"++ },++ "mediaGroupType": {++ "img": "图片组",++ "video": "视频组",++ "mixed": "混合组"++ },++ "selectCover": "选择封面(单选)",++ "selectMaterials": "选择素材(多选)",++ "title": "标题",++ "description": "简介",++ "location": "地理位置",++ "mediaCount": "个资源",++ "pleaseCompleteForm": "请完善表单信息"++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/common.jsonindex 00000000,e65e7f65..e65e7f65mode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/zh-CN/common.json+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/common.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/dataStatistics.jsonindex 00000000,00000000..1b190e48new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/dataStatistics.json@@@ -1,0 -1,0 +1,23 @@@++{++ "title": "数据统计",++ "description": "在这里查看和分析您的数据统计信息。",++ "accountData": "账号数据",++ "selectSpace": "选择空间",++ "inputAccountName": "请输入账号名称",++ "noAccount": "暂无账号",++ "totalAccount": "累计账号数",++ "online": "在线",++ "offline": "离线",++ "fansCount": "粉丝数",++ "growthFansCount": "涨粉数",++ "loginFailed": "登陆失败",++ "relogin": "重新登录",++ "dataDetails": "数据明细",++ "timeRange": "时间范围:",++ "yesterdayIncrease": "昨日新增",++ "readCount": "播放数",++ "commentCount": "评论数",++ "likeCount": "点赞数",++ "collectCount": "收藏数",++ "forwardCount": "分享数"++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/engagement.jsonindex 00000000,00000000..5c31e430new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/engagement.json@@@ -1,0 -1,0 +1,28 @@@++{++ "title": "互动数据",++ "columns": {++ "postId": "帖子ID",++ "platform": "平台",++ "title": "标题",++ "mediaType": "媒体类型",++ "publishTime": "发布时间",++ "viewCount": "浏览数",++ "likeCount": "点赞数",++ "commentCount": "评论数",++ "shareCount": "分享数",++ "clickCount": "点击数",++ "impressionCount": "曝光数",++ "favoriteCount": "收藏数",++ "permaLink": "外链",++ "open": "打开"++ },++ "placeholders": {++ "uid": "请输入账户UID"++ },++ "actions": {++ "search": "查询",++ "reset": "重置"++ }++}++++diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/home.jsonindex 00000000,00000000..d715d746new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/home.json@@@ -1,0 -1,0 +1,264 @@@++{++ "releaseBanner": {++ "tag": "Release v0.8.0",++ "text": "通过插件和繁荣的市场构建和扩展AI工作流程。"++ },++ "header": {++ "logo": "Aitoearn",++ "nav": {++ "home": "首页",++ "marketplace": "市场",++ "pricing": "价格",++ "status": "状态",++ "docs": "文档",++ "blog": "博客",++ "download": "下载"++ },++ "getStarted": "立即开始"++ },++ "hero": {++ "stars": "105.2k",++ "starsText": "stars on",++ "github": "GitHub",++ "title": "成为最好用的内容营销\nAI Agent",++ "subtitle": "从今天起,使用AI轻松管理你的社交媒体。AITOEARN提供从灵感创意、内容制作,内容分发内容互动管理等一站式能力,让AI触手可及。",++ "getStarted": "立即开始",++ "useMobilePhone": "使用移动设备"++ },++ "brandBar": {++ "title": "支持的社交媒体平台"++ },++ "buildSection": {++ "badge": "功能1",++ "title": "Content Publishing — 一键发布 · 多平台触达",++ "titleBlue": "从创意灵感到多平台分发,再到数据分析和商业化",++ "features": {++ "hotTopic": {++ "title": "多平台分发",++ "description": "支持全球最多主流社交平台(Douyin, Kwai, Wechat, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, YouTube, Pinterest, X)。"++ },++ "international": {++ "title": "日历编排",++ "description": "像操作日历一样规划内容,实现多平台协同发布。"++ }++ },++ "carouselHint": "使用滚轮切换图片"++ },++ "hotspotSection": {++ "badge": "功能2",++ "title": "Content Hotspot — 爆款灵感引擎",++ "titleBlue": "爆款案例库与趋势捕捉",++ "features": {++ "hotTopic": {++ "title": "爆款案例库",++ "description": "随时查看他人如何打造 10,000+ 点赞的内容。"++ },++ "international": {++ "title": "趋势捕捉",++ "description": "快速发现流行趋势,降低创作焦虑。"++ }++ },++ "carouselHint": "使用滚轮切换图片"++ },++ "searchSection": {++ "badge": "功能3",++ "title": "Content Search — 品牌与市场洞察",++ "titleBlue": "品牌监控与内容搜索",++ "features": {++ "hotTopic": {++ "title": "品牌监控",++ "description": "实时追踪品牌相关讨论,第一时间响应。"++ },++ "international": {++ "title": "内容搜索",++ "description": "找到目标帖子和话题,高效互动,精准拓展市场。"++ }++ },++ "carouselHint": "使用滚轮切换图片"++ },++ "commentsSection": {++ "badge": "功能4",++ "title": "Comments Search — 精准用户挖掘",++ "titleBlue": "智能评论搜索与精准转化",++ "features": {++ "hotTopic": {++ "title": "智能评论搜索",++ "description": "快速发现\"求链接\"\"怎么购买\"等高转化信号。"++ },++ "international": {++ "title": "精准转化",++ "description": "主动回复,提升流量变现效率。"++ }++ },++ "carouselHint": "使用滚轮切换图片"++ },++ "connectSection": {++ "badge": "功能5",++ "title": "Content Engagement — 互动与增长引擎",++ "titleBlue": "统一后台与主动运营",++ "features": {++ "creation": {++ "title": "统一后台",++ "description": "集中管理所有内容,互动零遗漏。"++ },++ "distribution": {++ "title": "主动运营",++ "description": "参与热门话题,与潜在用户双向互动。把\"被动内容运营\"变成\"主动流量经营\"。"++ }++ },++ "carouselHint": "使用滚轮切换图片"++ },++ "upcomingSection": {++ "badge": "即将上线",++ "title": "AI 驱动的全链路内容增长与变现平台",++ "titleBlue": "即将上线功能,敬请期待",++ "features": {++ "smartImport": {++ "title": "智能导入",++ "description": "直接导入历史内容,快速编辑、二次分发。例如:小红书创作者可一键同步到 YouTube,让更多用户看到。"++ },++ "analytics": {++ "title": "Content Analytics — 全景化数据视图",++ "description": "多平台对比:一个平台不给流量,不代表所有平台不给。全链路监控:追踪内容表现,助力打造下一个百万博主。"++ },++ "aiCreation": {++ "title": "AI Content Creation — 全流程 AI 助手",++ "description": "AI 文案生成:自动生成标题、描述,高效产出。AI 评论生成:主动出击,获取流量。图文卡片生成,全流程加速创作。支持主流 AI 视频模型和图片模型。"++ },++ "marketplace": {++ "title": "Content Marketplace — 内容交易与变现",++ "description": "创作者变现:在平台直接出售内容,让优质作品快速找到买家。品牌采购:企业可直接购买现成内容,节省时间与成本。让创作变成收益 —— Let's use AI to earn. Let's earn money together!"++ }++ }++ },++ "downloadSection": {++ "title": "随时随地开始创作",++ "titleBlue": "移动端也能轻松管理",++ "description": "借助 AI ToEarn 移动应用,您的创作不再局限于桌面端。我们还为您提供App移动应用,随时随地释放您的创造力,仅需一部手机即可!",++ "qrCodeText": "扫描二维码下载",++ "appStore": {++ "text": "Download on the",++ "store": "App Store"++ },++ "googlePlay": {++ "text": "GET IT ON",++ "store": "Google Play"++ }++ },++ "enterpriseSection": {++ "badge": "企业级服务",++ "title": "专业的AI自媒体解决方案",++ "titleBlue": "助力企业营销成功",++ "subtitle": "企业级AI营销转型不仅需要工具,更需要稳固的基础设施。AI ToEarn 提供可靠的平台,将AI内容创作能力分发到多个部门,实现无与伦比的营销效率。"++ },++ "statsSection": {++ "stats": {++ "users": {++ "number": "50K+",++ "label": "用户"++ },++ "platforms": {++ "number": "15+",++ "label": "社交平台"++ },++ "countries": {++ "number": "100+",++ "label": "国家地区"++ },++ "content": {++ "number": "5M+",++ "label": "内容发布"++ }++ },++ "testimonial": {++ "quote": "在内容营销竞争激烈的今天,快速验证和创作工具不仅有帮助,更是生存必需品。对于我们这样的营销公司来说,AI ToEarn 在这个AI前沿为我们提供了不可或缺的价值。",++ "author": "李明",++ "title": "某知名MCN机构 内容运营总监"++ },++ "caseStudies": {++ "timeSaved": {++ "title": "预计每年节省创作时间",++ "number": "50,000 小时"++ },++ "aiAssistant": {++ "title": "AI营销助手:为500+企业客户提供跨平台内容分发服务"++ }++ }++ },++ "communitySection": {++ "badge": "社区生态",++ "title": "加入我们的",++ "titleBlue": "活跃创作者社区",++ "subtitle": "AI ToEarn 由全球AI内容创作者社区共同推动。加入我们,一起探索AI内容营销的无限边界。",++ "buttons": {++ "wechat": "微信群组",++ "community": "创作者交流群"++ },++ "wechatPopup": "扫码关注微信公众号",++ "communityPopup": "扫码加入社区群",++ "stats": {++ "downloads": {++ "number": "20万+",++ "label": "下载量"++ },++ "members": {++ "number": "15K",++ "label": "社区成员"++ },++ "creators": {++ "number": "500+",++ "label": "活跃创作者"++ }++ }++ },++ "footer": {++ "resources": {++ "title": "资源",++ "links": {++ "docs": "文档",++ "blog": "博客",++ "download": "下载",++ "education": "教育",++ "partner": "合作伙伴",++ "support": "服务支持",++ "roadmap": "产品线路图"++ }++ },++ "company": {++ "title": "公司",++ "links": {++ "talk": "联系我们",++ "terms": "服务条款",++ "privacy": "隐私政策",++ "cookies": "Cookie 设置",++ "data": "数据删除引导",++ "marketplace": "市场协议",++ "brand": "品牌指南"++ }++ },++ "description": "AI ToEarn 自媒体运营平台一站式解决方案,从灵感创意到内容制作,从内容分发到内容互动管理",++ "social": {++ "github": "GitHub",++ "discord": "Discord",++ "youtube": "YouTube",++ "linkedin": "LinkedIn",++ "twitter": "Twitter"++ },++ "bigText": "Let's Use AI To",++ "copyright": "© 2025 AITOEARN, Corp.",++ "tagline": "",++ "dataDeletion": {++ "title": "Data Deletion Instructions",++ "prelaunch": "Our application is currently in pre-launch phase and does not store real user data. If you have interacted with our test systems, contact us for data removal.",++ "standardTitle": "Standard Procedure (Post-Launch):",++ "standardSteps": [++ "Log in to your AiToEarn account",++ "Navigate to Settings > Privacy",++ "Click \"Request Account Deletion\"",++ "Confirmation will be sent to your registered email"++ ],++ "contactTitle": "Contact for Assistance:",++ "contactEmail": "Email: [email protected] (Pre-launch inquiries only)"++ }++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/hot-content.jsonindex 00000000,00000000..ae41ffc2new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/hot-content.json@@@ -1,0 -1,0 +1,60 @@@++{++ "all": "全部",++ "loading": "加载中...",++ "noData": "暂无数据",++ "rank": "排名",++ "cover": "封面",++ "title": "标题",++ "author": "作者",++ "category": "分类",++ "likes": "点赞",++ "shares": "分享",++ "comments": "评论数",++ "collections": "收藏数",++ "publishTime": "发布于",++ "fans": "粉丝数",++ "viewMore": "查看更多",++ "timeRange": "时间范围",++ "filter": "筛选",++ "hotTopics": "热门专题",++ "viralTitles": "爆款标题",++ "topics": "专题",++ "engagement": "互动量",++ "rising": "热",++ "noHotTopics": "暂无热点数据",++ "noViralTitles": "暂无爆款标题数据",++ "noTopicData": "暂无专题数据",++ "total": "总",++ "items": "条",++ "video": "视频",++ "noImage": "暂无图片",++ "platform": "平台",++ "hotEvents": "热点事件",++ "hotContent": "热点内容",++ "noTitle": "暂无标题",++ "baseInfo": "基本信息",++ "views": "播放数",++ "recommend": "推荐数",++ "watch": "在看数",++ "dailyRank": "日榜",++ "updateFrequency": "更新时间",++ "statEndTime": "统计数据截止",++ "daily": "按日",++ "sortRule": "排序规则",++ "sortRuleDesc": "统计当日点赞量前500名的作品推荐",++ "dataDescription": "数据说明",++ "expand": "展开",++ "collapse": "收起",++ "hotValue": "热度值",++ "hotTrend": "热度趋势",++ "shortDrama": "短剧",++ "cultureTourism": "文旅",++ "contentOverseas": "内容出海",++ "hot": "热点",++ "last3days": "近3天",++ "last7days": "近7天",++ "last15days": "近15天",++ "last30days": "近30天",++ "backToAll": "返回全部",++ "last90days": "近90天"++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/imageEditor.jsonindex 00000000,00000000..f1837ec4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/imageEditor.json@@@ -1,0 -1,0 +1,79 @@@++{++ "Load": "加载本地",++ "Download": "下载当前",++ "Custom": "自定义",++ "Square": "正方形",++ "Apply": "应用",++ "Cancel": "取消",++ "Free": "自由设定",++ "Straight": "直线",++ "Color": "颜色",++ "Range": "粗细",++ "Grayscale": "灰度",++ "Invert": "旋转",++ "Sepia": "深褐色",++ "Sepia2": "深褐色2",++ "Blur": "模糊",++ "Sharpen": "锐化",++ "Emboss": "浮雕",++ "Remove White": "消除白色",++ "Distance": "边距",++ "Brightness": "亮度",++ "Noise": "降噪",++ "Pixelate": "像素化",++ "Color Filter": "颜色过滤",++ "Threshold": "阈值",++ "Tint": "色调",++ "Multiply": "复合",++ "Flip X": "镜像",++ "Flip Y": "翻转",++ "Reset": "重置",++ "Arrow-1": "箭头1",++ "Arrow-2": "箭头2",++ "Arrow-3": "箭头3",++ "Star-1": "星形1",++ "Star-2": "星形2",++ "Polygon": "多边形",++ "Location": "定位",++ "Heart": "心形",++ "Bubble": "气泡",++ "Custom icon": "自定义图标",++ "Load Mask Image": "加载水印",++ "Width": "宽",++ "Height": "高",++ "Lock Aspect Ratio": "保持尺寸比例",++ "Rectangle": "矩形",++ "Circle": "圆形",++ "Triangle": "三角形",++ "Fill": "填充",++ "Stroke": "画笔",++ "Bold": "加粗",++ "Italic": "斜体",++ "Underline": "下划线",++ "Left": "居左",++ "Center": "居中",++ "Right": "居右",++ "Text size": "字体大小",++ "Zoom In": "放大",++ "Zoom Out": "缩小",++ "ZoomIn": "放大",++ "ZoomOut": "缩小",++ "Hand": "拖动",++ "Resize": "尺寸",++ "Crop": "裁剪",++ "Flip": "翻转",++ "Rotate": "旋转",++ "Draw": "画笔",++ "Shape": "形状",++ "Icon": "图标",++ "Text": "文字",++ "Mask": "水印",++ "Filter": "滤镜",++ "History": "历史动作",++ "Undo": "撤退",++ "Redo": "重做",++ "Delete": "去除",++ "DeleteAll": "全部去除",++ "Blend": "混合",++ "imageEditing": "图像编辑"++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/income.jsonindex 00000000,00000000..bd1583c9new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/income.json@@@ -1,0 -1,0 +1,48 @@@++{++ "title": "我的收入",++ "subtitle": "管理您的收入记录和提现申请",++ "currentBalance": "当前余额",++ "incomeRecords": "收入记录",++ "withdrawRecords": "提现记录",++ "incomeId": "收入ID",++ "amount": "金额",++ "type": "类型",++ "description": "描述",++ "createTime": "创建时间",++ "actions": "操作",++ "applyWithdraw": "申请提现",++ "withdrawId": "提现ID",++ "status": "状态",++ "updateTime": "更新时间",++ "confirmWithdraw": "确认提现申请",++ "cancel": "取消",++ "confirm": "确认提现",++ "withdrawAmount": "提现金额",++ "incomeType": "收入类型",++ "withdrawWarning": "⚠️ 提现申请提交后,我们将在1-3个工作日内处理您的申请。",++ "withdrawWarning2": "请确保您的账户信息正确,提现成功后金额将转入您的指定账户。",++ "incomeTypes": {++ "task": "任务收入",++ "task_back": "任务回退",++ "reward_back": "奖励回退",++ "task_withdraw": "任务提现"++ },++ "withdrawStatus": {++ "wait": "等待处理",++ "success": "提现成功",++ "fail": "提现失败",++ "task_withdraw": "任务提现"++ },++ "messages": {++ "getIncomeRecordsFailed": "获取收入记录失败",++ "getWithdrawRecordsFailed": "获取提现记录失败",++ "withdrawSubmitted": "提现申请提交成功",++ "withdrawFailed": "提现申请提交失败",++ "pleaseLoginFirst": "请先登录",++ "noIncomeRecords": "暂无收入记录",++ "noWithdrawRecords": "暂无提现记录",++ "loading": "加载中...",++ "totalRecords": "共 {{total}} 条记录"++ },++ "myWallet": "我的钱包"++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/interactive.jsonindex 00000000,00000000..dc1c066bnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/interactive.json@@@ -1,0 -1,0 +1,41 @@@++{++ "title": "互动管理",++ "messages": {++ "pleaseLoginFirst": "请先登录",++ "commentSuccess": "评论成功",++ "commentFailed": "评论失败,请重试",++ "replySuccess": "回复成功",++ "replyFailed": "回复失败,请重试"++ },++ "ui": {++ "selectChannel": "请在左侧选择需要互动的频道",++ "selectChannelDesc": "选择一个账号后,将自动加载该频道的最新作品与评论互动功能。",++ "loadMore": "加载更多",++ "noMorePosts": "没有更多作品",++ "loading": "加载中...",++ "sending": "发送中...",++ "send": "发送",++ "reply": "回复",++ "expandReplies": "展开回复",++ "collapseReplies": "收起回复",++ "loadMoreReplies": "加载更多回复",++ "loadMoreComments": "加载更多评论",++ "commentPlaceholder": "输入评论...",++ "replyPlaceholder": "回复@{name}",++ "noImage": "无图片"++ },++ "stats": {++ "likes": "点赞",++ "comments": "评论",++ "views": "浏览",++ "shares": "分享",++ "clicks": "点击",++ "impressions": "曝光",++ "favorites": "收藏"++ },++ "mediaTypes": {++ "video": "视频",++ "image": "图片",++ "article": "文章"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/login.jsonindex 00000000,00013e9d..00013e9dmode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/zh-CN/login.json+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/login.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/material.jsonindex 00000000,00000000..bff623ecnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/material.json@@@ -1,0 -1,0 +1,167 @@@++{++ "mediaManagement": {++ "title": "媒体资源管理",++ "createGroup": "创建媒体资源组",++ "editGroup": "编辑媒体资源组",++ "aiVideoGenerate": "AI视频生成",++ "groupName": "资源组名称",++ "groupNamePlaceholder": "请输入资源组名称",++ "description": "描述",++ "descriptionPlaceholder": "请输入描述(可选)",++ "type": "类型",++ "video": "视频",++ "image": "图片",++ "create": "创建",++ "save": "保存",++ "cancel": "取消",++ "delete": "删除",++ "edit": "编辑",++ "deleteConfirm": "确定要删除这个媒体资源组吗?",++ "createSuccess": "创建媒体资源组成功",++ "createFailed": "创建媒体资源组失败",++ "updateSuccess": "更新媒体资源组成功",++ "updateFailed": "更新媒体资源组失败",++ "deleteSuccess": "删除媒体资源组成功",++ "deleteFailed": "删除媒体资源组失败",++ "getListFailed": "获取媒体资源组列表失败",++ "noGroups": "暂无媒体资源组",++ "noGroupsDesc": "创建您的第一个媒体资源组,开始管理您的素材",++ "createNow": "立即创建",++ "resources": "个资源",++ "noDescription": "暂无描述"++ },++ "aiGenerate": {++ "title": "AI生成",++ "backToAlbum": "返回相册",++ "textToImage": "文生图",++ "fireflyCard": "Firefly卡片",++ "videoGeneration": "视频生成",++ "prompt": "提示词",++ "promptPlaceholder": "请输入提示词",++ "width": "宽度",++ "height": "高度",++ "generate": "生成",++ "generating": "生成中...",++ "content": "内容",++ "contentPlaceholder": "请输入内容",++ "titlePlaceholder": "请输入标题",++ "template": "模板",++ "uploadToMediaGroup": "上传到媒体组",++ "selectMediaGroup": "选择媒体组",++ "selectMediaGroupPlaceholder": "请选择媒体组",++ "upload": "上传",++ "uploading": "上传中...",++ "uploadSuccess": "上传成功",++ "uploadFailed": "上传失败",++ "getMediaGroupListFailed": "获取媒体组列表失败",++ "pleaseEnterPrompt": "请输入提示词",++ "pleaseSelectMediaGroup": "请选择媒体组",++ "pleaseEnterContent": "请输入内容",++ "pleaseEnterTitle": "请输入标题",++ "selectSize": "选择尺寸",++ "generateCount": "生成数量",++ "imageQuality": "图片质量",++ "imageStyle": "图片风格",++ "selectModel": "选择模型",++ "standard": "标准",++ "hd": "高清",++ "vivid": "生动",++ "natural": "自然",++ "goldCardTemplate": "金卡模板",++ "memoTemplate": "备忘录模板",++ "simpleTemplate": "简约模板",++ "blackSunTemplate": "黑日模板",++ "templateE": "模板 E",++ "writingTemplate": "写作模板",++ "codeTemplate": "代码模板",++ "templateD": "模板 D",++ "videoPromptPlaceholder": "请输入视频描述",++ "videoDuration": "视频时长",++ "videoSize": "视频尺寸",++ "videoMode": "生成模式",++ "uploadImage": "上传图片",++ "firstFrame": "首帧",++ "tailFrame": "尾帧",++ "imageUrlPlaceholder": "图片URL或base64",++ "taskStatus": "任务状态",++ "taskSubmitted": "任务已提交",++ "taskProcessing": "任务处理中",++ "taskCompleted": "任务完成",++ "taskFailed": "任务失败",++ "checkStatus": "检查状态",++ "videoGenerationFailed": "视频生成失败",++ "videoGenerationSuccess": "视频生成成功",++ "pleaseEnterVideoPrompt": "请输入视频描述",++ "pleaseSelectVideoModel": "请选择视频模型",++ "videoUploadSuccess": "视频上传成功",++ "videoUploadFailed": "视频上传失败",++ "md2card": "Markdown转卡片",++ "markdownPlaceholder": "请输入Markdown内容",++ "selectTheme": "选择主题",++ "themeMode": "主题模式",++ "lightMode": "浅色模式",++ "darkMode": "深色模式",++ "cardWidth": "卡片宽度",++ "cardHeight": "卡片高度",++ "splitMode": "分割模式",++ "noSplit": "不分割",++ "split": "分割",++ "mdxMode": "MDX模式",++ "overHiddenMode": "溢出隐藏",++ "generateCard": "生成卡片",++ "cardGenerationFailed": "卡片生成失败",++ "cardUploadSuccess": "卡片上传成功",++ "cardUploadFailed": "卡片上传失败",++ "pleaseEnterMarkdown": "请输入Markdown内容",++ "imageGenerationFailed": "生成图片失败",++ "fireflyCardGenerationFailed": "生成流光卡片失败",++ "pleaseEnterContentAndTitle": "请输入内容和标题",++ "taskSubmittedSuccess": "任务已提交",++ "videoGenerationSuccess": "视频生成成功",++ "checkVideoTaskStatusFailed": "检查视频任务状态失败",++ "pleaseEnterVideoDescription": "请输入视频描述",++ "pleaseSelectVideoModel": "请选择视频模型",++ "videoUploadSuccess": "视频上传成功",++ "videoUploadFailed": "视频上传失败",++ "cardUploadSuccess": "卡片上传成功",++ "cardUploadFailed": "卡片上传失败",++ "selectSizePlaceholder": "选择尺寸",++ "generateCountPlaceholder": "生成数量",++ "imageQualityPlaceholder": "图片质量",++ "imageStylePlaceholder": "图片风格",++ "selectModelPlaceholder": "选择模型",++ "selectVideoModelPlaceholder": "选择视频模型",++ "textToVideo": "文本转视频",++ "imageToVideo": "图文转视频",++ "seconds": "秒",++ "selectThemePlaceholder": "选择主题",++ "themeModePlaceholder": "主题模式",++ "cardWidthPlaceholder": "卡片宽度",++ "cardHeightPlaceholder": "卡片高度",++ "splitModePlaceholder": "分割模式",++ "markdownToCard": "Markdown转卡片",++ "markdownCard": "Markdown卡片",++ "templateA": "默认",++ "templateB": "透明",++ "templateC": "金句",++ "templateJin": "书摘",++ "templateMemo": "便当",++ "templateEasy": "边框",++ "templateWrite": "手写",++ "pleaseUploadFirstFrame": "请上传首帧图片",++ "pleaseUploadTailFrame": "请上传尾帧图片",++ "imageRequirements": "图片要求",++ "aspectRatioRange": "宽高比范围",++ "aspectRatioRangeValue": "(0.4, 2.5)",++ "dimensionRange": "宽高长度范围",++ "dimensionRangeValue": "(300px, 6000px)",++ "imageSizeLimit": "图片大小限制",++ "imageSizeLimitValue": "小于30MB",++ "imageFormatSupport": "支持格式",++ "imageFormatSupportValue": "JPG, PNG, WEBP",++ "estimatedCreditCost": "预计消耗积分",++ "credits": "积分",++ "getImageModelsFailed": "获取图片生成模型失败",++ "getVideoModelsFailed": "获取视频生成模型失败"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/notification.jsonindex 00000000,00000000..ba361af3new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/notification.json@@@ -1,0 -1,0 +1,91 @@@++{++ "title": "消息通知",++ "detailTitle": "通知详情",++ "markAllAsRead": "全部标记为已读",++ "markAsRead": "标记为已读",++ "delete": "删除",++ "close": "关闭",++ "noNotifications": "暂无通知",++ "confirmDelete": "确定要删除这条通知吗?",++ "confirm": "确定",++ "cancel": "取消",++ "deleteSuccess": "删除成功",++ "deleteFailed": "删除失败",++ "markSuccess": "标记成功",++ "markFailed": "标记失败",++ "markAllSuccess": "全部标记成功",++ "getNotificationListFailed": "获取通知列表失败",++ "getNotificationDetailFailed": "获取通知详情失败",++ "createTime": "创建时间",++ "readTime": "已读时间",++ "taskDetail": "任务详情",++ "acceptTask": "接受任务",++ "noTaskDetails": "暂无任务详情",++ "taskProcessing": "任务处理中...",++ "acceptingTask": "正在接受任务...",++ "publishingTask": "正在发布任务...",++ "submittingTask": "正在提交任务...",++ "taskCompleted": "任务完成",++ "taskProcessFailed": "任务处理失败",++ "acceptTaskFailed": "接受任务失败",++ "publishTaskFailed": "发布任务失败",++ "submitTaskFailed": "提交任务失败",++ "getTaskDetailFailed": "获取任务详情失败",++ "accountInfoFailed": "账号信息获取失败",++ "appRequiredNotice": "⚠️ 注意:",++ "appRequiredMessage": "发布账号({{platform}})的任务需要在移动端App中操作,请下载对应App后继续。",++ "mediaPreview": "媒体预览",++ "pageInfo": "第 {{start}}-{{end}} 条,共 {{total}} 条",++ "notificationTypes": {++ "system": "系统通知",++ "user": "用户通知",++ "material": "素材通知",++ "task_reminder": "任务提醒",++ "other": "其他通知"++ },++ "taskStatus": {++ "active": "进行中",++ "inactive": "已结束"++ },++ "taskInfo": {++ "description": "描述",++ "publisherAccount": "发布账号",++ "reward": "奖励",++ "taskType": "任务类型",++ "platformTypes": "支持平台"++ },++ "taskTypes": {++ "video": "视频",++ "article": "图文",++ "article2": "纯文字"++ },++ "platforms": {++ "tiktok": "TikTok",++ "youtube": "YouTube",++ "twitter": "Twitter",++ "bilibili": "哔哩哔哩",++ "KWAI": "快手",++ "douyin": "抖音",++ "xhs": "小红书",++ "wxSph": "微信视频号",++ "wxGzh": "微信公众号",++ "facebook": "Facebook",++ "instagram": "Instagram",++ "threads": "Threads",++ "pinterest": "Pinterest"++ },++ "time": {++ "justNow": "刚刚",++ "minutesAgo": "{{minutes}}分钟前",++ "hoursAgo": "{{hours}}小时前",++ "daysAgo": "{{days}}天前"++ },++ "accountSelect": {++ "title": "选择发布账号",++ "description": "请选择用于发布任务的账号:",++ "noAccounts": "没有符合条件的账号,请先添加账号",++ "redirectingToAccounts": "正在跳转到账户界面,请添加符合条件的账号",++ "accountId": "账号ID",++ "description": "描述"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/pinterest.jsonindex 00000000,00000000..ef035704new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/pinterest.json@@@ -1,0 -1,0 +1,120 @@@++{++ "title": "Pinterest 管理",++ "tabs": {++ "boards": "我的Board",++ "pins": "我的Pin"++ },++ "actions": {++ "selectAccount": "选择账户",++ "refresh": "刷新",++ "createBoard": "创建Board",++ "createPin": "创建Pin",++ "search": "搜索...",++ "view": "查看",++ "edit": "编辑",++ "delete": "删除",++ "link": "链接",++ "change": "更改"++ },++ "stats": {++ "followers": "关注者",++ "boardCount": "Board数量",++ "pinCount": "Pin数量",++ "monthlyViews": "月观看量"++ },++ "board": {++ "createTitle": "创建新Board",++ "name": "Board名称",++ "namePlaceholder": "输入Board名称",++ "description": "描述",++ "descriptionPlaceholder": "输入Board描述",++ "privacy": "隐私设置",++ "public": "公开",++ "private": "私有",++ "createButton": "创建Board",++ "deleteConfirm": "确定删除此Board吗?",++ "detailTitle": "Board详情",++ "createTime": "创建时间",++ "noDescription": "暂无描述"++ },++ "pin": {++ "createTitle": "创建新Pin",++ "selectBoard": "选择Board",++ "selectBoardPlaceholder": "选择要发布到的Board",++ "uploadImage": "上传图片",++ "uploadImagePlaceholder": "点击上传图片到OSS",++ "uploadHint": "支持JPG、PNG、GIF格式,最大10MB",++ "uploading": "正在上传到OSS...",++ "uploadSuccess": "✓ 上传成功",++ "reupload": "重新上传",++ "ossUrl": "OSS地址",++ "title": "标题",++ "titlePlaceholder": "输入Pin标题",++ "description": "描述",++ "descriptionPlaceholder": "输入Pin描述",++ "link": "链接",++ "linkPlaceholder": "输入目标链接(可选)",++ "altText": "Alt文本",++ "altTextPlaceholder": "输入图片Alt文本(可选)",++ "dominantColor": "主色调",++ "dominantColorTip": "选择Pin的主色调",++ "createButton": "创建Pin",++ "deleteConfirm": "确定删除此Pin吗?",++ "detailTitle": "Pin详情",++ "pinId": "Pin ID",++ "boardId": "Board ID",++ "creativeType": "创作类型",++ "boardOwner": "Board拥有者",++ "isOwner": "拥有者",++ "isRemovable": "可移除",++ "isStandard": "标准Pin",++ "noDescription": "暂无描述",++ "imageAlt": "Pin图片"++ },++ "badges": {++ "pins": "Pins",++ "followers": "关注者",++ "owner": "拥有者",++ "yes": "是",++ "no": "否",++ "selected": "当前选择"++ },++ "empty": {++ "noBoards": "暂无Board",++ "noPins": "暂无Pin"++ },++ "pagination": {++ "total": "第 {range} 条,共 {total} 条"++ },++ "messages": {++ "loadAccountsFailed": "加载账户列表失败",++ "loadBoardsFailed": "加载Board列表失败",++ "loadPinsFailed": "加载Pin列表失败",++ "boardCreateSuccess": "Board创建成功",++ "boardCreateFailed": "创建Board失败",++ "boardDeleteSuccess": "Board删除成功",++ "boardDeleteFailed": "删除Board失败",++ "pinCreateSuccess": "Pin创建成功",++ "pinCreateFailed": "创建Pin失败",++ "pinDeleteSuccess": "Pin删除成功",++ "pinDeleteFailed": "删除Pin失败",++ "getBoardDetailFailed": "获取Board详情失败",++ "getPinDetailFailed": "获取Pin详情失败",++ "uploadImageFirst": "请先上传图片",++ "selectImageFile": "请选择图片文件",++ "imageSizeLimit": "图片大小不能超过10MB",++ "imageUploadSuccess": "图片上传成功",++ "imageUploadFailed": "图片上传失败,请重试",++ "noAccountFound": "没有找到Pinterest账户"++ },++ "validation": {++ "boardNameRequired": "请输入Board名称",++ "selectBoardRequired": "请选择Board",++ "titleRequired": "请输入标题",++ "descriptionRequired": "请输入描述"++ },++ "confirm": {++ "ok": "确定",++ "cancel": "取消"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/pricing.jsonindex 00000000,00000000..9a501b19new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/pricing.json@@@ -1,0 -1,0 +1,434 @@@++{++ "title": "套餐与定价",++ "subtitle": "选择最适合您需求的套餐,开始您的AI创作之旅",++ "monthly": "月付",++ "yearly": "年付",++ "save25": "省25%",++ "save50": "省50%",++ "month": "月",++ "credits": "积分",++ "videos": "视频",++ "images": "图片",++ "flashSale50": "限时5折",++ "mostPopular": "最受欢迎",++ "plans": {++ "free": {++ "name": "Free",++ "credits": "最高60 积分",++ "videos": "每月最高可生成60个视频",++ "images": "每月最高可生成120张图片",++ "button": "立即开始"++ },++ "plus": {++ "name": "Plus",++ "credits": "700积分",++ "videos": "每月最高可生成700个视频",++ "images": "每月最高可生成1400张图片",++ "button": "立即购买"++ }++ },++ "features": {++ "textModeration": "文本内容安全审查",++ "imageModeration": "图片内容安全审查",++ "videoModeration": "视频内容安全审查",++ "multiModel": "多模型一站式支持",++ "textToVideo": "文字转视频",++ "imageToVideo": "图像转视频",++ "videoToVideo": "视频到视频",++ "consistentCharacter": "一致的角色视频",++ "aiAnimation": "AI动画生成",++ "aiImage": "AI图像生成",++ "voiceClone": "声音克隆",++ "voiceSynthesis": "声音合成",++ "fasterSpeed": "更快的生成速度",++ "withWatermark": "含水印输出",++ "noWatermark": "无水印输出",++ "storage500M": "存储空间500M",++ "storage5G": "存储空间5G"++ },++ "faq": {++ "title": "常见问题",++ "paymentMethods": {++ "question": "你们支持哪些支付方式?",++ "answer": "我们支持多种支付方式,包括主要的信用卡(Visa、MasterCard、American Express)以及支付宝等。如果您在中国使用我们的服务,可以通过支付宝购买一次性服务。"++ },++ "creditDeduction": {++ "question": "图片和视频生成时,积分是如何扣除的?",++ "answer": "我们的图片和视频生成定价与官方渠道保持一致。通常情况下,如果官方渠道有大额采购折扣,我们也会同步将这些优惠让利给您。",++ "pricingTable": {++ "title": "详细价格表",++ "headers": {++ "model": "模型",++ "type": "类型",++ "duration": "时长",++ "resolution": "分辨率",++ "notes": "备注",++ "credits": "积分",++ "price": "价格",++ "channel": "渠道"++ },++ "rows": [++ {++ "model": "gpt-5",++ "type": "大模型",++ "duration": "",++ "resolution": "",++ "notes": "大模型价格以官方价格为准",++ "credits": "每百万tokens",++ "price": "输入 9元,输出 72元",++ "channel": "yun"++ },++ {++ "model": "gpt-5-mini",++ "type": "大模型",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "",++ "price": "输入 1.8元,输出 14.4元",++ "channel": "yun"++ },++ {++ "model": "gpt-5-nano",++ "type": "大模型",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "",++ "price": "输入 0.36元,输出 2.88元",++ "channel": "yun"++ },++ {++ "model": "gemini-2.5-pro",++ "type": "大模型",++ "duration": "",++ "resolution": "支持视频",++ "notes": "",++ "credits": "",++ "price": "输入9元,输出 72元",++ "channel": "yun"++ },++ {++ "model": "chatgpt-4o-latest",++ "type": "大模型",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "",++ "price": "输入 36元,输出 108元",++ "channel": "yun"++ },++ {++ "model": "gemini-2.5-flash",++ "type": "大模型",++ "duration": "",++ "resolution": "支持视频",++ "notes": "",++ "credits": "",++ "price": "输入 2.16元,输出 18元",++ "channel": "yun"++ },++ {++ "model": "qwen-vl-max-latest",++ "type": "大模型",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "",++ "price": "输入1.6元,输出4元",++ "channel": "yun"++ },++ {++ "model": "gemini-2.5-flash-image",++ "type": "图片生成",++ "duration": "",++ "resolution": "",++ "notes": "又名nano banana,支持多图像输入",++ "credits": "1",++ "price": "0.27元",++ "channel": "yun"++ },++ {++ "model": "seedream-3.0",++ "type": "图片生成",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "2.6",++ "price": "0.26元",++ "channel": "官方"++ },++ {++ "model": "seededit-3.0",++ "type": "图片生成",++ "duration": "",++ "resolution": "",++ "notes": "图片编辑,支持jpeg、png格式",++ "credits": "3",++ "price": "0.3元",++ "channel": "官方"++ },++ {++ "model": "gpt-image-1",++ "type": "图片生成",++ "duration": "",++ "resolution": "支持图片编辑",++ "notes": "",++ "credits": "促销",++ "price": "low $0.011-0.016,medium $0.042-0.063,high $0.167-0.25",++ "channel": "yun"++ },++ {++ "model": "FLUX.1 Kontext [max]",++ "type": "图片生成",++ "duration": "",++ "resolution": "支持图片编辑",++ "notes": "",++ "credits": "1.5",++ "price": "0.6元",++ "channel": "yun"++ },++ {++ "model": "FLUX.1 Kontext [pro]",++ "type": "图片生成",++ "duration": "",++ "resolution": "支持图片编辑",++ "notes": "",++ "credits": "1",++ "price": "0.3元",++ "channel": "yun"++ },++ {++ "model": "Flux 1.1 pro ultra",++ "type": "图片生成",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "4.5",++ "price": "0.45元",++ "channel": "官方"++ },++ {++ "model": "Flux1.1 pro",++ "type": "图片生成",++ "duration": "",++ "resolution": "",++ "notes": "",++ "credits": "3",++ "price": "0.3元",++ "channel": "官方"++ },++ {++ "model": "midjourney relax",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "",++ "notes": "",++ "credits": "免费",++ "price": "",++ "channel": "yun"++ },++ {++ "model": "midjourney fast/turbo",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "",++ "notes": "",++ "credits": "4",++ "price": "",++ "channel": "yun"++ },++ {++ "model": "kling1.5/1.6/2.1",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "720p",++ "notes": "",++ "credits": "20",++ "price": "2元",++ "channel": "yun"++ },++ {++ "model": "kling1.5/1.6/2.1",++ "type": "视频生成",++ "duration": "10秒",++ "resolution": "720p",++ "notes": "",++ "credits": "40",++ "price": "4元",++ "channel": "yun"++ },++ {++ "model": "kling1.5/1.6/2.1",++ "duration": "5秒",++ "resolution": "1080p",++ "notes": "",++ "credits": "35",++ "price": "3.5元",++ "channel": "yun"++ },++ {++ "model": "kling1.5/1.6/2.1",++ "type": "视频生成",++ "duration": "10秒",++ "resolution": "1080p",++ "notes": "",++ "credits": "70",++ "price": "7元",++ "channel": "yun"++ },++ {++ "model": "kling2.1大师",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "1080p",++ "notes": "",++ "credits": "100",++ "price": "10元",++ "channel": "yun"++ },++ {++ "model": "kling2.1大师",++ "type": "视频生成",++ "duration": "10秒",++ "resolution": "1080p",++ "notes": "",++ "credits": "200",++ "price": "20元",++ "channel": "yun"++ },++ {++ "model": "wan2.2-plus",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "480p",++ "notes": "",++ "credits": "70",++ "price": "0.7元",++ "channel": "yun"++ },++ {++ "model": "wan2.2-plus",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "1080p",++ "notes": "",++ "credits": "35",++ "price": "3.5元",++ "channel": "yun"++ },++ {++ "model": "wan2.1-turbo(14b)",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "720p",++ "notes": "不要使用火山渠道",++ "credits": "12",++ "price": "1.2元",++ "channel": "yun"++ },++ {++ "model": "wan2.1-plus",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "720p",++ "notes": "支持首尾帧",++ "credits": "35",++ "price": "3.5元",++ "channel": "yun"++ },++ {++ "model": "wanx2.1-vace-plus",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "720p",++ "notes": "视频编辑",++ "credits": "35",++ "price": "3.5元",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-pro",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "480p",++ "notes": "支持10秒",++ "credits": "7.2",++ "price": "0.72元",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-pro",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "720p",++ "notes": "10秒价格翻倍",++ "credits": "16.4",++ "price": "1.64元",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-pro",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "1080p",++ "notes": "",++ "credits": "36.7",++ "price": "3.67元",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-lite",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "480p",++ "notes": "支持首尾帧",++ "credits": "5",++ "price": "0.5元",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-lite",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "720p",++ "notes": "支持10秒",++ "credits": "11",++ "price": "1.1元",++ "channel": "yun"++ },++ {++ "model": "seedance-1.0-lite",++ "type": "视频生成",++ "duration": "5秒",++ "resolution": "1080p",++ "notes": "10秒价格翻倍",++ "credits": "25",++ "price": "2.5元",++ "channel": "yun"++ }++ ]++ }++ },++ "creditExpiry": {++ "question": "我的积分会过期吗?",++ "answer": "我们的积分过期机制非常宽松。积分自获取之日起 12 个自然月后才会过期,您有充足的时间使用。"++ },++ "moreCredits": {++ "question": "如果我需要更多积分怎么办?",++ "answer": "您可以通过每天发布内容来获取免费积分。同时,也可以通过开通会员或直接购买积分的方式获得更多积分。"++ },++ "checkCredits": {++ "question": "如何查看我的积分情况?",++ "answer": "点击您的积分余额,即可查看积分的变更明细。"++ },++ "hiddenFees": {++ "question": "是否存在隐藏费用?",++ "answer": "没有。您所看到的价格就是您最终支付的价格,不会有任何额外的隐性收费。"++ },++ "refundPolicy": {++ "question": "有退款政策吗?",++ "answer": "我们提供7天无理由退款保证。如果您对服务不满意,可以在购买后7天内申请全额退款。"++ }++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/profile.jsonindex 00000000,00000000..b9c715a2new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/profile.json@@@ -1,0 -1,0 +1,189 @@@++{++ "personalInfo": "个人信息",++ "orderManagement": "订单管理",++ "myOrders": "购买记录",++ "mySubscriptions": "我的订阅",++ "plusMember": "PLUS会员",++ "vipUserGreeting": "尊敬的VIP用户,您已解锁全部会员权益",++ "vipDescription": "开通会员解锁全部功能,立享8种权益",++ "activateNow": "立即开通",++ "modifyUsername": "修改用户名",++ "logout": "退出登录",++ "userId": "用户ID",++ "username": "用户名",++ "email": "邮箱",++ "accountStatus": "账号状态",++ "normal": "正常",++ "disabled": "禁用",++ "memberType": "会员类型",++ "memberExpireTime": "会员到期时间",++ "nonMember": "非会员",++ "monthlyMember": "月度会员",++ "yearlyMember": "年度会员",++ "unknown": "未知",++ "upgradeCallToAction": "开通PLUS会员,体验更多高级功能!",++ "activatePlusMember": "立即开通PLUS会员",++ "orderId": "订单ID",++ "packageType": "套餐类型",++ "amount": "金额",++ "status": "状态",++ "createTime": "创建时间",++ "expireTime": "过期时间",++ "actions": "操作",++ "viewDetails": "查看详情",++ "goToPay": "去支付",++ "subscriptionId": "订阅ID",++ "cancelSubscription": "退订",++ "cancelSubscriptionConfirm": "确定要退订吗?退订后将无法享受会员权益。",++ "confirm": "确定",++ "cancel": "取消",++ "orderDetails": "订单详情",++ "close": "关闭",++ "goToPayment": "前往支付",++ "internalId": "内部ID",++ "subscriptionMode": "订阅模式",++ "paymentMethod": "支付方式",++ "refundedAmount": "已退款金额",++ "paymentIntent": "Payment Intent",++ "paymentLink": "支付链接",++ "openPaymentPage": "打开支付页面",++ "totalRecords": "共 {total} 条记录",++ "loading": "加载中...",++ "noOrderRecords": "暂无订单记录",++ "noSubscriptionRecords": "暂无订阅记录",++ "pleaseLoginFirst": "请先登录",++ "logoutSuccess": "退出登录成功",++ "updateSuccess": "更新成功",++ "updateFailed": "更新失败",++ "getUserInfoFailed": "获取用户信息失败",++ "getOrderListFailed": "获取订单列表失败",++ "getSubscriptionListFailed": "获取订阅列表失败",++ "refundSubmitted": "退款申请已提交",++ "refundFailed": "退款失败",++ "unsubscribeSuccess": "退订成功",++ "unsubscribeFailed": "退订失败",++ "getOrderDetailFailed": "获取订单详情失败",++ "pleaseEnterUsername": "请输入用户名",++ "usernameLengthMin": "用户名长度不能小于2个字符",++ "usernameLengthMax": "用户名长度不能超过20个字符",++ "confirmModify": "确认修改",++ "monthlySubscription": "月度订阅",++ "yearlySubscription": "年度订阅",++ "oneTimeMonthly": "一次性月度",++ "oneTimeYearly": "一次性年度",++ "paymentSuccess": "支付成功",++ "waitingForPayment": "等待支付",++ "refundSuccess": "退款成功",++ "orderCancelled": "订单取消",++ "subscriptionSuccess": "订阅成功",++ "subscriptionCancelled": "已取消",++ "vipBenefits": {++ "exclusiveBadge": "专属标识",++ "advancedFeatures": "高级功能",++ "memberGift": "会员礼包",++ "prioritySupport": "优先支持",++ "discount": "优惠折扣",++ "unlimitedTime": "无限时长",++ "fastExperience": "极速体验",++ "morePrivileges": "更多特权"++ },++ "points": {++ "title": "积分记录",++ "myPoints": "我的积分",++ "pointsDescription": "查看您的积分变动记录和使用情况",++ "pointsChange": "积分变动",++ "balance": "余额",++ "changeType": "变动类型",++ "description": "描述",++ "time": "时间",++ "earn": "获得",++ "spend": "消费",++ "refund": "退还",++ "expire": "过期",++ "aiService": "AI服务",++ "userRegister": "用户注册",++ "publish": "发布作品",++ "point": "积分交易",++ "noPointsRecords": "暂无积分记录",++ "totalRecords": "共 {{total}} 条记录"++ },++ "pointsPurchase": {++ "title": "购买积分",++ "currentPoints": "当前积分",++ "selectAmount": "选择购买数量",++ "description": "每1000积分售价15美元,滑动选择购买数量",++ "purchasePoints": "购买积分",++ "totalPrice": "总价",++ "buyNow": "立即购买",++ "paying": "支付中...",++ "paymentTip": "支付完成后,请点击下方按钮确认支付状态",++ "confirmPayment": "我已支付",++ "purchaseSuccess": "积分购买成功!",++ "paymentPending": "订单尚未支付成功,请稍后再试",++ "orderRefunded": "订单已退款",++ "orderCancelled": "订单已取消",++ "orderUnknown": "订单状态未知,请稍后再试",++ "queryFailed": "查询订单状态失败,请重试",++ "createOrderFailed": "创建支付订单失败,请重试",++ "redirectingToPayment": "正在跳转到支付页面...",++ "publish": "发布",++ "publishDesc": "发布内容获得积分奖励",++ "vip": "开通会员",++ "vipDesc": "会员专享积分福利",++ "buyPoints": "购买积分",++ "buyPointsDesc": "直接充值获得积分",++ "getPointsMethods": "获取积分的方法:"++ },++ "freeTrial": {++ "title": "🎉 免费会员体验",++ "congratulations": "恭喜您获得7天免费会员体验!",++ "description": "作为新用户,您可以享受7天的免费会员权益,体验所有高级功能,包括:",++ "unlimitedAI": "✓ 无限制AI生成",++ "priorityProcessing": "✓ 优先处理",++ "advancedModels": "✓ 高级模型",++ "dedicatedSupport": "✓ 专属客服",++ "noAds": "✓ 无广告体验",++ "morePrivileges": "✓ 更多特权",++ "completelyFree": "🎁 完全免费,无需支付任何费用",++ "claimNow": "立即领取",++ "later": "稍后再说"++ },++ "vipHonorText": "您是尊贵的VIP用户",++ "inviteCode": "邀请码",++ "edit": "编辑",++ "copy": "复制",++ "copySuccess": "已复制",++ "cancelAccount": "注销账户",++ "cancelAccountWarning": "注销账户是不可逆的操作,一旦注销,您的所有数据将被永久删除,包括:",++ "cancelAccountDataList": "个人资料和设置,所有发布的内容,积分和会员权益,订单和支付记录",++ "cancelAccountCaution": "请谨慎操作!",++ "cancelAccountSecurity": "为了您的账户安全,请先获取验证码进行身份验证。",++ "verificationCode": "验证码",++ "pleaseEnterVerificationCode": "请输入验证码",++ "getVerificationCode": "获取验证码",++ "resendAfter": "s后重发",++ "confirmCancel": "确认注销",++ "stats": {++ "totalEarned": "累计赚钱",++ "balance": "当前余额",++ "points": "可用积分",++ "coupons": "优惠券",++ "currencyYuan": "元"++ },++ "deleteAccount": {++ "title": "删除你的账户",++ "desc": "删除账户后,你将无法继续使用 Aitoearn 服务,我们也会永久删除你的个人数据。",++ "apply": "申请注销"++ },++ "messages": {++ "getPointsRecordsFailed": "获取积分记录失败",++ "verificationCodeSent": "验证码已发送",++ "getVerificationCodeFailed": "获取验证码失败",++ "accountCancelledSuccess": "账户注销成功",++ "priceId": "价格ID"++ },++ "memberTypes": {++ "oneTime": "一次性",++ "trial": "试用"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/publish.jsonindex 00000000,8a02e306..8a02e306mode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/zh-CN/publish.json+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/publish.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/route.jsonindex 00000000,00000000..4b31c3fbnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/route.json@@@ -1,0 -1,0 +1,15 @@@++{++ "home": "首页",++ "accounts": "账户",++ "publish": "发布",++ "hotContent": "热门内容",++ "hotContentNew": "热门内容新",++ "download": "下载",++ "aiTools": "AI工具",++ "tasks": "任务中心",++ "interactive": "作品互动",++ "engagement": "互动数据",++ "dataStatistics": "数据统计",++ "navigation": "导航",++ "aiRank": "AI热榜"++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/task.jsonindex 00000000,00000000..aaeb60aanew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/task.json@@@ -1,0 -1,0 +1,103 @@@++{++ "title": "任务中心",++ "subtitle": "接受任务,完成任务,获得奖励",++ "pendingTasks": "待接受任务",++ "acceptedTasks": "已接受任务",++ "taskDetails": "任务详情",++ "acceptTask": "接受任务",++ "completeTask": "完成任务",++ "submitTask": "提交任务",++ "viewDetails": "查看详情",++ "taskProcessing": "任务处理中...",++ "acceptingTask": "正在接受任务...",++ "publishingTask": "正在发布任务...",++ "submittingTask": "正在提交任务...",++ "taskCompleted": "任务完成",++ "taskStatus": {++ "pending": "待完成",++ "doing": "已完成",++ "accepted": "已接受",++ "completed": "已完成",++ "rejected": "已拒绝",++ "active": "进行中",++ "inactive": "已结束"++ },++ "taskTypes": {++ "video": "视频",++ "article": "图文",++ "article2": "纯文字"++ },++ "platforms": {++ "tiktok": "TikTok",++ "youtube": "YouTube",++ "twitter": "Twitter",++ "bilibili": "哔哩哔哩",++ "KWAI": "快手",++ "douyin": "抖音",++ "xhs": "小红书",++ "wxSph": "微信视频号",++ "wxGzh": "微信公众号",++ "facebook": "Facebook",++ "instagram": "Instagram",++ "threads": "Threads",++ "pinterest": "Pinterest"++ },++ "taskInfo": {++ "publishTime": "发布时间",++ "endTime": "结束时间",++ "acceptTime": "接受时间",++ "submitTime": "提交时间",++ "reward": "奖励",++ "type": "类型",++ "status": "状态",++ "description": "描述",++ "account": "发布账号",++ "currentRecruits": "已接受",++ "maxRecruits": "最大招募",++ "people": "人",++ "firstSubmission": "首次提交"++ },++ "messages": {++ "pleaseLoginFirst": "请先登录以查看任务",++ "getPendingTasksFailed": "获取待接受任务失败",++ "getAcceptedTasksFailed": "获取已接受任务失败",++ "acceptTaskSuccess": "接受任务成功!",++ "acceptTaskFailed": "接受任务失败",++ "submitTaskSuccess": "任务提交成功!",++ "submitTaskFailed": "任务提交失败",++ "publishTaskFailed": "发布任务失败",++ "getTaskDetailFailed": "获取任务详情失败",++ "taskProcessFailed": "任务处理失败",++ "noPendingTasks": "暂无待接受任务",++ "noAcceptedTasks": "暂无已接受任务",++ "noTaskDetails": "暂无任务详情",++ "loading": "加载中...",++ "totalRecords": "共 {{total}} 条记录",++ "pageInfo": "第 {{start}}-{{end}} 条,共 {{total}} 条",++ "taskInProgress": "任务正在进行中,可以接受",++ "taskEnded": "任务已结束",++ "acceptedCount": "已接受 {{current}}/{{max}} 人"++ },++ "modal": {++ "submitTask": "提交任务",++ "submitLink": "提交链接",++ "submitLinkPlaceholder": "请输入任务完成后的链接",++ "submitTip": "请确保您已经完成了任务要求,并提供了正确的提交链接。",++ "confirmSubmit": "确认提交",++ "cancel": "取消",++ "close": "关闭",++ "mediaPreview": "媒体预览"++ },++ "time": {++ "justNow": "刚刚",++ "minutesAgo": "{{minutes}}分钟前",++ "hoursAgo": "{{hours}}小时前",++ "daysAgo": "{{days}}天前"++ },++ "accountSelect": {++ "title": "选择账号",++ "description": "请选择要用于发布任务的账号",++ "accountId": "账号ID",++ "redirectingToAccounts": "正在跳转到账户页面,请添加频道账号"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/translation.jsonindex 00000000,00000000..947951f2new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/translation.json@@@ -1,0 -1,0 +1,4 @@@++{++ "title": "AIToEarn官方网站",++ "content": "最好用的开源矩阵工具"++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/vip.jsonindex 00000000,00000000..3c2d9b9cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/vip.json@@@ -1,0 -1,0 +1,203 @@@++{++ "title": "PLUS会员",++ "description": "开通会员解锁全部功能,立享8种权益",++ "activateNow": "立即开通",++ "upgrade": "开通会员",++ "membership": "会员",++ "pleaseLoginFirst": "请先登录",++ "paymentOrderCreated": "支付订单创建成功",++ "paymentLinkNotFound": "未获取到支付链接",++ "createPaymentOrderFailed": "创建支付订单失败",++ "createPaymentOrderError": "创建支付订单失败,请稍后重试",++ "trialNotice": {++ "badge": "🎉 新用户专享",++ "description": "选择连续包月或连续包年,可享受7天免费试用期!"++ },++ "trialText": {++ "month": "前7天免费,之后$19/月",++ "year": "前7天免费,之后$144/年"++ },++ "badge": {++ "onceMonth": "一次性",++ "month": "7天免费试用",++ "year": "7天免费试用",++ "monthOld": "25%优惠",++ "yearOld": "50%优惠"++ },++ "vipBenefits": {++ "exclusiveBadge": "专属标识",++ "advancedFeatures": "高级功能",++ "memberGift": "会员礼包",++ "prioritySupport": "优先支持",++ "discount": "优惠折扣",++ "unlimitedTime": "无限时长",++ "fastExperience": "极速体验",++ "morePrivileges": "更多特权"++ },++ "plans": {++ "onceMonth": "一次性月度",++ "month": "月度订阅",++ "year": "年度订阅"++ },++ "planTitles": {++ "month": "月费会员",++ "year": "年费会员",++ "onceMonth": "月度会员"++ },++ "selectDuration": "选择开通时长",++ "autoRenewal": "自动续订,随时取消",++ "priceUnits": {++ "month": "/月",++ "year": "/年"++ },++ "subscriptionManagement": "订阅管理",++ "subscriptionPlanManagement": "订阅计划管理",++ "subscriptionPlans": "订阅计划",++ "purchaseHistory": "购买记录",++ "myMembership": "我的会员",++ "basicMembership": "基础会员",++ "validUntil": "有效期至",++ "activatedAutoRenewalPlans": "已开通自动续费套餐",++ "activatedAutoRenewalPlansno": "未开通自动续费套餐",++ "noAutoRenewalItems": "你还没有开通自动续费项目哦",++ "viewMorePlans": "查看更多套餐",++ "continuousAnnual": "连续包年",++ "oneTimePurchase": "一次性购买",++ "alipayPayment": "支付宝支付",++ "noMoreContent": "没有内容了",++ "previousPage": "上一页",++ "nextPage": "下一页",++ "pageInfo": "第 {current} 页,共 {total} 页",++ "continuousMember": "连续会员",++ "singleMember": "单月会员",++ "autoRenewalEnabled": "自动续费已开启",++ "autoRenewalDisabled": "自动续费未开启",++ "nextRenewalDate": "下次续费时间",++ "membershipExpires": "有效期至",++ "currentPlan": "当前计划",++ "modal": {++ "title": "免费试用7天会员",++ "highlight": "立得100积分",++ "choosePlan": "选择合适你的套餐,或直接",++ "buyPoints": "购买积分",++ "pointsDetail": "积分详情",++ "vipInfo": {++ "details": "详情",++ "subscription": "订阅管理",++ "planType": "计划",++ "monthly": "连续包月PLUS会员",++ "monthly2": "月度会员",++ "yearly": "连续包年PLUS会员",++ "yearly2": "年度会员",++ "singleMonth": "单月会员",++ "trial": "试用中",++ "cancelled": "已退订",++ "expireTime": "到期时间",++ "xufeiTime": "续费时间",++ "remainingPoints": "剩余积分",++ "buyPoints": "购买积分"++ },++ "tabs": {++ "yearly": "连续包年",++ "monthly": "连续包月",++ "once": "单月购买"++ },++ "savings": {++ "yearly": "省50%",++ "monthly": "省25%"++ },++ "free": {++ "title": "免费",++ "price": "¥0",++ "period": "每月",++ "forever": "永久",++ "currentPlan": "当前计划",++ "freePlan": "免费计划",++ "points": "每月签到赠送60积分",++ "features": {++ "dailyPoints": "每月最高10+次seedance等模型视频生成",++ "maxPoints": "全网热门内容洞察",++ "videos": "抖音、小红书、视频号、快手、哔哩哔哩、微信公众号TikTok、YouTube、Facebook、Instagram、Threads、Twitter(X)、Pinterest全平台支持",++ "images": "无限制频道连接",++ "storage": "内容搜索、评论搜索、智能互动管理"++ }++ },++ "plans": {++ "goumai": "购买",++ "yearly": {++ "title": "年度会员",++ "bestValue": "最划算",++ "price": "12",++ "period": "每月",++ "originalPrice": "$300/年",++ "button": "$144/年 省50%",++ "points": "760 积分/月(包含签到赠送60积分)",++ "description": "每月最高150+次seedance等模型视频生成",++ "features": {++ "contentReview": "内容安全审核",++ "dailyPoints": "限时nano banana等图片模型无限免费使用",++ "multiModel": "GPT5,Gemini-2.5-Pro等大模型使用",++ "textToVideo": "抖音、小红书、视频号、快手、哔哩唑哩,微信公众号、TikTok、YouTube、Facebook、Instagram.Threads、Twitter(X)、Pinterest全平台支持",++ "aiGeneration": "无限制频道连接",++ "noWatermark": "内容搜索、评论搜索、智能互动管理"++ }++ },++ "monthly": {++ "title": "月度会员",++ "price": "19",++ "period": "每月",++ "originalPrice": "$25/月",++ "button": "$19/月 省25%",++ "points": "760 积分/月(包含签到赠送60积分)",++ "description": "每月最高150+次seedance等模型视频生成"++ },++ "once": {++ "title": "一次性月度会员",++ "price": "25",++ "period": "每月",++ "button": "$25/月",++ "points": "760 积分/月(包含签到赠送60积分)",++ "description": "每月最高150+次seedance等模型视频生成",++ "storage": "存储空间5G"++ }++ },++ "trial": "7天免费试用",++ "cancelAnytime": "包年可随时取消",++ "cancelMonthly": "包月可随时取消"++ },++ "points": {++ "title": "积分详情",++ "current": "当前积分",++ "remaining": "剩余积分",++ "subscribed": "订阅积分",++ "recharged": "充值积分",++ "gifted": "赠送积分",++ "validity": "积分有效期",++ "tabs": {++ "all": "全部",++ "spend": "消耗",++ "earn": "获得"++ },++ "noData": "没有内容了",++ "disclaimer": "仅展示近1个月明细,数据更新可能有延时 积分规则",++ "recordChange": "积分变动",++ "recordTypes": {++ "recharge": "充值",++ "consume": "消耗",++ "gift": "赠送",++ "refund": "退款",++ "expire": "过期",++ "adjust": "调整"++ }++ },++ "recharge": {++ "title": "购买积分",++ "current": "当前积分",++ "price": "每1000积分售价15美元",++ "amount": "购买积分",++ "total": "总价",++ "buyNow": "立即购买",++ "range": "1K-50K",++ "unit": "积分"++ }++}diff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/wallet.jsonindex 00000000,68760c09..68760c09mode 000000,100644..100644--- a/project/aitoearn-web/src/app/i18n/locales/zh-CN/wallet.json+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/wallet.jsondiff --cc project/aitoearn-web/src/app/i18n/locales/zh-CN/youtube.jsonindex 00000000,00000000..adaf4801new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/locales/zh-CN/youtube.json@@@ -1,0 -1,0 +1,18 @@@++{++ "youtubeAuth": "YouTube 授权",++ "authDescription": "请输入您的邮箱地址以获取 YouTube 授权",++ "email": "邮箱",++ "enterEmail": "请输入邮箱地址",++ "authorize": "授权",++ "pleaseEnterEmail": "请输入邮箱地址",++ "invalidEmail": "请输入有效的邮箱地址",++ "authFailed": "授权失败,请稍后重试",++ "checkAuth": "检查授权",++ "notAuthorized": "未授权",++ "uploadVideo": "上传视频",++ "needAuthFirst": "首先需要授权",++ "uploadFailed": "上传失败",++ "uploadSuccess": "上传成功",++ "checkFailed": "检查失败",++ "alreadyAuthorized": "已授权"++}diff --cc project/aitoearn-web/src/app/i18n/settings.tsindex 00000000,00000000..6d181a25new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/i18n/settings.ts@@@ -1,0 -1,0 +1,23 @@@++export const fallbackLng = "en";++export const languages = [fallbackLng, "zh-CN"];++export const defaultNS = "common";++export const cookieName = "i18next";++++export function getOptions(++ lng = fallbackLng,++ ns: string | string[] = [defaultNS, "route"],++) {++ return {++ // debug: true,++ supportedLngs: languages,++ // preload: languages,++ fallbackLng,++ lng,++ fallbackNS: defaultNS,++ defaultNS,++ ns,++ // backend: {++ // projectId: '01b2e5e8-6243-47d1-b36f-963dbb8bcae3'++ // }++ };++}diff --cc project/aitoearn-web/src/app/layout/ConditionalHeader.tsxindex 00000000,00000000..b542104dnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/layout/ConditionalHeader.tsx@@@ -1,0 -1,0 +1,26 @@@++"use client";++++import { usePathname } from "next/navigation";++import LyaoutHeader from "@/app/layout/LyaoutHeader";++import HomeHeader from "@/app/layout/HomeHeader";++import { homeHeaderRouterData } from "@/app/layout/routerData";++import { removeLocalePrefix } from "@/app/layout/layout.utils";++++export default function ConditionalHeader() {++ const pathname = usePathname();++ const currentPath = removeLocalePrefix(pathname).replace(/\/+$/, "") || "/";++++ const isActive = (href: string) => {++ if (!href.startsWith("/")) return false;++ const normalizedHref = href.replace(/\/+$/, "") || "/";++ if (normalizedHref === "/") return currentPath === "/";++ if (currentPath === normalizedHref) return true;++ return currentPath.startsWith(normalizedHref + "/");++ };++++ if (homeHeaderRouterData.value.some((v) => isActive(v.href))) {++ return <HomeHeader />;++ }++++ return <LyaoutHeader />;++}diff --cc project/aitoearn-web/src/app/layout/HomeHeader.tsxindex 00000000,00000000..faeb90d7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/layout/HomeHeader.tsx@@@ -1,0 -1,0 +1,166 @@@++import { ForwardedRef, forwardRef, memo, useState } from "react";++import { useTransClient } from "@/app/i18n/client";++import { usePathname, useRouter } from "next/navigation";++import { useUserStore } from "@/store/user";++import styles from "@/app/[lng]/styles/difyHome.module.scss";++import Image from "next/image";++import logo from "@/assets/images/logo.png";++import Link from "next/link";++import { Button } from "antd";++import { MenuOutlined, CloseOutlined } from "@ant-design/icons";++import { removeLocalePrefix } from "@/app/layout/layout.utils";++import { homeHeaderRouterData } from "@/app/layout/routerData";++import LanguageSwitcher from "@/components/common/LanguageSwitcher";++++export interface IHomeHeaderRef { }++++export interface IHomeHeaderProps { }++++const HomeHeader = memo(++ forwardRef(({ }: IHomeHeaderProps, ref: ForwardedRef<IHomeHeaderRef>) => {++ const pathname = usePathname();++ const { t } = useTransClient("home");++ const router = useRouter();++ const userStore = useUserStore();++ const currentPath = removeLocalePrefix(pathname).replace(/\/+$/, "") || "/";++ const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);++++++ /**++ * 切换移动端菜单显示状态++ */++ const toggleMobileMenu = () => {++ setIsMobileMenuOpen(!isMobileMenuOpen);++ };++++ /**++ * 关闭移动端菜单++ */++ const closeMobileMenu = () => {++ setIsMobileMenuOpen(false);++ };++++ /**++ * 判断链接是否为当前激活状态++ */++ const isActive = (href: string) => {++ if (!href.startsWith("/")) return false;++ const normalizedHref = href.replace(/\/+$/, "") || "/";++ if (normalizedHref === "/") return currentPath === "/";++ if (currentPath === normalizedHref) return true;++ return currentPath.startsWith(normalizedHref + "/");++ };++++ return (++ <>++ <header className={styles.header}>++ <div className={styles.headerContainer}>++ <div++ className={styles.logo}++ style={{ cursor: "pointer" }}++ onClick={() => router.push("/")}++ >++ <Image src={logo} alt="logo" width={50} />++ <span className={styles.logoText}>{t("header.logo")}</span>++ </div>++++ {/* 桌面端导航 */}++ <nav className={styles.nav}>++ {homeHeaderRouterData.value.map((v) => {++ if (v.href === "/") {++ return null;++ }++ return (++ <Link++ key={v.title}++ className={`${styles.navLink} ${isActive(v.href) ? styles.active : ""}`}++ href={v.href}++ target="_blank"++ rel="noopener noreferrer"++ style={{ paddingTop: "3px" }}++ >++ {v.title}++ </Link>++ );++ })}++ </nav>++++ <div className={styles.headerRight}>++ <LanguageSwitcher++ className={styles.languageButton}++ size="small"++ />++++ {/* 移动端菜单按钮 */}++ <button++ className={styles.mobileMenuButton}++ onClick={toggleMobileMenu}++ aria-label="Toggle mobile menu"++ >++ {isMobileMenuOpen ? <CloseOutlined /> : <MenuOutlined />}++ </button>++++ <button++ onClick={() => {++ router.push("/accounts");++ }}++ className={styles.getStartedBtn}++ >++ {t("header.getStarted")}++ </button>++ </div>++ </div>++ </header>++++ {/* 移动端菜单遮罩层 */}++ {isMobileMenuOpen && (++ <div className={styles.mobileMenuOverlay} onClick={closeMobileMenu} />++ )}++++ {/* 移动端侧边菜单 */}++ <div className={`${styles.mobileMenu} ${isMobileMenuOpen ? styles.mobileMenuOpen : ""}`}>++ <div className={styles.mobileMenuHeader}>++ <Image src={logo} alt="logo" width={40} />++ <span className={styles.mobileMenuTitle}>{t("header.logo")}</span>++ <button++ className={styles.mobileMenuClose}++ onClick={closeMobileMenu}++ aria-label="Close mobile menu"++ >++ <CloseOutlined />++ </button>++ </div>++++ <nav className={styles.mobileMenuNav}>++ {homeHeaderRouterData.value.map((v) => {++ if (v.href === "/") {++ return null;++ }++ return (++ <Link++ key={v.title}++ className={`${styles.mobileNavLink} ${isActive(v.href) ? styles.active : ""}`}++ href={v.href}++ target="_blank"++ rel="noopener noreferrer"++ onClick={closeMobileMenu}++ >++ {v.title}++ </Link>++ );++ })}++ </nav>++++ <div className={styles.mobileMenuFooter}>++ <LanguageSwitcher++ className={styles.mobileLanguageButton}++ size="small"++ />++ </div>++ </div>++ </>++ );++ }),++);++++export default HomeHeader;diff --cc project/aitoearn-web/src/app/layout/LyaoutHeader.tsxindex 00000000,174ee747..174ee747mode 000000,100644..100644--- a/project/aitoearn-web/src/app/layout/LyaoutHeader.tsx+++ b/project/aitoearn-web/src/app/layout/LyaoutHeader.tsxdiff --cc project/aitoearn-web/src/app/layout/Providers.tsxindex 00000000,00000000..6c032d52new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/layout/Providers.tsx@@@ -1,0 -1,0 +1,80 @@@++"use client";++++import { GoogleOAuthProvider } from "@react-oauth/google";++import { ConfigProvider, App, notification } from "antd";++import { AntdRegistry } from "@ant-design/nextjs-registry";++import { Suspense, useEffect } from "react";++import type { Locale } from "antd/es/locale";++import zh_CN from "antd/es/locale/zh_CN";++import en_US from "antd/es/locale/en_US";++import { fallbackLng } from "@/app/i18n/settings";++import useCssVariables from "@/app/hooks/useCssVariables";++import { useAccountStore } from "@/store/account";++import { useUserStore } from "@/store/user";++import { useCommontStore } from "@/store/commont";++++// antd 语言获取++const getAntdLang = (lang: string): Locale => {++ switch (lang) {++ case "zh-CN":++ return zh_CN;++ case "en":++ return en_US;++ }++ return getAntdLang(fallbackLng);++};++++export function Providers({++ children,++ lng,++}: {++ children: React.ReactNode;++ lng: string;++}) {++ const cssVariables = useCssVariables();++ const [api, contextHolder] = notification.useNotification({++ top: 74,++ });++++ useEffect(() => {++ const urlParams = new URLSearchParams(window.location.search);++ const queryToken = urlParams.get("token");++ if (queryToken) {++ useUserStore.getState().setToken(queryToken);++ }++ if (useUserStore.getState().token) {++ useUserStore.getState().getUserInfo();++ useAccountStore.getState().accountInit();++ }++ }, []);++++ useEffect(() => {++ useCommontStore.getState().setNotification(api);++ }, [api]);++++ useEffect(() => {++ useUserStore.getState().setLang(lng);++ }, [lng]);++++ return (++ <GoogleOAuthProvider clientId="1094109734611-flskoscgp609mecqk9ablvc6i3205vqk.apps.googleusercontent.com">++ <ConfigProvider++ locale={getAntdLang(lng)}++ theme={{++ token: {++ colorPrimary: cssVariables["--theColor5"],++ },++ }}++ >++ <App component={false}>++ <Suspense>++ <AntdRegistry>++ {contextHolder}++ {children}++ </AntdRegistry>++ </Suspense>++ </App>++ </ConfigProvider>++ </GoogleOAuthProvider>++ );++}diff --cc project/aitoearn-web/src/app/layout/images/QRCode1.jpgindex 00000000,00000000..19beca22new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/app/layout/images/QRCode2.pngindex 00000000,00000000..0506d119new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/app/layout/images/defaultAvatar.jpgindex 00000000,00000000..31fa216fnew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/app/layout/layout.utils.tsindex 00000000,00000000..64745feenew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/layout/layout.utils.ts@@@ -1,0 -1,0 +1,3 @@@++export function removeLocalePrefix(path: string): string {++ return path.replace(/^\/[a-z]{2}(-[A-Z]{2})?/, "") || "/";++}diff --cc project/aitoearn-web/src/app/layout/layoutNav.tsxindex 00000000,00000000..17dbd283new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/layout/layoutNav.tsx@@@ -1,0 -1,0 +1,292 @@@++"use client";++++import styles from "@/app/layout/styles/layoutNav.module.scss";++import {++ IRouterDataItem,++ peRouterData,++ routerData,++} from "@/app/layout/routerData";++import Link from "next/link";++import { MenuFoldOutlined, RightOutlined, UpOutlined } from "@ant-design/icons";++import Image from "next/image";++import React, { useEffect, useRef, useState } from "react";++import { Drawer, Menu } from "antd";++import { useRouter, useSelectedLayoutSegments } from "next/navigation";++import { useTransClient } from "@/app/i18n/client";++import { useGetClientLng } from "@/hooks/useSystem";++++/**++ *++ * @param child++ * @param iconLoca 0=上,1=右++ */++function getNameTag(child: IRouterDataItem, iconLoca: number = 1) {++ const { t } = useTransClient("route");++ const lng = useGetClientLng();++ const path = child.path || "/";++++ // 确保路径包含语言前缀++ const fullPath = path.startsWith('/') ? `/${lng}${path}` : `/${lng}/${path}`;++++ return (++ <>++ {!child.children ? (++ <Link href={fullPath} target={path[0] === "/" ? "_self" : "_blank"}>++ {t(child.translationKey as any)}++ </Link>++ ) : (++ <span>++ {t(child.translationKey as any)}++ {child.children &&++ (iconLoca === 0 ? <UpOutlined /> : <RightOutlined />)}++ </span>++ )}++ </>++ );++}++++/**++ * 递归级联++ * @param child++ */++function RecursionNav({ child }: { child: IRouterDataItem }) {++ return (++ child.children && (++ <ul className={styles["recursionNav"]}>++ {child.children.map((v) => {++ return (++ <li key={v.name}>++ {getNameTag(v)}++ {v.children && <RecursionNav child={v} />}++ </li>++ );++ })}++ </ul>++ )++ );++}++++function ParcelTag({++ child,++ children,++}: {++ child: IRouterDataItem;++ children: React.ReactNode;++}) {++ if (child.children) {++ return <>{children}</>;++ } else {++ const lng = useGetClientLng();++ const path = child.path || "/";++ const fullPath = path.startsWith('/') ? `/${lng}${path}` : `/${lng}/${path}`;++ return <Link href={fullPath}>{children}</Link>;++ }++}++++/**++ * 二级导航++ * @param child++ * @param visible++ */++function ChildNav({++ child,++ visible,++}: {++ child: IRouterDataItem;++ visible: boolean;++}) {++ const elRef = useRef<HTMLUListElement | null>(null);++ const [height, setHeight] = useState("auto");++ const animaTime = 0.3;++ const timer = useRef<NodeJS.Timeout>();++ const { t } = useTransClient("route");++++ useEffect(() => {++ if (!elRef.current) return;++ const h = elRef.current!.offsetHeight;++ if (h === 0) return;++ setHeight(`${h}px`);++ }, []);++++ useEffect(() => {++ if (height !== "auto") {++ setTimeout(() => {++ elRef.current!.style.visibility = "visible";++ elRef.current!.style.transition = animaTime + "s";++ }, 1);++ }++ }, [height]);++++ useEffect(() => {++ if (!elRef.current) return;++ if (visible) {++ timer.current = setTimeout(() => {++ elRef.current!.style.overflow = "visible";++ }, animaTime * 1000);++ } else {++ elRef.current!.style.overflow = "hidden";++ clearTimeout(timer.current);++ }++ }, [visible]);++++ return (++ child.children && (++ <ul++ ref={elRef}++ className={styles["layoutNavPC-one"]}++ style={++ visible || height === "auto"++ ? { height: height }++ : { height: 0, padding: 0 }++ }++ >++ {child.children.map((v1) => {++ return (++ <li key={v1.name}>++ <div++ className={styles["layoutNavPC-one-item"]}++ style={{ backgroundImage: v1.backColor }}++ >++ <ParcelTag child={v1}>++ <div className={styles["layoutNavPC-one-icon"]}>++ {v1.icon ? (++ <Image src={v1.icon!} alt="icon" width={20} />++ ) : (++ ""++ )}++ </div>++ <span className={styles["layoutNavPC-one-text"]}>++ {t(v1.translationKey as any)}++ </span>++ {v1.children && <RightOutlined />}++ </ParcelTag>++ </div>++ <RecursionNav child={v1} />++ </li>++ );++ })}++ </ul>++ )++ );++}++++function NavPC() {++ const [activeNav, setActiveNav] = useState("");++ const timer = useRef<NodeJS.Timeout>();++ const route = useSelectedLayoutSegments();++ const { t } = useTransClient("route");++++ let currRouter = "/";++ if (route.length === 1) {++ currRouter = route[0];++ currRouter = currRouter === "/" ? currRouter : "/" + currRouter;++ } else {++ currRouter = "/" + route.slice(0, 2).join("/");++ }++++ return (++ <ul className={styles.layoutNavPC}>++ {routerData.map((v1) => {++ return (++ <li++ key={v1.name}++ className={++ activeNav === v1.name || v1.path === currRouter++ ? styles["layoutNavPC-item-active"]++ : ""++ }++ onMouseEnter={() => {++ setActiveNav(v1.children ? v1.name : "");++ clearTimeout(timer.current);++ }}++ onMouseLeave={() => {++ timer.current = setTimeout(() => {++ setActiveNav("");++ }, 300);++ }}++ >++ {getNameTag(v1, 0)}++ <ChildNav++ key={v1.name}++ child={v1}++ visible={activeNav === v1.name}++ />++ </li>++ );++ })}++ </ul>++ );++}++++function NavPE() {++ const [open, setOpen] = useState(false);++ const router = useRouter();++ const { t } = useTransClient("route");++ const lng = useGetClientLng();++++ const translatedMenuItems = routerData.map((item) => ({++ key: item.path || item.name,++ label: t(item.translationKey as any),++ children: item.children?.map((child) => ({++ key: child.path || child.name,++ label: t(child.translationKey as any),++ })),++ }));++++ const handleMenuClick = (e: { key: string }) => {++ // 确保使用当前语言前缀++ const targetPath = e.key.startsWith('/') ? e.key : `/${e.key}`;++ const fullPath = `/${lng}${targetPath}`;++++ // 调试信息++ console.log('Menu click debug:', {++ key: e.key,++ lng,++ targetPath,++ fullPath,++ currentPath: window.location.pathname++ });++++ // 先关闭菜单++ setOpen(false);++++ // 使用 window.location.href 进行跳转,确保完全重新加载页面++ // 这样可以避免路由状态混乱的问题++ window.location.href = fullPath;++ };++++ return (++ <div className={styles.layoutNavPE}>++ <div onClick={() => setOpen(true)} className={styles["layoutNavPE-menu"]}>++ <MenuFoldOutlined />++ </div>++ <Drawer++ title={t("navigation")}++ placement="right"++ onClose={() => setOpen(false)}++ width="85%"++ open={open}++ >++ <Menu++ className="layoutNavPE-menu"++ selectable={false}++ onClick={handleMenuClick}++ style={{ width: "100%" }}++ mode="inline"++ items={translatedMenuItems}++ />++ </Drawer>++ </div>++ );++}++++function LayoutNav() {++ return (++ <div className={styles.navContainer}>++ <NavPC />++ <NavPE />++ </div>++ );++}++++export default LayoutNav;diff --cc project/aitoearn-web/src/app/layout/routerData.tsindex 00000000,094cc2b4..094cc2b4mode 000000,100644..100644--- a/project/aitoearn-web/src/app/layout/routerData.ts+++ b/project/aitoearn-web/src/app/layout/routerData.tsdiff --cc project/aitoearn-web/src/app/layout/styles/layoutNav.module.scssindex 00000000,00000000..cfd239efnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/layout/styles/layoutNav.module.scss@@@ -1,0 -1,0 +1,187 @@@++.languageDropdown {++ border: 1px solid #ccc;++}++++++.layoutNavPC {++ display: flex;++ align-items: center;++ a {++ //color: var(--black);++ display: flex;++ align-items: center;++ justify-content: center;++ height: 100%;++ }++++ @media (max-width: 860px) {++ display: none;++ }++ & > li {++ position: relative;++ height: 100%;++ display: flex;++ margin-right: 50px;++ align-items: center;++ @media (max-width: 1200px) {++ margin-right: 30px;++ }++ &:hover {++ & > span, & > a {++ color: var(--theColor4);++ }++ }++ }++ li {++ cursor: pointer;++ white-space: nowrap;++ & > span {++ display: flex;++ align-items: center;++ svg {++ transform: rotate(0deg);++ transition: 0.3s;++ margin-left: 8px;++ font-size: 12px;++ }++ }++ }++++ .layoutNavPC-item-active {++ & > span {++ color: var(--theColor4);++ svg {++ transform: rotate(180deg);++ }++ }++ & > a {++ color: var(--theColor4);++ }++ }++++ .layoutNavPC-one {++ overflow: hidden;++ box-sizing: border-box;++ position: absolute;++ bottom: 0;++ transform: translateY(calc(100% + 10px));++ left: 0;++ white-space: nowrap;++ background: var(--whiteColor);++ padding: 10px 0;++ border-radius: 10px;++ z-index: 3;++ box-shadow: 0 0 10px rgba(112, 112, 112, 0.3);++ visibility: hidden;++ li {++ padding: 0 15px;++ &:hover {++ .layoutNavPC-one-item {++ span {++ color: var(--theColor4) !important;++ }++ }++ & > .recursionNav {++ display: block;++ }++ }++ }++++ & > li {++ position: relative;++ }++++ .layoutNavPC-one-item {++ padding: 10px;++ min-width: 170px;++ border-radius: 10px;++ margin-bottom: 8px;++ a {++ display: flex;++ width: 100%;++ justify-content: left;++ }++ }++ .layoutNavPC-one-item, .layoutNavPC-one-item a {++ display: flex;++ align-items: center;++ position: relative;++ .layoutNavPC-one-icon {++ width: 44px;++ height: 44px;++ background: var(--whiteColor);++ border-radius: 10px;++ display: flex;++ align-items: center;++ justify-content: center;++ margin-right: 12px;++ }++ svg {++ position: absolute;++ top: 50%;++ transform: translateY(-50%);++ right: 20px;++ }++ }++++ .recursionNav {++ position: absolute;++ right: 0;++ top: 0;++ transform: translateX(100%);++ box-shadow: 0 0 10px rgba(112, 112, 112, 0.3);++ background: var(--whiteColor);++ border-radius: 10px;++ padding: 10px 0;++ display: none;++ & > li {++ padding: 10px 20px;++ //width: 100px;++ position: relative;++ &:hover {++ & > span, & > a {++ color: var(--theColor4) !important;++ }++ }++ & > span, a {++ display: flex;++ align-items: center;++ justify-content: space-between;++ }++ }++ }++ }++}++++.layoutNavPE {++ display: none;++ .layoutNavPE-menu {++ font-size: 24px;++ }++ @media (max-width: 860px) {++ display: flex;++ align-items: center;++ justify-content: space-between;++ width: 100%;++ }++}++++.navContainer {++ display: flex;++ align-items: center;++ justify-content: space-between;++ width: 100%;++}++++.languageButton {++ position: absolute;++ right: 20px;++ top: 50%;++ transform: translateY(-50%);++ color: #333;++ z-index: 10;++ &:hover {++ color: #1890ff;++ }++}++diff --cc project/aitoearn-web/src/app/layout/styles/lyaoutFooter.module.scssindex 00000000,00000000..98e6d268new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/layout/styles/lyaoutFooter.module.scss@@@ -1,0 -1,0 +1,73 @@@++.layoutFooter {++ background: #111111;++ width: 100%;++ color: var(--whiteColor);++++ .layoutFooter_wrapper {++ @include contentWrapper;++ padding: 60px 0;++ display: flex;++ justify-content: space-between;++ .layoutFooter_wrapper-left {++ h2 {++ margin-bottom: 16px;++ }++ p {++ opacity: 0.6;++ margin-bottom: 15px;++ a {++ color: var(--whiteColor);++ display: flex;++ align-items: center;++ img {++ margin-right: 4px;++ }++ }++ }++ }++++ .layoutFooter_wrapper-center {++ ul {++ display: flex;++ margin-top: 16px;++ li {++ margin-right: 20px;++ opacity: 0.6;++ a {++ color: var(--whiteColor);++ }++ }++ }++++ @media (max-width: 1024px) {++ display: none;++ }++ }++++ .layoutFooter_wrapper-right {++ display: flex;++ li {++ text-align: center;++ p {++ opacity: 0.7;++ margin-top: 16px;++ }++ &:nth-child(1) {++ margin-right: 30px;++ }++ }++ }++++ @media (max-width: 682px) {++ flex-direction: column;++ padding: 20px 0;++ .layoutFooter_wrapper-left {++ text-align: center;++ }++ .layoutFooter_wrapper-right {++ justify-content: center;++ margin-top: 20px;++ }++ }++ }++}diff --cc project/aitoearn-web/src/app/layout/styles/lyaoutHeader.module.scssindex 00000000,026616c6..026616c6mode 000000,100644..100644--- a/project/aitoearn-web/src/app/layout/styles/lyaoutHeader.module.scss+++ b/project/aitoearn-web/src/app/layout/styles/lyaoutHeader.module.scssdiff --cc project/aitoearn-web/src/app/styles/mixin.scssindex 00000000,1668ff36..1668ff36mode 000000,100644..100644--- a/project/aitoearn-web/src/app/styles/mixin.scss+++ b/project/aitoearn-web/src/app/styles/mixin.scssdiff --cc project/aitoearn-web/src/app/styles/page.module.scssindex 00000000,00000000..e3a28c1cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/styles/page.module.scss@@@ -1,0 -1,0 +1,3 @@@++.page {++ min-height: 80vh;++}diff --cc project/aitoearn-web/src/app/var.cssindex 00000000,00000000..1d0e3378new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/app/var.css@@@ -1,0 -1,0 +1,86 @@@++/* 全局css变量 */++:root {++ /* 中性面板色组---------------------------------------------------- */++ --whiteColor: #fff;++ --grayColor0: rgb(247,250,250);++ --grayColor1: #F3F3F3;++ --grayColor2: #EEEEEE;++ --grayColor3: #E7E7E7;++ --grayColor4: #DCDCDC;++ --grayColor5: #C5C5C5;++ --grayColor6: #A6A6A6;++ --grayColor7: #8B8B8B;++ --grayColor8: #777777;++ --grayColor9: #5E5E5E;++ --grayColor10: #4B4B4B;++ --grayColor11: #383838;++ --grayColor12: #2C2C2C;++ --grayColor13: #242424;++ --grayColor14: #181818;++++ /* 头部高度 */++ --layoutHeaderHegiht: 1px;++++ /* 超大号字 */++ --fs-xl: 20px;++ /* 大号字 */++ --fs-lg: 18px;++ /* 中号字 */++ --fs-md: 16px;++ /* 小号字 */++ --fs-sm: 14px;++ /* 超小号字 */++ --fs-xs: 12px;++++ /*@media (min-width: 1600px) {*/++ /* --fs-xl: 22px;*/++ /* --fs-lg: 20px;*/++ /* --fs-md: 18px;*/++ /* --fs-sm: 16px;*/++ /* --fs-xs: 14px;*/++ /*}*/++++ /* 主题色由浅到深 */++ --theColor1: #faf0ff;++ --theColor2: #f9f0ff;++ --theColor3: #e4c5fc;++ --theColor4: #c595f0;++ --theColor5: #a66ae4;++ --theColor6: #814dbd;++ --theColor7: #603696;++ --theColor8: #422370;++ --theColor9: #29164a;++ --primary-color: var(--theColor5);++ /* 原先为:#D7B4F5 */++ --primary-hover: var(--theColor6);++ --colorPrimary1: var(--theColor1);++ --colorPrimary2: var(--theColor2);++ --colorPrimary3: var(--theColor3);++ --colorPrimary4: var(--theColor4);++ --colorPrimary5: var(--theColor5);++ --colorPrimary6: var(--theColor6);++ --colorPrimary7: var(--theColor7);++ --colorPrimary8: var(--theColor8);++ --colorPrimary9: var(--theColor9);++++ --primary-light: #f4ebff;++ --text-primary: #333333;++ --text-secondary: #666666;++ --bg-gray: #f9fafb;++++ /* 其它颜色 */++ --text-color: #1f2937;++ --border-color: #e5e7eb;++ --background-color: #fff;++ --card-background: #fff;++ /* 警告颜色 */++ --warning-color: #f59e0b;++ /* 错误颜色 */++ --error-color: #ef4444;++ /* 成功色 */++ --success-color: #10b981;++ /* 错误颜色 */++ --errorColor: var(--error-color);++ /* 成功色 */++ --successColor: var(--success-color);++}diff --cc project/aitoearn-web/src/assets/fonts/DIN-Medium.otfindex 00000000,00000000..ceed4bednew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/fonts/font.cssindex 00000000,00000000..b82f5a59new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/assets/fonts/font.css@@@ -1,0 -1,0 +1,6 @@@++@font-face {++ font-family: 'DIN';++ src: url('./DIN-Medium.otf') format('opentype');++ font-weight: normal;++ font-style: normal;++}diff --cc project/aitoearn-web/src/assets/images/faya.pngindex 00000000,00000000..0f80099anew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/images/gongzhonghao.jpgindex 00000000,00000000..3e9a468anew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/images/jiantou.pngindex 00000000,00000000..63cf38a0new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/images/logo.pngindex 00000000,00000000..c1af481anew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/images/plusvip.pngindex 00000000,00000000..9e3333c6new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/images/publish1.pngindex 00000000,00000000..b64cd6ccnew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/images/us.pngindex 00000000,00000000..604694ednew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/images/vipcard.pngindex 00000000,00000000..ed556b66new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/images/zh.pngindex 00000000,00000000..11817cc5new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/svgs/plat/bilibili.svgindex 00000000,00000000..2d4649a7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/assets/svgs/plat/bilibili.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><defs><style>.a{fill:#f06198;}.b{fill:#fff;}</style></defs><g transform="translate(-1001.8 -1347)"><rect class="a" width="20" height="20" rx="4" transform="translate(1001.8 1347)"/><path class="b" d="M13.318,2.419a3.731,3.731,0,0,1,.414-.045,7.76,7.76,0,0,1,.139,1.177c-.041.008-.335.075-.335.075-.023-.154-.214-1.109-.218-1.207m.564-.109.154,1.222c.079,0,.4-.026.429-.03-.045-.462-.124-1.192-.124-1.192a1.177,1.177,0,0,0-.459,0m-.3,1.7a2.668,2.668,0,0,1,.948-.09c.128.462.361,3.057.384,3.162-.158.019-.677.064-.718.075-.034-.2-.613-3.023-.613-3.147m2.576-1.557a4.057,4.057,0,0,1,.414-.011,9.6,9.6,0,0,1,0,1.184l-.335.03c-.008-.15-.09-1.1-.083-1.2m.568-.03.03,1.207c.079,0,.395.019.429.015-.008-.462,0-1.192,0-1.192a2.077,2.077,0,0,0-.459-.03M16.235,4.04a2.713,2.713,0,0,1,.951.019c.053.541.045,3.064.053,3.17-.162,0-.677.008-.718.015-.008-.2-.3-3.079-.286-3.2M14.585.938c.41,2.091.722,5.662.733,5.892,0,0,.323.008.688.03-.214-2.252-.478-5.85-.474-5.967-.09-.1-.948.045-.948.045m-.9,4.944C13.6,5.3,11.505,4.63,10.325,4.844c0,0-.147-1.293-.2-2.545-.049-1.075-.008-2.121,0-2.294A8.907,8.907,0,0,0,8.738.524a54.272,54.272,0,0,1,.948,7.144,6.468,6.468,0,0,0,1.726-.143c1.09-.211,2.38-.869,2.271-1.643M11.118,6.938l-.184-1.327a9.61,9.61,0,0,1,1.3.474,12.094,12.094,0,0,1-1.113.854M4.58,2.419a3.731,3.731,0,0,1,.414-.045,7.76,7.76,0,0,1,.139,1.177c-.041.008-.335.075-.335.075-.023-.154-.214-1.109-.218-1.207m.564-.109L5.3,3.532c.079,0,.4-.026.429-.03C5.678,3.039,5.6,2.31,5.6,2.31a1.177,1.177,0,0,0-.459,0m-.3,1.7a2.668,2.668,0,0,1,.948-.09c.128.462.361,3.057.384,3.162-.158.019-.677.064-.718.075-.034-.2-.613-3.023-.613-3.147M7.415,2.449a4.057,4.057,0,0,1,.414-.011,9.6,9.6,0,0,1,0,1.184l-.335.03c-.008-.15-.086-1.1-.083-1.2m.568-.03.03,1.207c.079,0,.395.019.429.015-.008-.462,0-1.192,0-1.192a2.333,2.333,0,0,0-.459-.03M7.5,4.04a2.713,2.713,0,0,1,.951.019c.053.541.045,3.064.053,3.17-.162,0-.677.008-.718.015,0-.2-.3-3.079-.286-3.2M5.847.938c.41,2.091.722,5.662.733,5.892,0,0,.323.008.688.03C7.054,4.607,6.79,1.009,6.794.889c-.09-.1-.948.049-.948.049m-.9,4.944C4.865,5.3,2.767,4.63,1.587,4.844c0,0-.147-1.293-.2-2.545-.049-1.075-.008-2.121,0-2.294A9.326,9.326,0,0,0,0,.524,54.272,54.272,0,0,1,.948,7.668a6.468,6.468,0,0,0,1.726-.143c1.09-.211,2.38-.869,2.271-1.643M2.38,6.938,2.2,5.611a9.61,9.61,0,0,1,1.3.474,12.094,12.094,0,0,1-1.113.854" transform="translate(1003.324 1353.161)"/></g></svg>diff --cc project/aitoearn-web/src/assets/svgs/plat/douyin.svgindex 00000000,00000000..ae81b38anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/assets/svgs/plat/douyin.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><defs><style>.a{fill:#1b1e31;}.b{fill:#3fece0;}.c{fill:#fff;}.d{fill:#f12e62;}</style></defs><rect class="a" width="20" height="20" rx="4"/><g transform="translate(3.848 2.98)"><path class="b" d="M1063.114,549.871c.011-1.118,0-2.247.011-3.366h2.29a2.627,2.627,0,0,0,.053.586l-1.566.128.128,8.968a4.334,4.334,0,0,1-.457,1.576,2.733,2.733,0,0,1-1.8,1.033,1.657,1.657,0,0,1-.99-.245c-.256-.139-.394-.906-.469-1.108a1.877,1.877,0,0,0,1.917-.074,1.959,1.959,0,0,0,.906-1.63c-.022-1.96-.022-3.919-.022-5.868Zm3.771-.65a3.136,3.136,0,0,0,1.054.437,2.8,2.8,0,0,0,.66.075v.617C1067.939,550.2,1066.512,549.787,1066.885,549.222Z" transform="translate(-1056.957 -546.506)"/><path class="b" d="M1057.988,553.554a4.174,4.174,0,0,1,2.78-.586v.7a4.113,4.113,0,0,0-2.365.938,3.78,3.78,0,0,0-1.054,5.017c.16.288.468.725.393,1.044a4.129,4.129,0,0,1-1.193-1.31,4.258,4.258,0,0,1,.042-4.388A4.121,4.121,0,0,1,1057.988,553.554Z" transform="translate(-1055.963 -547.973)"/><path class="c" d="M1062.98,547.265h1.714a8.076,8.076,0,0,1,.394.917,3.963,3.963,0,0,0,.927,1.14.254.254,0,0,1,.075.074,3.234,3.234,0,0,0,1.714,1.022c.383.277.117,1.4.117,1.992a5.428,5.428,0,0,1-3.163-1.086c0,1.427,0,2.747.011,4.186,0,.191.011.373,0,.575a6.24,6.24,0,0,1-.724,2.3,4.388,4.388,0,0,1-1.193,1.353,3.818,3.818,0,0,1-2.173.746,4.89,4.89,0,0,1-1.182-.1,5.093,5.093,0,0,1-1.523-.98l-.032-.032a3.321,3.321,0,0,1-.575-.8,4.345,4.345,0,0,1,1.118-5.5,4.31,4.31,0,0,1,2.471-.863c.245.117.075,1.917.075,1.917a1.873,1.873,0,0,0-.97.011,1.818,1.818,0,0,0-.83.522,1.618,1.618,0,0,0-.416.511.973.973,0,0,0-.138.767,1.854,1.854,0,0,0,.351,1.033c.16.2.266.512.48.65a1.54,1.54,0,0,0,.639.6,1.984,1.984,0,0,0,1.1.224,1.851,1.851,0,0,0,1.448-.927,2.438,2.438,0,0,0,.277-1.15c0-3.142.011-9.107.011-9.107Z" transform="translate(-1056.162 -546.679)"/><path class="d" d="M1065.015,547.265c.2.011.393,0,.607,0a3.292,3.292,0,0,0,.6,1.875,1.444,1.444,0,0,0,.149.191,2.829,2.829,0,0,1-1.012-1.14,3.673,3.673,0,0,1-.34-.927Zm3.131,3.153a2.8,2.8,0,0,0,.661.075V552.8a5.4,5.4,0,0,1-3.184-1.033v4.59a4.211,4.211,0,0,1-.1,1.033,4.265,4.265,0,0,1-1.683,2.567,4.021,4.021,0,0,1-1.512.671,4.153,4.153,0,0,1-1.981-.033,4.209,4.209,0,0,1-2.023-1.214,4.019,4.019,0,0,0,1.533.66,4.892,4.892,0,0,0,1.183.1,3.819,3.819,0,0,0,2.173-.746,4.393,4.393,0,0,0,1.193-1.353,4.7,4.7,0,0,0,.617-1.98,5.2,5.2,0,0,0,0-.576c-.021-1.417-.021-2.843-.021-4.271a5.332,5.332,0,0,0,3.153,1c-.011-.6,0-1.2-.011-1.8Z" transform="translate(-1056.503 -546.679)"/><path class="d" d="M1061.456,553.671a4.569,4.569,0,0,1,.67.042v2.375a1.876,1.876,0,0,0-1-.042,1.963,1.963,0,0,0-1.139,3.035,2.147,2.147,0,0,1-1-1.5,1.9,1.9,0,0,1,.2-1.108,1.644,1.644,0,0,1,.416-.522,2.592,2.592,0,0,1,.969-.48,1.63,1.63,0,0,1,.873.022C1061.456,555.4,1061.456,553.9,1061.456,553.671Z" transform="translate(-1056.65 -548.143)"/></g></svg>diff --cc project/aitoearn-web/src/assets/svgs/plat/facebook.pngindex 00000000,00000000..2fbe135dnew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/svgs/plat/gongzhonghao.pngindex 00000000,00000000..1e60c48bnew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/svgs/plat/instagram.pngindex 00000000,00000000..6181afa8new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/svgs/plat/ks.svgindex 00000000,00000000..2b30030enew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/assets/svgs/plat/ks.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><defs><style>.a{fill:#ff5000;}.b,.c{fill:#fff;}.b{opacity:0;}</style></defs><g transform="translate(-886 -1347)"><rect class="a" width="20" height="20" rx="4" transform="translate(886 1347)"/><g transform="translate(887.902 1348.904)"><rect class="b" width="16" height="16" transform="translate(0.098 0.096)"/><path class="c" d="M6.828,15.486a2.7,2.7,0,0,1-2.566-1.859L1.9,14.813A1.309,1.309,0,0,1,0,13.641V9.8A1.311,1.311,0,0,1,1.9,8.626L4.256,9.818A2.7,2.7,0,0,1,6.828,7.941H10.8a2.7,2.7,0,0,1,2.7,2.7v2.144a2.7,2.7,0,0,1-2.7,2.7Zm.018-1.39H10.76a1.348,1.348,0,0,0,1.35-1.328V10.681a1.35,1.35,0,0,0-1.328-1.35H6.869a1.35,1.35,0,0,0-1.35,1.328v2.087A1.349,1.349,0,0,0,6.847,14.1ZM1.389,10.52v2.416a.373.373,0,0,0,.04.163.357.357,0,0,0,.475.158l.006,0,2.22-1.131v-.8L1.908,10.206a.382.382,0,0,0-.161-.037A.358.358,0,0,0,1.389,10.52Zm0-6.867A3.653,3.653,0,0,1,8.23,1.869a3.136,3.136,0,1,1-.4,4.148A3.653,3.653,0,0,1,1.389,3.653Zm1.469,0A2.184,2.184,0,1,0,5.042,1.47,2.183,2.183,0,0,0,2.858,3.653Zm5.836.515A1.668,1.668,0,1,0,10.363,2.5,1.668,1.668,0,0,0,8.695,4.169Z" transform="translate(1.348 0.177)"/></g></g></svg>diff --cc project/aitoearn-web/src/assets/svgs/plat/linkedin.pngindex 00000000,00000000..6855d8b4new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/svgs/plat/pinterest.pngindex 00000000,00000000..58c236abnew file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/svgs/plat/threads.pngindex 00000000,00000000..95f22c83new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/svgs/plat/tiktok.svgindex 00000000,00000000..4669f067new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/assets/svgs/plat/tiktok.svg@@@ -1,0 -1,0 +1,1 @@@++<svg height="2500" viewBox="0 0 250 250" width="2500" xmlns="http://www.w3.org/2000/svg"><g clip-rule="evenodd" fill-rule="evenodd"><path d="M25 0h200c13.808 0 25 11.192 25 25v200c0 13.808-11.192 25-25 25H25c-13.808 0-25-11.192-25-25V25C0 11.192 11.192 0 25 0z" fill="#010101"/><path d="M156.98 230c7.607 0 13.774-6.117 13.774-13.662s-6.167-13.663-13.774-13.663h-2.075c7.607 0 13.774 6.118 13.774 13.663S162.512 230 154.905 230z" fill="#ee1d51"/><path d="M154.717 202.675h-2.075c-7.607 0-13.775 6.118-13.775 13.663S145.035 230 152.642 230h2.075c-7.608 0-13.775-6.117-13.775-13.662s6.167-13.663 13.775-13.663z" fill="#66c8cf"/><ellipse cx="154.811" cy="216.338" fill="#010101" rx="6.699" ry="6.643"/><path d="M50 196.5v6.925h8.112v26.388h8.115v-26.201h6.603l2.264-7.112zm66.415 0v6.925h8.112v26.388h8.115v-26.201h6.603l2.264-7.112zm-39.81 3.93c0-2.17 1.771-3.93 3.959-3.93 2.19 0 3.963 1.76 3.963 3.93s-1.772 3.93-3.963 3.93c-2.188-.001-3.959-1.76-3.959-3.93zm0 6.738h7.922v22.645h-7.922zM87.924 196.5v33.313h7.925v-8.608l2.453-2.248L106.037 230h8.49l-11.133-16.095 10-9.733h-9.622l-7.923 7.86V196.5zm85.47 0v33.313h7.926v-8.608l2.452-2.248L191.509 230H200l-11.133-16.095 10-9.733h-9.622l-7.925 7.86V196.5z" fill="#fff"/><path d="M161.167 81.186c10.944 7.819 24.352 12.42 38.832 12.42V65.755a39.26 39.26 0 0 1-8.155-.853v21.923c-14.479 0-27.885-4.601-38.832-12.42v56.835c0 28.432-23.06 51.479-51.505 51.479-10.613 0-20.478-3.207-28.673-8.707C82.187 183.57 95.23 189.5 109.66 189.5c28.447 0 51.508-23.047 51.508-51.48V81.186zm10.06-28.098c-5.593-6.107-9.265-14-10.06-22.726V26.78h-7.728c1.945 11.09 8.58 20.565 17.788 26.308zm-80.402 99.107a23.445 23.445 0 0 1-4.806-14.256c0-13.004 10.548-23.547 23.561-23.547a23.6 23.6 0 0 1 7.147 1.103V87.022a51.97 51.97 0 0 0-8.152-.469v22.162a23.619 23.619 0 0 0-7.15-1.103c-13.013 0-23.56 10.543-23.56 23.548 0 9.195 5.272 17.157 12.96 21.035z" fill="#ee1d52"/><path d="M153.012 74.405c10.947 7.819 24.353 12.42 38.832 12.42V64.902c-8.082-1.72-15.237-5.942-20.617-11.814-9.208-5.743-15.843-15.218-17.788-26.308H133.14v111.239c-.046 12.968-10.576 23.468-23.561 23.468-7.652 0-14.45-3.645-18.755-9.292-7.688-3.878-12.96-11.84-12.96-21.035 0-13.005 10.547-23.548 23.56-23.548 2.493 0 4.896.388 7.15 1.103V86.553c-27.945.577-50.42 23.399-50.42 51.467 0 14.011 5.597 26.713 14.68 35.993 8.195 5.5 18.06 8.707 28.673 8.707 28.445 0 51.505-23.048 51.505-51.479z" fill="#fff"/><path d="M191.844 64.902v-5.928a38.84 38.84 0 0 1-20.617-5.887 38.948 38.948 0 0 0 20.617 11.815zM153.439 26.78a39.524 39.524 0 0 1-.427-3.198V20h-28.028v111.24c-.045 12.967-10.574 23.467-23.56 23.467-3.813 0-7.412-.904-10.6-2.512 4.305 5.647 11.103 9.292 18.755 9.292 12.984 0 23.515-10.5 23.561-23.468V26.78zm-44.864 59.773v-6.311a51.97 51.97 0 0 0-7.067-.479C73.06 79.763 50 102.811 50 131.24c0 17.824 9.063 33.532 22.835 42.772-9.083-9.28-14.68-21.982-14.68-35.993 0-28.067 22.474-50.889 50.42-51.466z" fill="#69c9d0"/><path d="M154.904 230c7.607 0 13.775-6.117 13.775-13.662s-6.168-13.663-13.775-13.663h-.188c-7.607 0-13.774 6.118-13.774 13.663S147.109 230 154.716 230zm-6.792-13.662c0-3.67 3-6.643 6.7-6.643 3.697 0 6.697 2.973 6.697 6.643s-3 6.645-6.697 6.645c-3.7-.001-6.7-2.975-6.7-6.645z" fill="#fff"/></g></svg>diff --cc project/aitoearn-web/src/assets/svgs/plat/twitter.pngindex 00000000,00000000..c58056a0new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/assets/svgs/plat/wx-sph.svgindex 00000000,00000000..bbd87addnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/assets/svgs/plat/wx-sph.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><defs><style>.a{fill:#fa9a32;}.b{fill:#fff;}</style></defs><g transform="translate(-0.286)"><rect class="a" width="20" height="20" rx="4" transform="translate(0.286)"/><path class="b" d="M1065.375,228.99a1.658,1.658,0,0,1,.586.113,1.805,1.805,0,0,1,1.072,1.142,3.618,3.618,0,0,1,.228,1.557,24.782,24.782,0,0,1-.543,3.9,20.2,20.2,0,0,1-.857,3.385,4.361,4.361,0,0,1-.656,1.214,1.6,1.6,0,0,1-1.245.642,1.5,1.5,0,0,1-.641-.142c-.17-.087-.729-.33-1.829-2.129a17.589,17.589,0,0,1-1.042-1.929,17.355,17.355,0,0,1-1.042,1.929c-1.115,1.8-1.657,2.057-1.829,2.128a1.5,1.5,0,0,1-.643.143,1.6,1.6,0,0,1-1.243-.642,4.133,4.133,0,0,1-.656-1.216,20.13,20.13,0,0,1-.857-3.383,26.518,26.518,0,0,1-.543-3.9,4.412,4.412,0,0,1,.2-1.555,1.8,1.8,0,0,1,1.071-1.144,1.658,1.658,0,0,1,.586-.113,2.8,2.8,0,0,1,1.971,1.156,22.8,22.8,0,0,1,1.643,2.271l.424.63.433.627c.169.242.328.471.47.7.142-.23.3-.459.471-.7.043-.057.085-.128.129-.187q.386-.556.728-1.07a24.424,24.424,0,0,1,1.643-2.271A2.8,2.8,0,0,1,1065.375,228.99Zm-9.855,1.57a.05.05,0,0,0-.042.015c-.028.014-.085.028-.158.213a3.064,3.064,0,0,0-.114,1,24.278,24.278,0,0,0,.515,3.642,20.7,20.7,0,0,0,.684,2.842,2.848,2.848,0,0,0,.557,1.114,6.973,6.973,0,0,0,1.186-1.6,15.689,15.689,0,0,0,1.157-2.271,3.232,3.232,0,0,0-.157-.3,5.512,5.512,0,0,0-.428-.643,2.077,2.077,0,0,0-.129-.185c-.257-.372-.5-.744-.743-1.086a20.859,20.859,0,0,0-1.528-2.114C1055.791,230.589,1055.562,230.56,1055.52,230.56Zm9.887-.014c-.046,0-.275.028-.8.628a20.829,20.829,0,0,0-1.527,2.114c-.243.356-.486.714-.744,1.086l-.127.183a7.318,7.318,0,0,0-.414.615,1.525,1.525,0,0,0-.158.3,15.533,15.533,0,0,0,1.158,2.271,7.02,7.02,0,0,0,1.185,1.6,2.59,2.59,0,0,0,.557-1.114,21.382,21.382,0,0,0,.685-2.842,26.234,26.234,0,0,0,.514-3.642,2.728,2.728,0,0,0-.113-1c-.087-.157-.143-.171-.173-.185a.133.133,0,0,0-.038-.014Z" transform="translate(-1050.348 -224.99)"/></g></svg>diff --cc project/aitoearn-web/src/assets/svgs/plat/xhs.svgindex 00000000,00000000..0cee5d70new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/assets/svgs/plat/xhs.svg@@@ -1,0 -1,0 +1,1 @@@++<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><defs><style>.a{fill:#ff2552;}.b{fill:none;}.c{fill:#fff;}</style></defs><g transform="translate(-1118.104 -1347.104)"><rect class="a" width="20" height="20" rx="4" transform="translate(1118.104 1347.104)"/><g transform="translate(1118.842 1347.842)"><rect class="b" width="18" height="18" transform="translate(0.262 0.262)"/><path class="c" d="M128.263,378.926a7.557,7.557,0,0,1-.132,2.374,1.542,1.542,0,0,1-.132.528s.2.4.659,1.121c.857-.724.792-4.022.792-4.022Zm5.276,2.44a9.917,9.917,0,0,1-.133-2.374H132.22s-.133,3.3.791,4.022a6.933,6.933,0,0,1,.659-1.121C133.6,381.761,133.6,381.564,133.539,381.366Zm-3.3,1.252h-.792l.4.924H130.9c.4,0,.528-.726.528-.726v-5.34h-1.187v5.143Zm5.34-1.517.99-1.978h-.99l.594-1.648h-1.121l-.859,2.176a.29.29,0,0,0,.263.4h.594l-.659,1.517a.29.29,0,0,0,.263.4h1.45l.33-.858h-.855Zm-1.384,1.385-.594,1.055h1.846l.462-1.055H134.2Zm4.747-3.495h.594v-1.187H136.9v1.122h.791v3.495h-1.055l-.528,1.121h3.824v-1.055h-.989Zm5.407,1.055h-.264v-1.055a1.056,1.056,0,0,0-1.054-1.121h-.792v-.528h-1.121v.528h-.791v1.054h.792v1.055H140v1.055h1.121v2.5h1.121V381.1h2.111v1.583h-1.121l.4.923h.923a.874.874,0,0,0,.856-.857v-1.582A.989.989,0,0,0,144.352,380.048Zm-1.319,0h-.792v-1.122h.792Zm2.439-1.648a.528.528,0,0,0-1.055,0v.527h.528A.567.567,0,0,0,145.473,378.4Z" transform="translate(-127.475 -371.26)"/></g></g></svg>diff --cc project/aitoearn-web/src/assets/svgs/plat/youtube.pngindex 00000000,00000000..19a42880new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/components/AvatarPlat/avatarPlat.module.scssindex 00000000,00000000..382d8c4cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/AvatarPlat/avatarPlat.module.scss@@@ -1,0 -1,0 +1,23 @@@++.avatarPlat {++ position: relative;++ display: inline-block;++ flex-shrink: 0;++ justify-content: center;++ & > img {++ position: absolute;++ bottom: 10%;++ right: -10%;++ transform: translate(-10%, 20%);++ border-radius: 50%;++ }++++ &.disabled {++ filter: grayscale(100%);++ opacity: 0.6;++++ &:hover {++ filter: grayscale(100%);++ opacity: 0.6;++ }++ }++}diff --cc project/aitoearn-web/src/components/AvatarPlat/index.tsxindex 00000000,21a51e01..21a51e01mode 000000,100644..100644--- a/project/aitoearn-web/src/components/AvatarPlat/index.tsx+++ b/project/aitoearn-web/src/components/AvatarPlat/index.tsxdiff --cc project/aitoearn-web/src/components/Chat/index.tsxindex 00000000,9d8a24d8..9d8a24d8mode 000000,100644..100644--- a/project/aitoearn-web/src/components/Chat/index.tsx+++ b/project/aitoearn-web/src/components/Chat/index.tsxdiff --cc project/aitoearn-web/src/components/ChooseAccountModule/ChooseAccountModule.tsxindex 00000000,00000000..1ae0e8a5new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/ChooseAccountModule/ChooseAccountModule.tsx@@@ -1,0 -1,0 +1,106 @@@++import {++ ForwardedRef,++ forwardRef,++ memo,++ useEffect,++ useImperativeHandle,++ useRef,++ useState,++} from "react";++import { Modal } from "antd";++import SimpleAccountChoose, {++ ISimpleAccountChooseProps,++ ISimpleAccountChooseRef,++} from "@/components/ChooseAccountModule/components/SimpleAccountChoose";++import { SocialAccount } from "@/api/types/account.type";++++export interface IChooseAccountModuleRef {++ getSimpleAccountChooseRef: () => ISimpleAccountChooseRef | null;++}++++export interface IChooseAccountModuleProps {++ open: boolean;++ onClose: (open: boolean) => void;++ // 简化账户选择props++ simpleAccountChooseProps?: ISimpleAccountChooseProps;++ // 账户选择确认++ onAccountConfirm?: (accounts: SocialAccount[]) => void;++ // 账户选择change++ onAccountChange?: (accounts: SocialAccount[], account: SocialAccount) => void;++}++++const ChooseAccountModule = memo(++ forwardRef(++ (++ {++ open,++ onClose,++ onAccountConfirm,++ onAccountChange,++ simpleAccountChooseProps,++ }: IChooseAccountModuleProps,++ ref: ForwardedRef<IChooseAccountModuleRef>,++ ) => {++ const [newChoosedAccounts, setNewChoosedAccounts] = useState<++ SocialAccount[]++ >([]);++ const simpleAccountChooseRef = useRef<ISimpleAccountChooseRef>(null);++++ const handleOk = () => {++ if (onAccountConfirm) onAccountConfirm(newChoosedAccounts);++ close();++ };++++ const handleCancel = () => {++ setNewChoosedAccounts(simpleAccountChooseProps?.choosedAccounts || []);++ close();++ };++++ const close = () => {++ onClose(false);++ };++++ useEffect(() => {++ setTimeout(() => simpleAccountChooseRef.current?.recover(), 1);++ }, [simpleAccountChooseProps?.choosedAccounts]);++++ useEffect(() => {++ simpleAccountChooseRef.current?.init();++ }, [open]);++++ const ImperativeHandle: IChooseAccountModuleRef = {++ getSimpleAccountChooseRef() {++ return simpleAccountChooseRef.current;++ },++ };++ useImperativeHandle(ref, () => ImperativeHandle);++++ return (++ <Modal++ width={800}++ title="账户选择"++ open={open}++ onOk={handleOk}++ onCancel={handleCancel}++ >++ {simpleAccountChooseProps && (++ <SimpleAccountChoose++ {...simpleAccountChooseProps}++ disableAllSelect={++ simpleAccountChooseProps.disableAllSelect || false++ }++ ref={simpleAccountChooseRef}++ onChange={(accounts: SocialAccount[], account: SocialAccount) => {++ setNewChoosedAccounts(accounts);++ if (onAccountChange) onAccountChange(accounts, account);++ }}++ />++ )}++ </Modal>++ );++ },++ ),++);++ChooseAccountModule.displayName = "ChooseAccountModule";++++export default ChooseAccountModule;diff --cc project/aitoearn-web/src/components/ChooseAccountModule/chooseAccountModule.module.scssindex 00000000,00000000..c0d536f7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/ChooseAccountModule/chooseAccountModule.module.scss@@@ -1,0 -1,0 +1,338 @@@++.platChoose {++ display: flex;++++ :global {++ .platChoose-empty {++ display: flex;++ justify-content: center;++ width: 100%;++ }++++ .platChoose-platSelect {++ padding-right: 20px;++ .ant-checkbox-wrapper {++ margin-bottom: 5px;++ white-space: nowrap;++ }++++ .ant-segmented {++ width: 100%;++ box-sizing: border-box;++ .ant-segmented-item {++ margin-bottom: 5px;++ padding: 3px 60px 3px 0;++ }++++ .ant-segmented-item-label {++ display: flex;++ align-items: center;++ .ant-segmented-item-icon {++ display: flex;++ align-items: center;++ }++ }++ }++ }++++ .platChoose-con {++ width: 100%;++ display: flex;++ flex-direction: column;++ justify-content: space-between;++ &-wrapper {++ width: 100%;++ }++ }++++ .platChoose-tips {++ color: var(--errerColor);++ font-size: var(--fs-xs);++ }++++ .platChoose-accounts {++ margin-top: 10px;++ width: 100%;++ display: grid;++ grid-template-columns: repeat(2, 1fr);++ gap: 15px;++++ &-item {++ background: rgb(247, 250, 250);++ cursor: pointer;++ padding: 10px;++ box-sizing: border-box;++ border-radius: 6px 0 6px 6px;++ align-items: center;++ min-width: 0;++ white-space: nowrap;++ overflow: hidden;++ text-overflow: ellipsis;++ position: relative;++ &-nickname {++ margin-left: 5px;++ }++++ &-choose {++ position: absolute;++ top: 0;++ right: 0;++ padding: 0 4px;++ text-align: center;++ background: rgb(225, 230, 230);++ border-radius: 0 0 0 12px;++ color: #fff;++ font-size: 12px;++ }++++ &--active {++ background: var(--colorPrimary2);++++ .platChoose-accounts-item-choose {++ background: var(--colorPrimary5);++ }++ }++++ &--disable {++ cursor: no-drop;++ opacity: 0.5;++ }++ }++ }++ }++}++++.simpleAccountChoose {++ display: flex;++ flex-direction: column;++ height: 100%;++++ :global {++ .simpleAccountChoose-empty {++ display: flex;++ justify-content: center;++ width: 100%;++ padding: 40px 0;++ }++++ .simpleAccountChoose-header {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 16px;++ padding: 0 4px;++++ .ant-checkbox-wrapper {++ font-weight: 500;++ }++++ .simpleAccountChoose-count {++ color: #666;++ font-size: 14px;++ }++ }++++ .simpleAccountChoose-groups {++ flex: 1;++ max-height: 400px;++ overflow-y: auto;++++ .ant-collapse {++ border: none;++ background: transparent;++++ .ant-collapse-item {++ border: 1px solid #e9ecef;++ border-radius: 8px;++ margin-bottom: 12px;++ background: #fff;++++ .ant-collapse-header {++ padding: 12px 16px;++ background: #f8f9fa;++ border-radius: 8px 8px 0 0;++ border-bottom: 1px solid #e9ecef;++++ .ant-collapse-header-text {++ flex: 1;++ }++++ .ant-collapse-expand-icon {++ color: #625BF2;++ }++ }++++ .ant-collapse-content {++ border: none;++ background: transparent;++++ .ant-collapse-content-box {++ padding: 16px;++ }++ }++ }++ }++++ .simpleAccountChoose-group-header {++ display: flex;++ align-items: center;++ width: 100%;++++ .ant-checkbox-wrapper {++ font-weight: 500;++ color: #333;++ }++ }++ }++++ .simpleAccountChoose-accounts {++ flex: 1;++ display: grid;++ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));++ gap: 12px;++ max-height: 400px;++ overflow-y: auto;++++ &-item {++ background: #f8f9fa;++ cursor: pointer;++ padding: 12px;++ border-radius: 8px;++ border: 1px solid #e9ecef;++ transition: all 0.2s ease;++ position: relative;++ display: flex;++ align-items: center;++ gap: 12px;++++ &:hover {++ border-color: #625BF2;++ box-shadow: 0 2px 8px rgba(98, 91, 242, 0.1);++ }++++ &-avatar {++ position: relative;++ flex-shrink: 0;++++ .ant-avatar {++ border: 2px solid #fff;++ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);++ }++++ .simpleAccountChoose-accounts-item-platform {++ position: absolute;++ bottom: -2px;++ right: -2px;++ width: 20px;++ height: 20px;++ border-radius: 50%;++ background: #fff;++ border: 2px solid #fff;++ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);++ display: flex;++ align-items: center;++ justify-content: center;++ overflow: hidden;++++ img {++ width: 14px;++ height: 14px;++ object-fit: contain;++ }++ }++ }++++ &-nickname {++ flex: 1;++ font-weight: 500;++ color: #333;++ overflow: hidden;++ text-overflow: ellipsis;++ white-space: nowrap;++ }++++ &-choose {++ position: absolute;++ top: 8px;++ right: 8px;++ width: 20px;++ height: 20px;++ border-radius: 50%;++ background: #e9ecef;++ color: #fff;++ display: flex;++ align-items: center;++ justify-content: center;++ font-size: 12px;++ opacity: 0;++ transition: all 0.2s ease;++ }++++ &--active {++ background: linear-gradient(135deg, #625BF2 0%, #925BF2 100%);++ border-color: #625BF2;++ color: #fff;++++ .simpleAccountChoose-accounts-item-nickname {++ color: #fff;++ }++++ .simpleAccountChoose-accounts-item-choose {++ background: #fff;++ color: #625BF2;++ opacity: 1;++ }++++ .simpleAccountChoose-accounts-item-avatar {++ .ant-avatar {++ border-color: #fff;++ }++++ .simpleAccountChoose-accounts-item-platform {++ border-color: #fff;++ }++ }++ }++++ &--disable {++ cursor: not-allowed;++ opacity: 0.5;++ background: #f5f5f5;++ }++++ &--pc-not-supported {++ position: relative;++ cursor: pointer;++++ &:hover {++ .simpleAccountChoose-accounts-item-overlay {++ opacity: 1;++ }++ }++ }++++ &-overlay {++ position: absolute;++ top: 0;++ left: 0;++ right: 0;++ bottom: 0;++ background: rgba(0, 0, 0, 0.7);++ border-radius: 8px;++ display: flex;++ align-items: center;++ justify-content: center;++ opacity: 0.8;++ transition: all 0.2s ease;++ z-index: 10;++++ &-text {++ color: #fff;++ font-weight: bold;++ font-size: 14px;++ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);++ }++ }++ }++ }++ }++}diff --cc project/aitoearn-web/src/components/ChooseAccountModule/components/PlatChoose.tsxindex 00000000,00000000..22b3f27anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/ChooseAccountModule/components/PlatChoose.tsx@@@ -1,0 -1,0 +1,402 @@@++import {++ ForwardedRef,++ forwardRef,++ memo,++ useEffect,++ useImperativeHandle,++ useMemo,++ useRef,++ useState,++} from "react";++import styles from "../chooseAccountModule.module.scss";++import {++ Avatar,++ Badge,++ Checkbox,++ ConfigProvider,++ Empty,++ Segmented,++ Tooltip,++} from "antd";++import { CheckOutlined } from "@ant-design/icons";++import { useShallow } from "zustand/react/shallow";++import useCssVariables from "@/app/hooks/useCssVariables";++import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";++import { PubType } from "@/app/config/publishConfig";++import { useAccountStore } from "@/store/account";++import Link from "next/link";++import { SocialAccount } from "@/api/types/account.type";++++export interface IPlatChooseRef {++ /**++ * 恢复选中状态++ * @param choosedAccounts++ */++ recover: () => void;++ // 每次关闭弹框的时候需要初始化一些状态++ init: () => void;++ // 设置选中平台++ setActivePlat: (activePlat: PlatType) => void;++}++++export interface IPlatChooseProps {++ pubType: PubType;++ // 默认选择的平台++ defaultPlat?: PlatType;++ onChange?: (++ choosedAcounts: SocialAccount[],++ choosedAcount: SocialAccount,++ ) => void;++ // 外部传入的已经选中的数据,这个值只有在确认更改才会更新++ choosedAccounts?: SocialAccount[];++ // 按平台 是否禁用多选,true=禁用,false=不禁用++ disableAllSelect?: boolean;++ // 可选择的平台,默认为全部++ allowPlatSet?: Set<PlatType>;++ // 是否可以取消已经选择的账户,默认为 false++ isCancelChooseAccount?: boolean;++}++++const PlatChoose = memo(++ forwardRef(++ (++ {++ pubType,++ onChange,++ choosedAccounts,++ disableAllSelect = false,++ isCancelChooseAccount = false,++ allowPlatSet,++ defaultPlat,++ }: IPlatChooseProps,++ ref: ForwardedRef<IPlatChooseRef>,++ ) => {++ const cssVars = useCssVariables();++ // 所有账户数据++ const [accountMap, setAccountMap] = useState<++ Map<PlatType, SocialAccount[]>++ >(new Map());++ // 当前选择的平台++ const [activePlat, setActivePlat] = useState<PlatType | undefined>();++ // 当前选择的账户数据++ const [choosedAcountMap, setChoosedAcountMap] = useState<++ Map<PlatType, SocialAccount[]>++ >(new Map());++ // 每次change操作的数据++ const recentData = useRef<SocialAccount>();++ const { accountList } = useAccountStore(++ useShallow((state) => ({++ accountList: state.accountList,++ })),++ );++++ // 经过 allowPlatSet 过滤后的账户数据++ const accountMapLast = useMemo(() => {++ const newVal = new Map<PlatType, SocialAccount[]>();++ for (const [accountType, accountList] of accountMap) {++ if (!allowPlatSet ? true : allowPlatSet.has(accountType)) {++ newVal.set(accountType, accountList);++ }++ }++ return newVal;++ }, [accountMap, allowPlatSet]);++++ // 默认平台设置++ useEffect(() => {++ const defaultPlatData = Array.from(accountMapLast).find(++ ([plat, data]) => data.length !== 0,++ );++ setActivePlat(++ defaultPlat ||++ (defaultPlatData++ ? defaultPlatData[0]++ : Array.from(accountMapLast.keys())[0]),++ );++ }, [accountMapLast]);++++ // 所有平台的账户数据++ const getAllAccountList = useMemo(() => {++ const allAccountList = [];++ for (const [_, accountList] of accountMapLast) {++ allAccountList.push(...accountList);++ }++ return allAccountList;++ }, [accountMapLast]);++++ // 当前选择的所有平台的账户数据++ const getChoosedAllAccountList = useMemo(() => {++ const allAccountList = [];++ for (const [_, accountList] of choosedAcountMap) {++ allAccountList.push(...accountList);++ }++ return allAccountList;++ }, [choosedAcountMap]);++++ // 当前平台的所有用户数据++ const currAccountList = useMemo(++ () => (activePlat && accountMapLast.get(activePlat)) || [],++ [activePlat, accountMapLast],++ );++++ // 当前平台的选择账户的数据++ const currChoosedAcount = useMemo(++ () => (activePlat && choosedAcountMap.get(activePlat)) || [],++ [activePlat, choosedAcountMap],++ );++++ useEffect(() => {++ setAccountMap((prevMap) => {++ const newMap = new Map(prevMap);++ Array.from(AccountPlatInfoMap).map(([key, value]) => {++ if (value.pubTypes.has(pubType)) {++ newMap.set(key, []);++ }++ });++ // 添加渲染账户数据值++ accountList.map((v) => {++ newMap.get(v.type)?.push(v);++ });++ return newMap;++ });++ }, [accountList]);++++ useEffect(() => {++ return () => {++ setAccountMap(new Map());++ setChoosedAcountMap(new Map());++ init();++ };++ }, []);++++ // change事件++ useEffect(() => {++ if (!recentData.current) return;++ let accounts: SocialAccount[] = [];++ Array.from(choosedAcountMap).map(([key, value]) => {++ accounts = [...accounts, ...value];++ });++ if (onChange) onChange(accounts, recentData.current!);++ }, [choosedAcountMap]);++++ const init = () => {++ recentData.current = undefined;++ };++++ useImperativeHandle(ref, () => ({++ // 恢复到本次操作之前的状态++ recover() {++ if (!choosedAccounts || choosedAccounts.length === 0)++ return setChoosedAcountMap(new Map());++++ setChoosedAcountMap(() => {++ const newV = new Map();++ choosedAccounts.map((v) => {++ if (!newV.has(v.type)) newV.set(v.type, []);++ newV.get(v.type)!.push(v);++ });++ return newV;++ });++ },++ setActivePlat,++ init,++ }));++++ return (++ <div className={styles.platChoose}>++ {getAllAccountList.length === 0 ? (++ <div className="platChoose-empty">++ <Empty++ description={++ <>++ 无账户数据,请前往 <Link href="/accounts">账户</Link>++ 添加数据++ </>++ }++ />++ </div>++ ) : (++ <>++ <div className="platChoose-platSelect">++ {!disableAllSelect && (++ <Checkbox++ indeterminate={++ getChoosedAllAccountList.length > 0 &&++ getChoosedAllAccountList.length < getAllAccountList.length++ }++ onChange={(e) => {++ const { checked } = e.target;++ setChoosedAcountMap((v) => {++ const newMap = new Map(v);++ recentData.current = currAccountList[0];++++ for (const [++ accountType,++ accountList,++ ] of accountMapLast) {++ if (checked) {++ newMap.set(accountType, accountList);++ } else {++ newMap.set(accountType, []);++ }++ }++ return newMap;++ });++ }}++ checked={++ getAllAccountList.length ===++ getChoosedAllAccountList.length++ }++ >++ 选择所有平台账户++ </Checkbox>++ )}++ <ConfigProvider++ theme={{++ components: {++ Segmented: {++ trackBg: "#fff",++ itemSelectedBg: cssVars["--colorPrimary1"],++ itemHoverBg: cssVars["--colorPrimary2"],++ itemActiveBg: cssVars["--colorPrimary3"],++ itemSelectedColor: cssVars["--colorPrimary9"],++ },++ },++ }}++ >++ <Segmented++ vertical++ size="large"++ value={activePlat}++ options={Array.from(accountMapLast)++ .map(([key, value]) => {++ if (value.length === 0) return undefined;++ const platInfo = AccountPlatInfoMap.get(key)!;++ return {++ value: key,++ label: platInfo.name,++ icon: (++ <Badge++ count={choosedAcountMap.get(key)?.length}++ size="small"++ >++ <img++ style={{ width: "25px" }}++ src={platInfo.icon}++ />++ </Badge>++ ),++ };++ })++ .filter((v) => v !== undefined)++ .filter((v) =>++ allowPlatSet ? allowPlatSet.has(v.value) : true,++ )}++ onChange={setActivePlat}++ />++ </ConfigProvider>++ </div>++++ <div className="platChoose-con">++ {currAccountList && (++ <div className="platChoose-con-wrapper">++ {!disableAllSelect ? (++ <Checkbox++ indeterminate={++ currChoosedAcount.length > 0 &&++ currChoosedAcount.length < currAccountList.length++ }++ onChange={(e) => {++ setChoosedAcountMap((v) => {++ recentData.current = currAccountList[0];++ return new Map(v).set(++ activePlat!,++ e.target.checked ? currAccountList : [],++ );++ });++ }}++ checked={++ currChoosedAcount.length === currAccountList.length++ }++ >++ 全选 已选择 {currChoosedAcount.length} 个++ </Checkbox>++ ) : (++ <span>已选择 {currChoosedAcount.length} 个</span>++ )}++ <div className="platChoose-accounts">++ {currAccountList.map((v) => {++ // true=禁用++ const isDisable =++ choosedAccounts?.find((k) => k.id === v.id) &&++ isCancelChooseAccount;++ return (++ <div++ key={v.id}++ className={[++ "platChoose-accounts-item",++ currChoosedAcount.find((k) => k.id === v.id) &&++ "platChoose-accounts-item--active",++ isDisable && "platChoose-accounts-item--disable",++ ].join(" ")}++ onClick={() => {++ if (isDisable) return;++ recentData.current = v;++ setChoosedAcountMap((prevV) => {++ const newV = new Map(prevV);++ let list = newV.get(activePlat!);++ if (!list) {++ list = [];++ newV.set(activePlat!, list);++ }++ // 是否存在++ if (list.some((k) => k.id === v.id)) {++ // 有、去掉++ list = list.filter((k) => k.id !== v.id);++ } else {++ // 无、添加++ list.push(v);++ }++ newV.set(activePlat!, list);++ return newV;++ });++ }}++ >++ <Tooltip++ title={++ <>++ <p>昵称:{v.nickname}</p>++ </>++ }++ >++ <Avatar src={v.avatar} />++ <span className="platChoose-accounts-item-nickname">++ {v.nickname}++ </span>++ </Tooltip>++++ <div className="platChoose-accounts-item-choose">++ <CheckOutlined />++ </div>++ </div>++ );++ })}++ </div>++ </div>++ )}++++ {AccountPlatInfoMap.get(activePlat!)?.tips && (++ <div className="platChoose-tips">++ {AccountPlatInfoMap.get(activePlat!)?.tips?.publish}++ </div>++ )}++ </div>++ </>++ )}++ </div>++ );++ },++ ),++);++PlatChoose.displayName = "PlatChoose";++++export default PlatChoose;diff --cc project/aitoearn-web/src/components/ChooseAccountModule/components/SimpleAccountChoose.tsxindex 00000000,00000000..2d02ba57new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/ChooseAccountModule/components/SimpleAccountChoose.tsx@@@ -1,0 -1,0 +1,363 @@@++import {++ ForwardedRef,++ forwardRef,++ memo,++ useEffect,++ useImperativeHandle,++ useMemo,++ useRef,++ useState,++} from "react";++import styles from "../chooseAccountModule.module.scss";++import {++ Avatar,++ Checkbox,++ Empty,++ Tooltip,++ Collapse,++} from "antd";++import DownloadAppModal from "@/components/common/DownloadAppModal";++import { CheckOutlined } from "@ant-design/icons";++import { useShallow } from "zustand/react/shallow";++import { AccountPlatInfoMap } from "@/app/config/platConfig";++import { useAccountStore } from "@/store/account";++import Link from "next/link";++import { SocialAccount } from "@/api/types/account.type";++import { getAccountGroupApi } from "@/api/account";++import { AccountGroupItem } from "@/api/types/account.type";++++// 分组类型定义++interface AccountGroup {++ id: string;++ name: string;++ rank: number;++ isDefault: boolean;++ children?: SocialAccount[];++}++++export interface ISimpleAccountChooseRef {++ /**++ * 恢复选中状态++ */++ recover: () => void;++ // 每次关闭弹框的时候需要初始化一些状态++ init: () => void;++}++++export interface ISimpleAccountChooseProps {++ onChange?: (++ choosedAcounts: SocialAccount[],++ choosedAcount: SocialAccount,++ ) => void;++ // 外部传入的已经选中的数据,这个值只有在确认更改才会更新++ choosedAccounts?: SocialAccount[];++ // 是否禁用多选,true=禁用,false=不禁用++ disableAllSelect?: boolean;++ // 是否可以取消已经选择的账户,默认为 false++ isCancelChooseAccount?: boolean;++ // 是否显示分组,默认为 true++ showGroup?: boolean;++}++++const SimpleAccountChoose = memo(++ forwardRef(++ (++ {++ onChange,++ choosedAccounts,++ disableAllSelect = false,++ isCancelChooseAccount = false,++ showGroup = true,++ }: ISimpleAccountChooseProps,++ ref: ForwardedRef<ISimpleAccountChooseRef>,++ ) => {++ // 当前选择的账户数据++ const [choosedAccountsList, setChoosedAccountsList] = useState<SocialAccount[]>([]);++ // 分组数据++ const [accountGroupList, setAccountGroupList] = useState<AccountGroup[]>([]);++ // 每次change操作的数据++ const recentData = useRef<SocialAccount>();++ // 下载App弹窗状态++ const [downloadModalVisible, setDownloadModalVisible] = useState(false);++ const [currentPlatform, setCurrentPlatform] = useState<string>('');++ const { accountList } = useAccountStore(++ useShallow((state) => ({++ accountList: state.accountList,++ })),++ );++++ // 获取分组数据++ const fetchAccountGroups = async () => {++ try {++ const res = await getAccountGroupApi();++ const groupList = res?.data;++++ if (!groupList || groupList.length === 0) return;++++ const accountGroupList: AccountGroup[] = [];++ // key=组ID,val=账户组++ const accountGroupMap = new Map<string, AccountGroup>();++++ const defaultGroup = groupList.find((v:any) => v.isDefault)!;++++ groupList.map((v:any) => {++ const accountGroupItem = {++ ...v,++ children: [],++ };++ accountGroupList.push(accountGroupItem);++ accountGroupMap.set(v.id, accountGroupItem);++ });++++ accountList.map((v) => {++ (++ accountGroupMap.get(v.groupId!) ||++ accountGroupMap.get(defaultGroup.id)!++ ).children?.push(v);++ });++++ accountGroupList.sort((a, b) => {++ return a.rank - b.rank;++ });++++ setAccountGroupList(accountGroupList);++ } catch (error) {++ console.error('获取账户分组失败:', error);++ }++ };++++ // 初始化分组数据++ useEffect(() => {++ if (showGroup && accountList.length > 0) {++ fetchAccountGroups();++ }++ }, [showGroup, accountList]);++++ // change事件++ useEffect(() => {++ if (!recentData.current) return;++ if (onChange) onChange(choosedAccountsList, recentData.current!);++ }, [choosedAccountsList, onChange]);++++ const init = () => {++ recentData.current = undefined;++ };++++ useImperativeHandle(ref, () => ({++ // 恢复到本次操作之前的状态++ recover() {++ setChoosedAccountsList(choosedAccounts || []);++ },++ init,++ }));++++ // 全选/取消全选++ const handleSelectAll = (checked: boolean) => {++ recentData.current = accountList[0];++ setChoosedAccountsList(checked ? [...accountList] : []);++ };++++ // 选择/取消选择单个账户++ const handleSelectAccount = (account: SocialAccount) => {++ recentData.current = account;++ setChoosedAccountsList(prev => {++ const isSelected = prev.some(item => item.id === account.id);++ if (isSelected) {++ return prev.filter(item => item.id !== account.id);++ } else {++ return [...prev, account];++ }++ });++ };++++ // 选择/取消选择分组内所有账户++ const handleSelectGroup = (group: AccountGroup, checked: boolean) => {++ if (!group.children || group.children.length === 0) return;++++ recentData.current = group.children[0];++ setChoosedAccountsList(prev => {++ const groupAccountIds = group.children!.map(account => account.id);++ const selectedInGroup = prev.filter(account => groupAccountIds.includes(account.id));++++ if (checked) {++ // 选择分组内所有账户++ const otherAccounts = prev.filter(account => !groupAccountIds.includes(account.id));++ return [...otherAccounts, ...group.children!];++ } else {++ // 取消选择分组内所有账户++ return prev.filter(account => !groupAccountIds.includes(account.id));++ }++ });++ };++++ // 渲染单个账户++ const renderAccount = (account: SocialAccount) => {++ const platInfo = AccountPlatInfoMap.get(account.type);++ const isSelected = choosedAccountsList.some(item => item.id === account.id);++ const isDisable = choosedAccounts?.find((k) => k.id === account.id) && isCancelChooseAccount;++ const isPcNotSupported = platInfo && platInfo.pcNoThis === true;++++ const handleAccountClick = () => {++ if (isDisable) return;++ if (isPcNotSupported) {++ setCurrentPlatform(platInfo?.name || '');++ setDownloadModalVisible(true);++ return;++ }++ handleSelectAccount(account);++ };++++ return (++ <div++ key={account.id}++ className={[++ "simpleAccountChoose-accounts-item",++ isSelected && "simpleAccountChoose-accounts-item--active",++ isDisable && "simpleAccountChoose-accounts-item--disable",++ isPcNotSupported && "simpleAccountChoose-accounts-item--pc-not-supported",++ ].join(" ")}++ onClick={handleAccountClick}++ >++ <Tooltip++ title={++ isPcNotSupported ? (++ <>++ <p>昵称:{account.nickname}</p>++ <p>平台:{platInfo?.name}</p>++ <p style={{ color: '#ff4d4f' }}>Web不支持该平台,请下载App</p>++ </>++ ) : (++ <>++ <p>昵称:{account.nickname}</p>++ <p>平台:{platInfo?.name}</p>++ </>++ )++ }++ >++ <div className="simpleAccountChoose-accounts-item-avatar">++ <Avatar src={account.avatar} size="large" />++ {platInfo && (++ <div className="simpleAccountChoose-accounts-item-platform">++ <img src={platInfo.icon} alt={platInfo.name} />++ </div>++ )}++ </div>++ <span className="simpleAccountChoose-accounts-item-nickname">++ {account.nickname}++ </span>++ </Tooltip>++++ {isPcNotSupported ? (++ <div className="simpleAccountChoose-accounts-item-overlay">++ <span className="simpleAccountChoose-accounts-item-overlay-text">APP</span>++ </div>++ ) : (++ <div className="simpleAccountChoose-accounts-item-choose">++ <CheckOutlined />++ </div>++ )}++ </div>++ );++ };++++ // 渲染分组内容++ const renderGroupContent = () => {++ if (!showGroup || accountGroupList.length === 0) {++ return (++ <div className="simpleAccountChoose-accounts">++ {accountList.map(renderAccount)}++ </div>++ );++ }++++ return (++ <Collapse++ defaultActiveKey={accountGroupList.map(group => group.id)}++ className="simpleAccountChoose-groups"++ >++ {accountGroupList.map((group) => {++ const groupAccountIds = group.children?.map(account => account.id) || [];++ const selectedInGroup = choosedAccountsList.filter(account =>++ groupAccountIds.includes(account.id)++ );++ const isGroupSelected = selectedInGroup.length === group.children?.length;++ const isGroupIndeterminate = selectedInGroup.length > 0 && selectedInGroup.length < (group.children?.length || 0);++++ return (++ <Collapse.Panel++ key={group.id}++ header={++ <div className="simpleAccountChoose-group-header">++ <Checkbox++ indeterminate={isGroupIndeterminate}++ checked={isGroupSelected}++ onChange={(e) => handleSelectGroup(group, e.target.checked)}++ onClick={(e) => e.stopPropagation()}++ >++ {group.name} ({group.children?.length || 0})++ </Checkbox>++ </div>++ }++ >++ <div className="simpleAccountChoose-accounts">++ {group.children?.map(renderAccount)}++ </div>++ </Collapse.Panel>++ );++ })}++ </Collapse>++ );++ };++++ return (++ <div className={styles.simpleAccountChoose}>++ {accountList.length === 0 ? (++ <div className="simpleAccountChoose-empty">++ <Empty++ description={++ <>++ 无账户数据,请前往 <Link href="/accounts">账户</Link>++ 添加数据++ </>++ }++ />++ </div>++ ) : (++ <>++ <div className="simpleAccountChoose-header">++ {!disableAllSelect && (++ <Checkbox++ indeterminate={++ choosedAccountsList.length > 0 &&++ choosedAccountsList.length < accountList.length++ }++ onChange={(e) => handleSelectAll(e.target.checked)}++ checked={choosedAccountsList.length === accountList.length}++ >++ 选择所有账户++ </Checkbox>++ )}++ <span className="simpleAccountChoose-count">++ 已选择 {choosedAccountsList.length} 个++ </span>++ </div>++++ {renderGroupContent()}++ </>++ )}++++ {/* 下载App弹窗 */}++ <DownloadAppModal++ visible={downloadModalVisible}++ onClose={() => setDownloadModalVisible(false)}++ platform={currentPlatform}++ appName="Aitoearn App"++ />++ </div>++ );++ },++ ),++);++SimpleAccountChoose.displayName = "SimpleAccountChoose";++++export default SimpleAccountChoose;diff --cc project/aitoearn-web/src/components/FacebookPagesModal/index.module.scssindex 00000000,00000000..62e8aca0new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/FacebookPagesModal/index.module.scss@@@ -1,0 -1,0 +1,80 @@@++.facebookPagesModal {++ .pageList {++ max-height: 400px;++ overflow-y: auto;++ }++++ .pageItem {++ padding: 8px 0;++ border-bottom: 1px solid #f0f0f0;++++ &:last-child {++ border-bottom: none;++ }++ }++++ .pageInfo {++ display: flex;++ align-items: center;++ gap: 12px;++ }++++ .pageAvatar {++ flex-shrink: 0;++ }++++ .pageName {++ font-size: 14px;++ color: #333;++ }++++ .selectAll {++ margin-bottom: 16px;++ padding-bottom: 12px;++ border-bottom: 1px solid #f0f0f0;++ }++++ .noPagesContainer {++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ padding: 40px 20px;++ text-align: center;++ }++++ .noPagesMessage {++ font-size: 16px;++ color: #666;++ margin-bottom: 24px;++ }++++ .createPageSection {++ display: flex;++ flex-direction: column;++ align-items: center;++ gap: 16px;++ }++++ .createPageLink {++ font-size: 16px;++ font-weight: 500;++ color: #1890ff;++ text-decoration: none;++++ &:hover {++ color: #40a9ff;++ text-decoration: underline;++ }++ }++++ .createPageTip {++ font-size: 14px;++ color: #999;++ line-height: 1.5;++ }++++ .refreshButton {++ margin-top: 8px;++ }++}diff --cc project/aitoearn-web/src/components/FacebookPagesModal/index.tsxindex 00000000,00000000..136ead3cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/FacebookPagesModal/index.tsx@@@ -1,0 -1,0 +1,195 @@@++import React, { useState, useEffect } from 'react';++import { Modal, Checkbox, List, Button, message, Spin, Avatar, Typography } from 'antd';++import { ReloadOutlined } from '@ant-design/icons';++import { apiGetFacebookPages, apiSubmitFacebookPages } from '@/api/plat/facebook';++import { useAccountStore } from '@/store/account';++import { useTranslation } from 'react-i18next';++import styles from './index.module.scss';++++const { Link } = Typography;++++export interface FacebookPageItem {++ id: string;++ name: string;++ profile_picture_url?: string;++}++++interface FacebookPagesModalProps {++ open: boolean;++ onClose: () => void;++ onSuccess: () => void;++}++++const FacebookPagesModal: React.FC<FacebookPagesModalProps> = ({++ open,++ onClose,++ onSuccess,++}) => {++ const { t } = useTranslation('account');++ const [pages, setPages] = useState<FacebookPageItem[]>([]);++ const [selectedPageIds, setSelectedPageIds] = useState<string[]>([]);++ const [loading, setLoading] = useState(false);++ const [submitting, setSubmitting] = useState(false);++ const accountStore = useAccountStore();++++ // 获取Facebook页面列表++ const fetchPages = async () => {++ setLoading(true);++ try {++ const res: any = await apiGetFacebookPages('');++ if (res?.code === 0) {++ setPages(res.data || []);++ } else {++ message.error(t('facebookPages.fetchError' as any));++ }++ } catch (error) {++ console.error('获取Facebook页面列表失败:', error);++ message.error(t('facebookPages.fetchError' as any));++ } finally {++ setLoading(false);++ }++ };++++ // 提交选择的页面++ const handleSubmit = async () => {++ if (selectedPageIds.length === 0) {++ message.warning(t('facebookPages.selectAtLeastOne' as any));++ return;++ }++++ setSubmitting(true);++ try {++ const res = await apiSubmitFacebookPages(selectedPageIds);++ if (res?.code === 0) {++ message.success(t('facebookPages.submitSuccess' as any));++ // 刷新账户列表++ await accountStore.getAccountList();++ onSuccess();++ onClose();++ } else {++ message.error(t('facebookPages.submitError' as any));++ }++ } catch (error) {++ console.error('提交页面选择失败:', error);++ message.error(t('facebookPages.submitError' as any));++ } finally {++ setSubmitting(false);++ }++ };++++ // 处理页面选择变化++ const handlePageChange = (pageId: string, checked: boolean) => {++ if (checked) {++ setSelectedPageIds(prev => [...prev, pageId]);++ } else {++ setSelectedPageIds(prev => prev.filter(id => id !== pageId));++ }++ };++++ // 全选/取消全选++ const handleSelectAll = (checked: boolean) => {++ if (checked) {++ setSelectedPageIds(pages.map(page => page.id));++ } else {++ setSelectedPageIds([]);++ }++ };++++ useEffect(() => {++ if (open) {++ fetchPages();++ setSelectedPageIds([]);++ }++ }, [open]);++++ return (++ <Modal++ title={t('facebookPages.title' as any)}++ open={open}++ onCancel={onClose}++ footer={[++ <Button key="cancel" onClick={onClose}>++ {t('facebookPages.cancel' as any)}++ </Button>,++ <Button++ key="submit"++ type="primary"++ loading={submitting}++ onClick={handleSubmit}++ >++ {t('facebookPages.confirm' as any)}++ </Button>,++ ]}++ width={600}++ className={styles.facebookPagesModal}++ >++ <div className={styles.selectAll}>++ <Checkbox++ checked={selectedPageIds.length === pages.length && pages.length > 0}++ indeterminate={selectedPageIds.length > 0 && selectedPageIds.length < pages.length}++ onChange={(e) => handleSelectAll(e.target.checked)}++ >++ {t('facebookPages.selectAll' as any)}++ </Checkbox>++ </div>++++ <Spin spinning={loading}>++ {pages.length > 0 ? (++ <List++ className={styles.pageList}++ dataSource={pages}++ renderItem={(page) => (++ <List.Item className={styles.pageItem}>++ <Checkbox++ checked={selectedPageIds.includes(page.id)}++ onChange={(e) => handlePageChange(page.id, e.target.checked)}++ >++ <div className={styles.pageInfo}>++ <Avatar++ src={page.profile_picture_url}++ size={32}++ className={styles.pageAvatar}++ >++ {page.name?.charAt(0)}++ </Avatar>++ <span className={styles.pageName}>{page.name}</span>++ </div>++ </Checkbox>++ </List.Item>++ )}++ />++ ) : (++ !loading && (++ <div className={styles.noPagesContainer}>++ <div className={styles.noPagesMessage}>++ {t('facebookPages.noPagesMessage' as any)}++ </div>++ <div className={styles.createPageSection}>++ <Link++ href="https://www.facebook.com/pages/create"++ target="_blank"++ className={styles.createPageLink}++ >++ {t('facebookPages.createPageLink' as any)}++ </Link>++ <div className={styles.createPageTip}>++ {t('facebookPages.createPageTip' as any)}++ </div>++ <Button++ type="primary"++ icon={<ReloadOutlined />}++ onClick={fetchPages}++ className={styles.refreshButton}++ >++ {t('facebookPages.refresh' as any)}++ </Button>++ </div>++ </div>++ )++ )}++ </Spin>++ </Modal>++ );++};++++export default FacebookPagesModal;diff --cc project/aitoearn-web/src/components/GetCode/GetCode.tsxindex 00000000,00000000..23ad9484new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/GetCode/GetCode.tsx@@@ -1,0 -1,0 +1,63 @@@++import { useRef, useState } from "react";++import { Statistic } from "antd";++import styles from "./getCode.module.scss";++++const { Timer } = Statistic;++++function GetCode({++ onGetCode,++ codeSendTime = 60,++}: {++ onGetCode: (unlock: () => void) => void;++ codeSendTime?: number;++}) {++ const [isCode, setIsCode] = useState(false);++ const currTime = useRef(0);++++ const lockCode = () => {++ setIsCode(true);++ currTime.current = codeSendTime * 1000;++ };++++ return (++ <label++ className={++ styles["loginForm-getCode"] +++ ` ${isCode ? styles["loginForm-getCode--disable"] : ""}`++ }++ onClick={() => {++ if (isCode) return;++ lockCode();++ onGetCode(() => {++ setIsCode(false);++ });++ }}++ >++ 获取验证码++ {isCode ? (++ <>++ (++ <Timer++ type="countdown"++ format="ss"++ value={Date.now() + currTime.current}++ precision={1}++ onFinish={() => {++ setIsCode(false);++ }}++ onChange={(e) => {++ if (typeof e === "number") {++ currTime.current = e;++ }++ }}++ />++ s)++ </>++ ) : (++ ""++ )}++ </label>++ );++}++++export default GetCode;diff --cc project/aitoearn-web/src/components/GetCode/getCode.module.scssindex 00000000,00000000..a5504708new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/GetCode/getCode.module.scss@@@ -1,0 -1,0 +1,34 @@@++.loginForm-getCode {++ color: var(--colorPrimary5);++ position: absolute;++ top: 50%;++ transform: translateY(-50%);++ right: 20px;++ cursor: pointer;++ display: flex;++ align-items: center;++ font-size: 14px;++++ &:hover {++ color: var(--colorPrimary4);++ }++ &:active {++ color: var(--colorPrimary6);++ }++++ :global {++ .ant-statistic-content {++ display: flex;++ align-items: center;++ }++ span {++ font-size: 14px;++ font-weight: 400;++ color: var(--colorPrimary5);++ }++ }++}++++.loginForm-getCode--disable {++ cursor: no-drop;++}diff --cc project/aitoearn-web/src/components/ImageEditorModal/imageEditorModal.module.scssindex 00000000,00000000..c1f5765anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/ImageEditorModal/imageEditorModal.module.scss@@@ -1,0 -1,0 +1,26 @@@++.imageEditorModal {++ :global {++ .tui-image-editor-container {++ width: 100% !important;++ }++ .tui-image-editor-download-btn, .tui-image-editor-header-logo {++ display: none !important;++ }++ .tui-colorpicker-palette-container {++ & > ul {++ &:nth-of-type(1) {++ display: flex;++ flex-wrap: wrap;++ .tui-colorpicker-palette-button {++ cursor: pointer;++ width: 18px;++ height: 18px;++ }++ }++ }++ span {++ color: transparent !important;++ }++ }++ }++}diff --cc project/aitoearn-web/src/components/ImageEditorModal/index.tsxindex 00000000,cadd8b76..cadd8b76mode 000000,100644..100644--- a/project/aitoearn-web/src/components/ImageEditorModal/index.tsx+++ b/project/aitoearn-web/src/components/ImageEditorModal/index.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/PublishDialog.util.tsindex 00000000,07f7df70..07f7df70mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/PublishDialog.util.ts+++ b/project/aitoearn-web/src/components/PublishDialog/PublishDialog.util.tsdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/Choose/ImgChoose.tsxindex 00000000,00000000..b0bd1e6anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/Choose/ImgChoose.tsx@@@ -1,0 -1,0 +1,79 @@@++import { Button, message, Upload } from "antd";++import { FC, useRef } from "react";++import { RcFile } from "antd/es/upload";++import { formatImg } from "@/components/PublishDialog/PublishDialog.util";++import { IImgFile } from "@/components/PublishDialog/publishDialog.type";++++interface ImgChooseProps {++ // 单选就使用单选方法,多选就使用单选方法++++ // 单选返回++ onChoose?: (_: IImgFile) => void;++ // 多选返回方法++ onMultipleChoose?: (_: IImgFile[]) => void;++ children?: React.ReactNode;++}++++const ImgChoose: FC<ImgChooseProps> = ({++ onChoose,++ onMultipleChoose,++ children,++}) => {++ const chooseCount = useRef<number>(0);++ const fileListRef = useRef<RcFile[]>([]);++++ /**++ * 发送上传的事件++ */++ const handleUploadImg = async () => {++ try {++ const tasks: Promise<IImgFile>[] = [];++ for (const file of fileListRef.current) {++ tasks.push(++ formatImg({++ path: file.name,++ blob: file,++ }),++ );++ }++ const imgFiles = await Promise.all(tasks);++ if (onMultipleChoose) {++ onMultipleChoose(imgFiles);++ } else if (onChoose) {++ onChoose(imgFiles[0]);++ }++ } catch (e) {++ message.error("选择图片失败");++ console.error(e);++ }++ };++++ return (++ <Upload++ accept="image/*"++ multiple={!!onMultipleChoose}++ beforeUpload={async (file, uploadFileList) => {++ chooseCount.current++;++ fileListRef.current = [...fileListRef.current, file];++++ if (chooseCount.current === uploadFileList.length) {++ await handleUploadImg();++ fileListRef.current = [];++ chooseCount.current = 0;++ }++++ return Upload.LIST_IGNORE;++ }}++ >++ {children ? (++ <div className="imgChoose" style={{ cursor: "pointer" }}>++ {children}++ </div>++ ) : (++ <Button type="primary">选择图片</Button>++ )}++ </Upload>++ );++};++++export default ImgChoose;diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/DraftSelectionModal/index.tsxindex 00000000,e885258e..e885258emode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/DraftSelectionModal/index.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/DraftSelectionModal/index.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/MaterialSelectionModal/index.tsxindex 00000000,1e221a66..1e221a66mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/MaterialSelectionModal/index.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/MaterialSelectionModal/index.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/common/CommonTitleInput.tsxindex 00000000,00000000..ea64feccnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/common/CommonTitleInput.tsx@@@ -1,0 -1,0 +1,63 @@@++import { ForwardedRef, forwardRef, memo, useMemo } from "react";++import styles from "../platParamsSetting.module.scss";++import { Input } from "antd";++import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";++import { PubItem } from "@/components/PublishDialog/publishDialog.type";++import { usePublishDialog } from "@/components/PublishDialog/usePublishDialog";++import { useShallow } from "zustand/react/shallow";++import { useTransClient } from "@/app/i18n/client";++++export interface ICommonTitleInputRef {}++++export interface ICommonTitleInputProps {++ pubItem: PubItem;++}++++const CommonTitleInput = memo(++ forwardRef(++ (++ { pubItem }: ICommonTitleInputProps,++ ref: ForwardedRef<ICommonTitleInputRef>,++ ) => {++ const { t } = useTransClient("publish");++ const platConfig = useMemo(() => {++ return AccountPlatInfoMap.get(pubItem.account.type)!;++ }, [pubItem]);++++ const { setOnePubParams, pubList } = usePublishDialog(++ useShallow((state) => ({++ setOnePubParams: state.setOnePubParams,++ pubList: state.pubList,++ })),++ );++++ // 判断是否需要显示必填标识++ const isRequired = pubItem.account.type === PlatType.Pinterest;++++ return (++ <div className={styles.commonTitleInput}>++ <div className="platParamsSetting-label">++ {t("form.title")}++ {isRequired && <span style={{ color: "#ff4d4f", marginLeft: "4px" }}>*</span>}++ </div>++ <Input++ value={pubItem.params.title}++ maxLength={platConfig.commonPubParamsConfig.titleMax || 20}++ placeholder={t("form.titlePlaceholder") }++ showCount++ onChange={(e) => {++ setOnePubParams(++ {++ title: e.target.value,++ },++ pubItem.account.id,++ );++ }}++ />++ </div>++ );++ },++ ),++);++++export default CommonTitleInput;diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/hooks/usePlatParamsCoomon.tsxindex 00000000,00000000..8b33d01fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/hooks/usePlatParamsCoomon.tsx@@@ -1,0 -1,0 +1,79 @@@++import { usePublishDialog } from "@/components/PublishDialog/usePublishDialog";++import { useShallow } from "zustand/react/shallow";++import { useCallback, useMemo } from "react";++import {++ IChangeParams,++ IPubParmasTextareaProps,++} from "@/components/PublishDialog/compoents/PubParmasTextarea";++import { PubItem } from "@/components/PublishDialog/publishDialog.type";++import { PubParamsVerifyInfo } from "@/components/PublishDialog/hooks/usePubParamsVerify";++import { Alert } from "antd";++++export default function usePlatParamsCommon(pubItem: PubItem) {++ const { setOnePubParams, errParamsMap, pubListChoosed, warningParamsMap } =++ usePublishDialog(++ useShallow((state) => ({++ setOnePubParams: state.setOnePubParams,++ step: state.step,++ errParamsMap: state.errParamsMap,++ pubListChoosed: state.pubListChoosed,++ warningParamsMap: state.warningParamsMap,++ })),++ );++++ // 当前组件的错误消息++ const currErrItem = useMemo(() => {++ return errParamsMap?.get(pubItem.account.id);++ }, [errParamsMap, pubItem, pubListChoosed]);++++ // 当前组件的警告消息++ const currWarningItem = useMemo(() => {++ return warningParamsMap?.get(pubItem.account.id);++ }, [warningParamsMap, pubItem, pubListChoosed]);++++ const onChange = useCallback(++ (values: IChangeParams) => {++ setOnePubParams(++ {++ images: values.imgs,++ des: values.value,++ video: values.video,++ },++ pubItem.account.id,++ );++ },++ [pubItem, setOnePubParams],++ );++++ const pubParmasTextareaCommonParams = useMemo(() => {++ const props: IPubParmasTextareaProps = {++ platType: pubItem.account.type,++ onChange,++ desValue: pubItem.params.des,++ imageFileListValue: pubItem.params.images,++ videoFileValue: pubItem.params.video,++ beforeExtend: (++ <>++ <PubParamsVerifyInfo errItem={currErrItem} />++ </>++ ),++ centerExtend: currWarningItem && (++ <Alert++ type="info"++ showIcon++ message={++ <p style={{ textAlign: "left" }}>{currWarningItem?.parErrMsg}</p>++ }++ style={{++ fontSize: "12px",++ borderRadius: 0,++ border: "none",++ }}++ />++ ),++ };++ return props;++ }, [currErrItem, onChange, pubItem, currWarningItem]);++++ return { pubParmasTextareaCommonParams, setOnePubParams };++}diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsxindex 00000000,66032cd2..66032cd2mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/platParamsSetting.module.scssindex 00000000,20a223e2..20a223e2mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/platParamsSetting.module.scss+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/platParamsSetting.module.scssdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/BilibParams.tsxindex 00000000,2409ccdf..2409ccdfmode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/BilibParams.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/BilibParams.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsxindex 00000000,00000000..2c7e35a6new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsx@@@ -1,0 -1,0 +1,86 @@@++import { ForwardedRef, forwardRef, memo, useEffect } from "react";++import {++ IPlatsParamsProps,++ IPlatsParamsRef,++} from "@/components/PublishDialog/compoents/PlatParamsSetting/plats/plats.type";++import PubParmasTextarea from "@/components/PublishDialog/compoents/PubParmasTextarea";++import usePlatParamsCommon from "@/components/PublishDialog/compoents/PlatParamsSetting/hooks/usePlatParamsCoomon";++import styles from "../platParamsSetting.module.scss";++import { Radio } from "antd";++import { useTransClient } from "@/app/i18n/client";++++const FacebookParams = memo(++ forwardRef(++ ({ pubItem }: IPlatsParamsProps, ref: ForwardedRef<IPlatsParamsRef>) => {++ const { t } = useTransClient("publish");++ const { pubParmasTextareaCommonParams, setOnePubParams } =++ usePlatParamsCommon(pubItem);++++ // 初始化Facebook参数++ useEffect(() => {++ const option = pubItem.params.option;++ if (!option.facebook || !option.facebook.content_category) {++ setOnePubParams(++ {++ option: {++ ...option,++ facebook: {++ ...option.facebook,++ content_category: "post",++ },++ },++ },++ pubItem.account.id,++ );++ }++ }, [pubItem.account.id, setOnePubParams]);++++ return (++ <>++ <PubParmasTextarea++ {...pubParmasTextareaCommonParams}++ extend={++ <>++ <div++ className={styles.commonTitleInput}++ style={{ marginTop: "10px" }}++ >++ <div className="platParamsSetting-label">++ {t("form.type")}++ </div>++ <Radio.Group++ value={++ pubItem.params.option.facebook?.content_category ||++ "video"++ }++ onChange={(e) => {++ const option = pubItem.params.option;++ setOnePubParams(++ {++ option: {++ ...option,++ facebook: {++ ...option.facebook,++ content_category: e.target.value,++ },++ },++ },++ pubItem.account.id,++ );++ }}++ >++ <Radio value="post">Post</Radio>++ <Radio value="reel">Reel</Radio>++ <Radio value="story">Story</Radio>++ </Radio.Group>++ </div>++ </>++ }++ />++ </>++ );++ },++ ),++);++++export default FacebookParams;diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/InstagramParams.tsxindex 00000000,00000000..dc2a4a74new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/InstagramParams.tsx@@@ -1,0 -1,0 +1,95 @@@++import { ForwardedRef, forwardRef, memo, useEffect } from "react";++import {++ IPlatsParamsProps,++ IPlatsParamsRef,++} from "@/components/PublishDialog/compoents/PlatParamsSetting/plats/plats.type";++import PubParmasTextarea from "@/components/PublishDialog/compoents/PubParmasTextarea";++import usePlatParamsCommon from "@/components/PublishDialog/compoents/PlatParamsSetting/hooks/usePlatParamsCoomon";++import CommonTitleInput from "@/components/PublishDialog/compoents/PlatParamsSetting/common/CommonTitleInput";++import styles from "../platParamsSetting.module.scss";++import { Radio } from "antd";++import { useTransClient } from "@/app/i18n/client";++++const InstagramParams = memo(++ forwardRef(++ ({ pubItem }: IPlatsParamsProps, ref: ForwardedRef<IPlatsParamsRef>) => {++ const { t } = useTransClient("publish");++ const { pubParmasTextareaCommonParams, setOnePubParams } =++ usePlatParamsCommon(pubItem);++++ // 初始化Instagram参数++ useEffect(() => {++ const option = pubItem.params.option;++ console.log("InstagramParams - Current option:", option);++ console.log("InstagramParams - Current instagram:", option.instagram);++++ if (!option.instagram || !option.instagram.content_category) {++ console.log("InstagramParams - Setting default instagram option");++ setOnePubParams(++ {++ option: {++ ...option,++ instagram: {++ ...option.instagram,++ content_category: "post",++ },++ },++ },++ pubItem.account.id,++ );++ }++ }, [pubItem.account.id, setOnePubParams]);++++ return (++ <>++ <PubParmasTextarea++ {...pubParmasTextareaCommonParams}++ extend={++ <>++ <div++ className={styles.commonTitleInput}++ style={{ marginTop: "10px" }}++ >++ <div className="platParamsSetting-label">++ {t("form.type")}++ </div>++ <Radio.Group++ value={++ pubItem.params.option.instagram?.content_category ||++ "video"++ }++ onChange={(e) => {++ const option = pubItem.params.option;++ console.log(++ "InstagramParams - onChange:",++ e.target.value,++ );++ setOnePubParams(++ {++ option: {++ ...option,++ instagram: {++ ...option.instagram,++ content_category: e.target.value,++ },++ },++ },++ pubItem.account.id,++ );++ }}++ >++ <Radio value="post">Post</Radio>++ <Radio value="reel">Reel</Radio>++ <Radio value="story">Story</Radio>++ </Radio.Group>++ </div>++ </>++ }++ />++ </>++ );++ },++ ),++);++++export default InstagramParams;diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/KwaiParams.tsxindex 00000000,00000000..09d87265new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/KwaiParams.tsx@@@ -1,0 -1,0 +1,23 @@@++import { ForwardedRef, forwardRef, memo } from "react";++import {++ IPlatsParamsProps,++ IPlatsParamsRef,++} from "@/components/PublishDialog/compoents/PlatParamsSetting/plats/plats.type";++import PubParmasTextarea from "@/components/PublishDialog/compoents/PubParmasTextarea";++import usePlatParamsCommon from "@/components/PublishDialog/compoents/PlatParamsSetting/hooks/usePlatParamsCoomon";++++const KwaiParams = memo(++ forwardRef(++ ({ pubItem }: IPlatsParamsProps, ref: ForwardedRef<IPlatsParamsRef>) => {++ const { pubParmasTextareaCommonParams } = usePlatParamsCommon(pubItem);++++ return (++ <>++ <PubParmasTextarea {...pubParmasTextareaCommonParams} />++ </>++ );++ },++ ),++);++++export default KwaiParams;diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsxindex 00000000,c3bcbce1..c3bcbce1mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/ThreadsParams.tsxindex 00000000,cb8a7a1d..cb8a7a1dmode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/ThreadsParams.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/ThreadsParams.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/TikTokParams.tsxindex 00000000,00000000..6bc236b6new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/TikTokParams.tsx@@@ -1,0 -1,0 +1,328 @@@++import { ForwardedRef, forwardRef, memo, useEffect, useState } from "react";++import {++ IPlatsParamsProps,++ IPlatsParamsRef,++} from "@/components/PublishDialog/compoents/PlatParamsSetting/plats/plats.type";++import PubParmasTextarea from "@/components/PublishDialog/compoents/PubParmasTextarea";++import usePlatParamsCommon from "@/components/PublishDialog/compoents/PlatParamsSetting/hooks/usePlatParamsCoomon";++import CommonTitleInput from "@/components/PublishDialog/compoents/PlatParamsSetting/common/CommonTitleInput";++import styles from "../platParamsSetting.module.scss";++import { Select, Checkbox, Switch, Alert } from "antd";++import { useTransClient } from "@/app/i18n/client";++import http from "@/utils/request";++++// TikTok Creator Info 接口类型++interface TikTokCreatorInfo {++ max_video_post_duration_sec: number;++ privacy_level_options: string[];++ stitch_disabled: boolean;++ comment_disabled: boolean;++ creator_avatar_url: string;++ creator_nickname: string;++ creator_username: string;++ duet_disabled: boolean;++}++++const TikTokParams = memo(++ forwardRef(++ ({ pubItem }: IPlatsParamsProps, ref: ForwardedRef<IPlatsParamsRef>) => {++ const { t } = useTransClient("publish");++ const { pubParmasTextareaCommonParams, setOnePubParams } =++ usePlatParamsCommon(pubItem);++++ const [creatorInfo, setCreatorInfo] = useState<TikTokCreatorInfo | null>(null);++ const [loading, setLoading] = useState(false);++++ // 获取 TikTok Creator Info++ const fetchCreatorInfo = async () => {++ try {++ setLoading(true);++ const response = await http.get<TikTokCreatorInfo>(`plat/tiktok/creator/info/${pubItem.account.id}`);++ if (response && response.code === 0) {++ setCreatorInfo(response.data as TikTokCreatorInfo);++ }++ } catch (error) {++ console.error('Failed to fetch TikTok creator info:', error);++ } finally {++ setLoading(false);++ }++ };++++ // 初始化 TikTok 参数++ useEffect(() => {++ const option = pubItem.params.option;++ if (!option.tiktok) {++ option.tiktok = {++ privacy_level: '',++ comment_disabled: false,++ duet_disabled: false,++ stitch_disabled: false,++ brand_organic_toggle: false,++ brand_content_toggle: false,++ };++ console.log('Initializing TikTok options:', option.tiktok);++ setOnePubParams({ option }, pubItem.account.id);++ } else {++ console.log('TikTok options already exist:', option.tiktok);++ }++ fetchCreatorInfo();++ }, [pubItem.account.id, pubItem.account.account]);++++ // 隐私级别选项映射++ const getPrivacyLevelLabel = (value: string) => {++ switch (value) {++ case 'PUBLIC_TO_EVERYONE':++ return t('tiktok.privacy.public' as any);++ case 'MUTUAL_FOLLOW_FRIENDS':++ return t('tiktok.privacy.friends' as any);++ case 'SELF_ONLY':++ return t('tiktok.privacy.private' as any);++ default:++ return value;++ }++ };++++ // 获取合规声明文本和链接++ const getComplianceContent = () => {++ const { brand_organic_toggle, brand_content_toggle } = pubItem.params.option.tiktok || {};++++ // 根据选择确定链接++ const linkUrl = brand_content_toggle++ ? 'https://www.tiktok.com/legal/page/global/bc-policy/en'++ : 'https://www.tiktok.com/legal/page/global/music-usage-confirmation/en';++++ // 根据选择确定文本++ let text = '';++ if (brand_organic_toggle && brand_content_toggle) {++ text = t('tiktok.compliance.both' as any);++ } else if (brand_content_toggle) {++ text = t('tiktok.compliance.branded' as any);++ } else if (brand_organic_toggle) {++ text = t('tiktok.compliance.organic' as any);++ } else {++ text = t('tiktok.compliance.default' as any);++ }++++ // 返回整个文本作为可点击的链接++ return (++ // <></>++ <a++ href={linkUrl}++ target="_blank"++ rel="noopener noreferrer"++ style={{++ color: '#1890ff',++ textDecoration: 'underline',++ cursor: 'pointer',++ display: 'block',++ width: '100%'++ }}++ >++ {text}++ </a>++ );++ };++++ return (++ <>++ <PubParmasTextarea++ {...pubParmasTextareaCommonParams}++ extend={++ <>++ {/* Creator Info Display */}++ {creatorInfo && (++ <div className={styles.commonTitleInput} style={{ marginTop: "10px" }}>++ <div className="platParamsSetting-label">{t('tiktok.creatorInfo' as any)}</div>++ <div style={{++ display: 'flex',++ alignItems: 'center',++ gap: '8px',++ padding: '8px',++ borderRadius: '4px'++ }}>++ <img++ src={creatorInfo.creator_avatar_url}++ alt="Creator Avatar"++ style={{ width: '32px', height: '32px', borderRadius: '50%' }}++ />++ <span style={{ fontWeight: 500 }}>{creatorInfo.creator_nickname}</span>++ <span style={{ color: '#666' }}>(@{creatorInfo.creator_username})</span>++ </div>++ </div>++ )}++++ {/* Privacy Level Selection */}++ {creatorInfo && (++ <div className={styles.commonTitleInput} style={{ marginTop: "10px" }}>++ <div className="platParamsSetting-label">{t('tiktok.privacy.title' as any)}</div>++ <Select++ style={{ width: "100%", marginLeft: '3px' }}++ value={pubItem.params.option.tiktok?.privacy_level}++ onChange={(value) => {++ const option = pubItem.params.option;++ option.tiktok!.privacy_level = value;++ setOnePubParams({ option }, pubItem.account.id);++ }}++ placeholder={t('tiktok.privacy.placeholder' as any)}++ options={creatorInfo.privacy_level_options.map(level => ({++ value: level,++ label: getPrivacyLevelLabel(level)++ }))}++ />++ </div>++ )}++++ {/* Allow users to interact */}++ <div className={styles.commonTitleInput} style={{ marginTop: "10px" }}>++ <div className="platParamsSetting-label">{t('tiktok.interactions.title' as any)}</div>++ <div style={{ display: 'flex', flexDirection: 'row', gap: '8px', marginLeft: '3px' }}>++ <Checkbox++ checked={!pubItem.params.option.tiktok?.comment_disabled}++ disabled={creatorInfo?.comment_disabled}++ onChange={(e) => {++ const option = pubItem.params.option;++ option.tiktok!.comment_disabled = !e.target.checked;++ setOnePubParams({ option }, pubItem.account.id);++ }}++ >++ {t('tiktok.interactions.comment' as any)}++ </Checkbox>++ <Checkbox++ checked={!pubItem.params.option.tiktok?.duet_disabled}++ disabled={creatorInfo?.duet_disabled}++ onChange={(e) => {++ const option = pubItem.params.option;++ option.tiktok!.duet_disabled = !e.target.checked;++ setOnePubParams({ option }, pubItem.account.id);++ }}++ >++ {t('tiktok.interactions.duet' as any)}++ </Checkbox>++ <Checkbox++ checked={!pubItem.params.option.tiktok?.stitch_disabled}++ disabled={creatorInfo?.stitch_disabled}++ onChange={(e) => {++ const option = pubItem.params.option;++ option.tiktok!.stitch_disabled = !e.target.checked;++ setOnePubParams({ option }, pubItem.account.id);++ }}++ >++ {t('tiktok.interactions.stitch' as any)}++ </Checkbox>++ </div>++ </div>++++ {/* Commercial Content Disclosure */}++ <div className={styles.commonTitleInput} style={{ marginTop: "10px" }}>++ <div className="platParamsSetting-label">{t('tiktok.commercial.title' as any)}</div>++ <div style={{ marginBottom: '0px' }}>++ {/* <div style={{ fontSize: '12px', color: '#666', marginBottom: '4px' }}>++ 当前状态: {JSON.stringify({++ brand_organic_toggle: pubItem.params.option.tiktok?.brand_organic_toggle,++ brand_content_toggle: pubItem.params.option.tiktok?.brand_content_toggle,++ switch_checked: pubItem.params.option.tiktok?.brand_organic_toggle || pubItem.params.option.tiktok?.brand_content_toggle++ })}++ </div> */}++ <Switch++ checked={pubItem.params.option.tiktok?.brand_organic_toggle || pubItem.params.option.tiktok?.brand_content_toggle}++ size="small"++ style={{ marginTop: '2px', marginLeft: '3px' }}++ onChange={(checked) => {++ console.log('TikTok Switch changed:', checked);++ const option = { ...pubItem.params.option };++ if (!option.tiktok) {++ option.tiktok = {++ privacy_level: '',++ comment_disabled: false,++ duet_disabled: false,++ stitch_disabled: false,++ brand_organic_toggle: false,++ brand_content_toggle: false,++ };++ }++++ if (!checked) {++ // 关闭时,清空所有商业内容选项++ option.tiktok.brand_organic_toggle = false;++ option.tiktok.brand_content_toggle = false;++ } else {++ // 开启时,默认选择"您的品牌"选项++ option.tiktok.brand_organic_toggle = true;++ option.tiktok.brand_content_toggle = false;++ }++ console.log('TikTok options after change:', option.tiktok);++ setOnePubParams({ option }, pubItem.account.id);++ }}++ />++ <span style={{ marginLeft: '8px', fontSize: '11px' }}>{t('tiktok.commercial.toggle' as any)}</span>++ </div>++++++ </div>++++ {(pubItem.params.option.tiktok?.brand_organic_toggle || pubItem.params.option.tiktok?.brand_content_toggle) && (++ <div style={{ display: 'flex', flexDirection: 'column', gap: '8px', marginTop: '8px', fontSize: '12px' }}>++ <Checkbox++ checked={pubItem.params.option.tiktok?.brand_organic_toggle}++ onChange={(e) => {++ const option = { ...pubItem.params.option };++ if (!option.tiktok) {++ option.tiktok = {++ privacy_level: '',++ comment_disabled: false,++ duet_disabled: false,++ stitch_disabled: false,++ brand_organic_toggle: false,++ brand_content_toggle: false,++ };++ }++ option.tiktok.brand_organic_toggle = e.target.checked;++ setOnePubParams({ option }, pubItem.account.id);++ }}++ >++ {t('tiktok.commercial.yourBrand' as any)}++ </Checkbox>++ <Checkbox++ checked={pubItem.params.option.tiktok?.brand_content_toggle}++ onChange={(e) => {++ const option = { ...pubItem.params.option };++ if (!option.tiktok) {++ option.tiktok = {++ privacy_level: '',++ comment_disabled: false,++ duet_disabled: false,++ stitch_disabled: false,++ brand_organic_toggle: false,++ brand_content_toggle: false,++ };++ }++ option.tiktok.brand_content_toggle = e.target.checked;++ setOnePubParams({ option }, pubItem.account.id);++ }}++ >++ {t('tiktok.commercial.brandedContent' as any)} 11++ </Checkbox>++++ {/* Compliance Declaration */}++ <div className={styles.commonTitleInput} style={{ marginTop: "10px" }}>++ <Alert++ description={getComplianceContent()}++ type="info"++ showIcon++ style={{ fontSize: '12px', padding: '3px 6px' }}++ />++ </div>++ </div>++ )}++++++ </>++ }++ />++ </>++ );++ },++ ),++);++++export default TikTokParams;diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/WxGzhParams.tsxindex 00000000,00000000..96ea8150new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/WxGzhParams.tsx@@@ -1,0 -1,0 +1,52 @@@++import { ForwardedRef, forwardRef, memo, useEffect } from "react";++import { IPlatsParamsProps, IPlatsParamsRef } from "@/components/PublishDialog/compoents/PlatParamsSetting/plats/plats.type";++import PubParmasTextarea from "@/components/PublishDialog/compoents/PubParmasTextarea";++import usePlatParamsCommon from "@/components/PublishDialog/compoents/PlatParamsSetting/hooks/usePlatParamsCoomon";++import styles from "../platParamsSetting.module.scss";++import { Input } from "antd";++import { useTransClient } from "@/app/i18n/client";++++/**++ * 微信公众号平台参数++ * - 独立参数:title(与通用 title 区分,使用 option.wxGzh.title 保存)++ */++const WxGzhParams = memo(++ forwardRef(({ pubItem }: IPlatsParamsProps, ref: ForwardedRef<IPlatsParamsRef>) => {++ const { t } = useTransClient("publish");++ const { pubParmasTextareaCommonParams, setOnePubParams } = usePlatParamsCommon(pubItem);++++ // 初始化 wxGzh 参数对象++ // useEffect(() => {++ // const option = pubItem.params.option;++ // if (!option.wxGzh) {++ // option.wxGzh = {};++ // setOnePubParams({ option }, pubItem.account.id);++ // }++ // // eslint-disable-next-line react-hooks/exhaustive-deps++ // }, [pubItem.account.id]);++++ return (++ <>++ <PubParmasTextarea++ {...pubParmasTextareaCommonParams}++ extend={<>++ <div className={styles.commonTitleInput} style={{ marginTop: "10px" }}>++ <div className="platParamsSetting-label">{t("form.title")}</div>++ <Input++ value={pubItem.params.title}++ placeholder={t("form.titlePlaceholder")}++ onChange={(e) => {++ setOnePubParams({ title: e.target.value }, pubItem.account.id);++ }}++ />++ </div>++ </>}++ />++ </>++ );++ })++);++++export default WxGzhParams;++++diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/YouTubeParams.tsxindex 00000000,b8222be1..b8222be1mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/YouTubeParams.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/YouTubeParams.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/plats.type.tsindex 00000000,00000000..b9f789fdnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/plats.type.ts@@@ -1,0 -1,0 +1,7 @@@++import { PubItem } from "@/components/PublishDialog/publishDialog.type";++++export interface IPlatsParamsRef {}++++export interface IPlatsParamsProps {++ pubItem: PubItem;++}diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/components/Menu.tsxindex 00000000,d4442dde..d4442ddemode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/components/Menu.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/components/Menu.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/index.tsxindex 00000000,879a7044..879a7044mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/index.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/index.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/pubParmasMentionInput.module.scssindex 00000000,2254d9ef..2254d9efmode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/pubParmasMentionInput.module.scss+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/pubParmasMentionInput.module.scssdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/utils/editor-utils.tsindex 00000000,f901efdf..f901efdfmode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/utils/editor-utils.ts+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/utils/editor-utils.tsdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextareaUpload.tsxindex 00000000,5623f046..5623f046mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextareaUpload.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextareaUpload.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextuploadImage.tsxindex 00000000,00000000..2ffcc1d6new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextuploadImage.tsx@@@ -1,0 -1,0 +1,63 @@@++import React, { ForwardedRef, forwardRef, memo } from "react";++import { CloseOutlined, EditOutlined } from "@ant-design/icons";++import { Button, Tooltip } from "antd";++import { useTranslation } from "react-i18next";++import { IImgFile } from "@/components/PublishDialog/publishDialog.type";++++export interface IPubParmasTextuploadImageRef {}++++export interface IPubParmasTextuploadImageProps {++ onClose: () => void;++ onClick: () => void;++ imageFile: IImgFile;++ onEditClick: () => void;++}++++const PubParmasTextuploadImage = memo(++ forwardRef(++ (++ {++ onClick,++ onClose,++ imageFile,++ onEditClick,++ }: IPubParmasTextuploadImageProps,++ ref: ForwardedRef<IPubParmasTextuploadImageRef>,++ ) => {++ const { t } = useTranslation("publish");++++ return (++ <>++ <div className="pubParmasTextarea-uploads-item" onClick={onClick}>++ <div++ className="pubParmasTextarea-uploads-item-close"++ onClick={(e) => {++ e.stopPropagation();++ onClose();++ }}++ >++ <CloseOutlined />++ </div>++ <Tooltip title={t("actions.preview")}>++ <img src={imageFile.imgUrl} alt="preview" />++ </Tooltip>++++ <Tooltip title="Edit">++ <Button++ className="pubParmasTextarea-uploads-item-edit"++ icon={<EditOutlined />}++ size="small"++ onClick={(e) => {++ e.stopPropagation();++ onEditClick();++ }}++ />++ </Tooltip>++ </div>++ </>++ );++ },++ ),++);++++export default PubParmasTextuploadImage;diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/VideoCoverSeting.tsxindex 00000000,676b15e8..676b15e8mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/VideoCoverSeting.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/VideoCoverSeting.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/index.tsxindex 00000000,5cce6020..5cce6020mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/index.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/index.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/pubCommonComps.module.scssindex 00000000,00e047fb..00e047fbmode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/pubCommonComps.module.scss+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/pubCommonComps.module.scssdiff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/videoCoverSeting.module.scssindex 00000000,00000000..64afc623new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/videoCoverSeting.module.scss@@@ -1,0 -1,0 +1,73 @@@++.videoCoverSeting {++ width: 70px;++ height: 100px;++ background: rgb(103, 105, 105);++ border-radius: 6px;++ overflow: hidden;++ position: relative;++ cursor: pointer;++ :global {++ .imgChoose {++ height: 100%;++ }++ .videoCoverSeting-img, img {++ width: 100%;++ height: 100%;++ }++ .videoCoverSeting-choosed {++ height: 100%;++ position: relative;++++ .anticon {++ position: absolute;++ z-index: 10;++ color: red;++ right: 3px;++ top: 3px;++ display: none;++ }++++ &:hover {++ .anticon {++ display: block;++ }++ }++ }++ img {++ object-fit: contain;++ }++ .videoCoverSeting-text {++ position: absolute;++ bottom: 0;++ width: 100%;++ background: rgba(0, 0, 0, 0.8);++ font-size: var(--fs-xs);++ color: #fff;++ padding: 5px 0;++ text-align: center;++ }++ }++}++++.videoCoverSetingModal {++ :global {++ .videoCoverSetingModal-top {++ display: flex;++ align-items: center;++ margin: 20px 0;++ .ant-alert {++ margin-right: 30px;++ }++ }++++ .videoCoverSetingModal-cropper {++ img {++ height: 300px;++ object-fit: contain;++ }++ }++++ #videoCoverSetingModal--cropper {++ }++ }++}diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PublishDialogAi.tsxindex 00000000,00000000..9106a6b6new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PublishDialogAi.tsx@@@ -1,0 -1,0 +1,37 @@@++import { ForwardedRef, forwardRef, memo } from "react";++import styles from "../publishDialog.module.scss";++import Chat from "@/components/Chat";++import { useTransClient } from "@/app/i18n/client";++import { CloseCircleFilled } from "@ant-design/icons";++++export interface IPublishDialogAiRef {}++++export interface IPublishDialogAiProps {++ onClose: () => void;++}++++// AI写作++const PublishDialogAi = memo(++ forwardRef(++ (++ { onClose }: IPublishDialogAiProps,++ ref: ForwardedRef<IPublishDialogAiRef>,++ ) => {++ const { t } = useTransClient("publish");++++ return (++ <div className={styles.publishDialogAi} id="publishDialogAi">++ <h1>++ <span>{t("writingAssistant")}</span>++ <CloseCircleFilled onClick={onClose} />++ </h1>++ <div className="publishDialogAi-wrapper">++ <Chat />++ </div>++ </div>++ );++ },++ ),++);++++export default PublishDialogAi;diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PublishDialogDataPicker.tsxindex 00000000,00000000..39ce1aa7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PublishDialogDataPicker.tsx@@@ -1,0 -1,0 +1,103 @@@++import { ForwardedRef, forwardRef, memo, useMemo } from "react";++import { DatePicker } from "antd";++import type { DatePickerProps, GetProps } from "antd";++import dayjs from "dayjs";++import { usePublishDialog } from "@/components/PublishDialog/usePublishDialog";++import { useShallow } from "zustand/react/shallow";++++type RangePickerProps = GetProps<typeof DatePicker.RangePicker>;++++export interface IPublishDialogDataPickerRef {}++++export interface IPublishDialogDataPickerProps {}++++// 日期选择器++const PublishDialogDataPicker = memo(++ forwardRef(++ (++ {}: IPublishDialogDataPickerProps,++ ref: ForwardedRef<IPublishDialogDataPickerRef>,++ ) => {++ const { pubTime, setPubTime } = usePublishDialog(++ useShallow((state) => ({++ pubTime: state.pubTime,++ setPubTime: state.setPubTime,++ })),++ );++++ // 禁用今天之前的日期++ const disabledDate = (current: dayjs.Dayjs) => {++ return current && current < dayjs().startOf("day");++ };++++ // 禁用当前时间之前和当前时间半小时内的时间(只精确到分钟,不考虑秒)++ const disabledDateTime = (current: dayjs.Dayjs | null) => {++ if (!current) return {};++++ const now = dayjs();++ const minTime = now.add(20, "minute");++++ // 只对今天限制++ if (current.isSame(now, "day")) {++ const minHour = minTime.hour();++ const minMinute = minTime.minute();++++ // 禁用小时++ const disabledHours = () => {++ const hours: number[] = [];++ for (let i = 0; i < 24; i++) {++ if (i < minHour) hours.push(i);++ }++ return hours;++ };++++ // 禁用分钟++ const disabledMinutes = (selectedHour: number) => {++ const minutes: number[] = [];++ if (selectedHour === minHour) {++ for (let i = 0; i < minMinute; i++) {++ minutes.push(i);++ }++ } else if (selectedHour < minHour) {++ // 小时都禁用了,分钟全部禁用++ for (let i = 0; i < 60; i++) {++ minutes.push(i);++ }++ }++ return minutes;++ };++++ return {++ disabledHours,++ disabledMinutes,++ };++ }++ // 非今天不限制++ return {};++ };++++ const pubTimeValue = useMemo(() => {++ if (pubTime) {++ return dayjs(pubTime);++ }++ }, [pubTime]);++++ return pubTime ? (++ <DatePicker++ value={pubTimeValue}++ showTime={{ format: "HH:mm" }}++ allowClear={false}++ disabledDate={disabledDate}++ disabledTime={disabledDateTime}++ onChange={(value) => {++ setPubTime(value ? value.format() : undefined);++ }}++ />++ ) : (++ <div />++ );++ },++ ),++);++++export default PublishDialogDataPicker;diff --cc project/aitoearn-web/src/components/PublishDialog/compoents/PublishDialogPreview.tsxindex 00000000,f98756df..f98756dfmode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/compoents/PublishDialogPreview.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/compoents/PublishDialogPreview.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/hooks/usePubParamsVerify.tsxindex 00000000,943b2ad7..943b2ad7mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/hooks/usePubParamsVerify.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/hooks/usePubParamsVerify.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/index.tsxindex 00000000,8faf925c..8faf925cmode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/index.tsx+++ b/project/aitoearn-web/src/components/PublishDialog/index.tsxdiff --cc project/aitoearn-web/src/components/PublishDialog/publishDialog.module.scssindex 00000000,d6b078e9..d6b078e9mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/publishDialog.module.scss+++ b/project/aitoearn-web/src/components/PublishDialog/publishDialog.module.scssdiff --cc project/aitoearn-web/src/components/PublishDialog/publishDialog.type.tsindex 00000000,9954fdc2..9954fdc2mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/publishDialog.type.ts+++ b/project/aitoearn-web/src/components/PublishDialog/publishDialog.type.tsdiff --cc project/aitoearn-web/src/components/PublishDialog/svgs/aibrush.svgindex 00000000,00000000..f962ea50new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/PublishDialog/svgs/aibrush.svg@@@ -1,0 -1,0 +1,1 @@@++<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="publish_base_QFRw0" data-icon="wand-sparkles" aria-hidden="true" stroke-width="2.2" width="16" height="16"><path d="M14 7L17 10M5.00005 6V10M19 14V18M10 2V4M7.00004 8H3.00005M21 16H17M11 3H9.00004M21.64 3.64L20.36 2.36C20.2475 2.24632 20.1136 2.15607 19.966 2.09448C19.8184 2.03289 19.66 2.00118 19.5 2.00118C19.3401 2.00118 19.1817 2.03289 19.0341 2.09448C18.8865 2.15607 18.7526 2.24632 18.64 2.36L2.36004 18.64C2.24636 18.7525 2.15612 18.8865 2.09452 19.0341C2.03293 19.1817 2.00122 19.3401 2.00122 19.5C2.00122 19.6599 2.03293 19.8183 2.09452 19.9659C2.15612 20.1135 2.24636 20.2475 2.36004 20.36L3.64005 21.64C3.75187 21.7549 3.88558 21.8462 4.03329 21.9086C4.181 21.971 4.33971 22.0031 4.50005 22.0031C4.66038 22.0031 4.81909 21.971 4.9668 21.9086C5.11451 21.8462 5.24822 21.7549 5.36005 21.64L21.64 5.36C21.755 5.24818 21.8463 5.11447 21.9087 4.96676C21.971 4.81905 22.0031 4.66034 22.0031 4.5C22.0031 4.33966 21.971 4.18095 21.9087 4.03324C21.8463 3.88553 21.755 3.75182 21.64 3.64Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>diff --cc project/aitoearn-web/src/components/PublishDialog/usePublishDialog.tsindex 00000000,c1e5635b..c1e5635bmode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/usePublishDialog.ts+++ b/project/aitoearn-web/src/components/PublishDialog/usePublishDialog.tsdiff --cc project/aitoearn-web/src/components/PublishDialog/usePublishDialogData.tsindex 00000000,c88a63b1..c88a63b1mode 000000,100644..100644--- a/project/aitoearn-web/src/components/PublishDialog/usePublishDialogData.ts+++ b/project/aitoearn-web/src/components/PublishDialog/usePublishDialogData.tsdiff --cc project/aitoearn-web/src/components/ScrollButtonContainer/index.tsxindex 00000000,5950909b..5950909bmode 000000,100644..100644--- a/project/aitoearn-web/src/components/ScrollButtonContainer/index.tsx+++ b/project/aitoearn-web/src/components/ScrollButtonContainer/index.tsxdiff --cc project/aitoearn-web/src/components/ScrollButtonContainer/scrollButtonContainer.module.scssindex 00000000,f1481a7c..f1481a7cmode 000000,100644..100644--- a/project/aitoearn-web/src/components/ScrollButtonContainer/scrollButtonContainer.module.scss+++ b/project/aitoearn-web/src/components/ScrollButtonContainer/scrollButtonContainer.module.scssdiff --cc project/aitoearn-web/src/components/SignInCalendar/SignInCalendar.module.scssindex 00000000,00000000..48b6fa65new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/SignInCalendar/SignInCalendar.module.scss@@@ -1,0 -1,0 +1,260 @@@++.signInButton {++ display: flex;++ align-items: center;++ justify-content: center;++ width: 40px;++ height: 40px;++ border-radius: 50%;++ transition: all 0.3s ease;++++ &:hover {++ background-color: #f5f5f5;++ transform: scale(1.05);++ }++++ .anticon {++ font-size: 18px;++ color: #666;++ }++}++++.signInModal {++ .ant-modal-header {++ border-bottom: 1px solid #f0f0f0;++ padding: 16px 24px;++ }++++ .ant-modal-body {++ padding: 28px;++ }++}++++.modalHeader {++ display: flex;++ justify-content: space-between;++ align-items: center;++ width: 100%;++ padding-top: 20px;++++ span {++ font-size: 16px;++ font-weight: 600;++ color: #333;++ }++}++++.pointsLink {++ color: #722ed1;++ font-size: 14px;++ padding: 0;++ height: auto;++++ &:hover {++ color: #9254de;++ }++}++++.calendarContainer {++ padding-top: 0px;++ .ant-picker-calendar {++ border: none;++++ .ant-picker-calendar-header {++ padding: 0;++ margin-bottom: 16px;++ }++++ .ant-picker-calendar-date {++ border: none;++ padding: 6px;++ height: 40px;++ display: flex;++ align-items: center;++ justify-content: center;++++ &:hover {++ background-color: #f5f5f5;++ }++ }++++ .ant-picker-calendar-date-today {++ background-color: #e6f7ff;++ border: 1px solid #1890ff;++ }++++ .ant-picker-calendar-date-value {++ font-size: 14px;++ line-height: 1;++ }++++ .ant-picker-calendar-date-content {++ height: auto;++ line-height: 1;++ }++ }++}++++.calendarHeader {++ text-align: center;++ font-size: 18px;++ font-weight: 600;++ color: #333;++ padding: 10px 0;++}++++.calendarCell {++ position: relative;++ width: 100%;++ height: 100%;++ display: flex;++ align-items: center;++ justify-content: center;++}++++.dateContainer {++ display: flex;++ flex-direction: column;++ align-items: center;++ justify-content: center;++ width: 100%;++ height: 100%;++ gap: 2px;++}++++.signInStatus {++ display: flex;++ align-items: center;++ justify-content: center;++ width: 100%;++}++++.signedCircle {++ width: 8px;++ height: 8px;++ border-radius: 50%;++ background-color: #52c41a;++ border: 1px solid #52c41a;++}++++.emptyCircle {++ width: 8px;++ height: 8px;++ border-radius: 50%;++ border: 1px solid #d9d9d9;++ background-color: transparent;++}++++++++.dateText {++ font-size: 12px;++ color: #333;++ line-height: 1;++++ &.today {++ color: #1890ff;++ font-weight: 600;++ }++}++++.signInRules {++ margin: 24px 0;++ padding: 20px;++ background-color: #f8f9fa;++ border-radius: 8px;++++ h4 {++ margin: 0 0 12px 0;++ font-size: 16px;++ font-weight: 600;++ color: #333;++ }++++ ul {++ margin: 0;++ padding-left: 16px;++++ li {++ margin-bottom: 8px;++ font-size: 14px;++ color: #666;++ line-height: 1.4;++++ &:last-child {++ margin-bottom: 0;++ }++ }++ }++}++++.signInInfo {++ display: flex;++ justify-content: space-between;++ margin-bottom: 24px;++ padding: 16px 20px;++ background-color: #f0f8ff;++ border-radius: 6px;++++ .infoItem {++ font-size: 15px;++ color: #1890ff;++ font-weight: 500;++ }++}++++.signInActionButton {++ height: 48px;++ font-size: 16px;++ font-weight: 600;++ border-radius: 8px;++ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);++ border: none;++++ &:hover {++ background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);++ }++++ &:disabled {++ background: #f5f5f5;++ color: #999;++ transform: none;++ box-shadow: none;++ }++}++++// 响应式设计++@media (max-width: 480px) {++ .signInModal {++ .ant-modal {++ width: 90% !important;++ max-width: 550px;++ }++ }++++ .calendarContainer {++ .ant-picker-calendar-date {++ height: 36px;++ }++++ .dateText {++ font-size: 13px;++ }++++ .signedCircle,++ .emptyCircle {++ width: 6px;++ height: 6px;++ }++ }++++ .signInInfo {++ flex-direction: column;++ gap: 8px;++++ .infoItem {++ text-align: center;++ }++ }++}diff --cc project/aitoearn-web/src/components/SignInCalendar/index.tsxindex 00000000,00000000..40ba191cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/SignInCalendar/index.tsx@@@ -1,0 -1,0 +1,230 @@@++"use client";++++import React, { useState, useEffect, useMemo } from 'react';++import { Button, Modal, Calendar, Badge, message, Image } from 'antd';++import { BranchesOutlined, CheckOutlined } from '@ant-design/icons';++import { useTransClient } from '@/app/i18n/client';++import { signInApi, SignInType, SignInResponse, PublishDayInfoResponse, PublishInfoResponse } from '@/api/signIn';++import { useUserStore } from '@/store/user';++import { useRouter } from 'next/navigation';++import styles from './SignInCalendar.module.scss';++++import faya from "@/assets/images/faya.png";++++interface SignInCalendarProps {++ className?: string;++}++++interface CalendarData {++ signedDates: string[]; // 已签到的日期数组,格式: "YYYY-MM-DD"++ todaySigned: boolean; // 今天是否已签到++ consecutiveDays: number; // 连续签到天数++}++++const SignInCalendar: React.FC<SignInCalendarProps> = ({ className }) => {++ const { t } = useTransClient('common');++ const userStore = useUserStore();++ const router = useRouter();++ const [visible, setVisible] = useState(false);++ const [loading, setLoading] = useState(false);++ const [calendarData, setCalendarData] = useState<CalendarData>({++ signedDates: [],++ todaySigned: false,++ consecutiveDays: 0++ });++ const [currentDate, setCurrentDate] = useState(new Date());++++ // 获取当前年月++ const currentYear = currentDate.getFullYear();++ const currentMonth = currentDate.getMonth() + 1;++++ // 获取日历数据++ const fetchCalendarData = async () => {++ try {++ setLoading(true);++++ // 并行获取日历数据和连续签到天数++ const [calendarResponse, consecutiveResponse] = await Promise.all([++ signInApi.getSignInCalendar(currentYear, currentMonth),++ signInApi.getConsecutiveDays()++ ]);++++ // 处理日历数据,将 createdAt 转换为签到日期++ const signedDates: string[] = [];++ let todaySigned = false;++ let consecutiveDays = 0;++++ if (calendarResponse.list && calendarResponse.list.length > 0) {++ // 提取所有签到日期++ calendarResponse.list.forEach(item => {++ const date = new Date(item.createdAt);++ const dateStr = date.toISOString().split('T')[0]; // 格式: YYYY-MM-DD++ signedDates.push(dateStr);++++ // 检查今天是否已签到++ const today = new Date().toISOString().split('T')[0];++ if (dateStr === today) {++ todaySigned = true;++ }++ });++ }++++ // 从连续签到接口获取连续签到天数++ if (consecutiveResponse && consecutiveResponse.data) {++ consecutiveDays = consecutiveResponse.data.days || 0;++ }++++ setCalendarData({++ signedDates,++ todaySigned,++ consecutiveDays++ });++ } catch (error) {++ console.error('获取签到日历数据失败:', error);++ } finally {++ setLoading(false);++ }++ };++++ // 签到++ const handleSignIn = async () => {++ // if (calendarData.todaySigned) {++ // message.warning(t('signIn.alreadySignedIn'));++ // return;++ // }++++ // 关闭当前弹窗++ setVisible(false);++++ // 跳转到 accounts 页面并传递参数表示需要打开发布弹窗++ const currentPath = window.location.pathname;++ if (currentPath === '/accounts' || currentPath.startsWith('/accounts/')) {++ // 如果已经在 accounts 页面,触发打开发布弹窗的事件++ window.dispatchEvent(new CustomEvent('openPublishDialog', {++ detail: { fromSignIn: true }++ }));++ } else {++ // 如果不在 accounts 页面,使用路由跳转并传递参数++ router.push('/accounts?openPublish=true&fromSignIn=true');++ }++ };++++ // 日历日期渲染++ const dateCellRender = (value: any) => {++ const dateStr = value.format('YYYY-MM-DD');++ const isSigned = calendarData.signedDates.includes(dateStr);++ const isToday = value.isSame(new Date(), 'day');++++ return (++ <div className={styles.calendarCell}>++ <div className={styles.dateContainer}>++ <span style={{ minHeight: '6px' }} className={`${styles.dateText} ${isToday ? styles.today : ''}`}>++ {isToday ? t('signIn.today') : ''}++ </span>++ <div className={`${styles.signInStatus} ${isSigned ? styles.signed : styles.notSigned}`}>++ {isSigned ? (++ <div className={styles.signedCircle} />++ ) : (++ <div className={styles.emptyCircle} />++ )}++ </div>++ </div>++ </div>++ );++ };++++ // 月份变化处理++ const onPanelChange = (value: any) => {++ setCurrentDate(value.toDate());++ };++++ // 监听月份变化,重新获取数据++ useEffect(() => {++ if (visible) {++ fetchCalendarData();++ }++ }, [currentYear, currentMonth, visible]);++++ return (++ <>++ <Button++ type="text"++ icon={<Image src={faya.src} alt="faya" style={{ width: 20, height: 'auto', marginTop: -5 }} preview={false}/>}++ onClick={() => setVisible(true)}++ className={`${styles.signInButton} ${className || ''}`}++ title={t('signIn.title')}++ />++++ <Modal++ title={++ <div className={styles.modalHeader}>++ <span>{t('signIn.title')}</span>++ <Button++ type="link"++ className={styles.pointsLink}++ onClick={() => {++ // 跳转到个人中心页面++ window.open('/profile', '_blank');++ }}++ >++ {t('signIn.myPoints')} >++ </Button>++ </div>++ }++ open={visible}++ onCancel={() => setVisible(false)}++ footer={null}++ width={600}++ className={styles.signInModal}++ >++ <div className={styles.calendarContainer}>++ <Calendar++ fullscreen={false}++ dateCellRender={dateCellRender}++ onPanelChange={onPanelChange}++ headerRender={({ value, onChange }) => {++ const year = value.year();++ const month = value.month() + 1;++ return (++ <div className={styles.calendarHeader}>++ <span>{year} / {month.toString().padStart(2, '0')}</span>++ </div>++ );++ }}++ />++++ <div className={styles.signInRules}>++ <h4>{t('signIn.rules')}:</h4>++ <ul>++ <li>{t('signIn.rules1')}</li>++ <li>{t('signIn.rules2')}</li>++ <li>{t('signIn.rules3')}</li>++ </ul>++ </div>++++ <div className={styles.signInInfo}>++ <div className={styles.infoItem}>++ <span>{t('signIn.consecutiveDays')}: {calendarData.consecutiveDays}</span>++ </div>++ <div className={styles.infoItem}>++ <span>{t('signIn.totalPoints')}: {userStore.userInfo?.score || 0}</span>++ </div>++ </div>++++ <Button++ type="primary"++ size="large"++ onClick={handleSignIn}++ // disabled={calendarData.todaySigned}++ className={styles.signInActionButton}++ block++ >++ {calendarData.todaySigned ? t('signIn.signedIn') : t('signIn.signIn')}++ </Button>++ </div>++ </Modal>++ </>++ );++};++++export default SignInCalendar;diff --cc project/aitoearn-web/src/components/VideoPreviewModal.tsxindex 00000000,00000000..478be55anew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/VideoPreviewModal.tsx@@@ -1,0 -1,0 +1,47 @@@++import { ForwardedRef, forwardRef, memo, useRef } from "react";++import { Modal } from "antd";++import { useTransClient } from "@/app/i18n/client";++++export interface IVideoPreviewModalRef {}++++export interface IVideoPreviewModalProps {++ open: boolean;++ videoUrl?: string;++ onCancel: () => void;++}++++const VideoPreviewModal = memo(++ forwardRef(++ (++ { open, videoUrl, onCancel }: IVideoPreviewModalProps,++ ref: ForwardedRef<IVideoPreviewModalRef>,++ ) => {++ const videoRef = useRef<HTMLVideoElement>(null);++ const { t } = useTransClient("publish");++++ return (++ <Modal++ title={t("previewvideo")}++ open={open}++ footer={null}++ onCancel={() => {++ if (videoRef.current) {++ videoRef.current.pause();++ }++ onCancel();++ }}++ width={720}++ >++ <video++ ref={videoRef}++ controls++ style={{ width: "100%", maxHeight: "80vh" }}++ src={videoUrl}++ />++ </Modal>++ );++ },++ ),++);++++export default VideoPreviewModal;diff --cc project/aitoearn-web/src/components/WalletAccountSelect/index.tsxindex 00000000,00000000..d137927fnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/WalletAccountSelect/index.tsx@@@ -1,0 -1,0 +1,74 @@@++"use client";++++import { useEffect, useMemo, useState } from "react";++import { Select, Spin, Empty } from "antd";++import { getUserWalletAccountList, UserWalletAccount } from "@/api/userWalletAccount";++++type Props = {++ value?: string;++ onChange?: (val?: string) => void;++ pageSize?: number;++ disabled?: boolean;++};++++const { Option } = Select;++++export default function WalletAccountSelect(props: Props) {++ const { value, onChange, pageSize = 50, disabled } = props;++ const [loading, setLoading] = useState(false);++ const [list, setList] = useState<UserWalletAccount[]>([]);++ const [pageNo, setPageNo] = useState(1);++ const [total, setTotal] = useState(0);++++ const hasMore = useMemo(() => list.length < total, [list.length, total]);++++ useEffect(() => {++ fetchPage(1);++ // eslint-disable-next-line react-hooks/exhaustive-deps++ }, []);++++ async function fetchPage(nextPage: number) {++ setLoading(true);++ try {++ const res = await getUserWalletAccountList(nextPage, pageSize);++ if (res?.data) {++ const newList = nextPage === 1 ? (res.data.list || []) : [...list, ...(res.data.list || [])];++ setList(newList);++ setTotal(res.data.total || 0);++ setPageNo(nextPage);++ }++ } finally {++ setLoading(false);++ }++ }++++ function onPopupScroll(e: any) {++ const target = e.target;++ if (!loading && hasMore && target.scrollTop + target.offsetHeight + 24 >= target.scrollHeight) {++ fetchPage(pageNo + 1);++ }++ }++++ return (++ <Select++ showSearch++ placeholder="选择提现钱包账户"++ optionFilterProp="children"++ value={value}++ onChange={onChange}++ disabled={disabled}++ style={{ width: "100%" }}++ onPopupScroll={onPopupScroll}++ notFoundContent={loading ? <Spin size="small" /> : <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} description="暂无账户" />}++ filterOption={(input, option) => (option?.children as unknown as string)?.toLowerCase().includes(input.toLowerCase())}++ >++ {list.map((item) => (++ <Option key={item._id} value={item._id}>++ {item.userName || item.mail} · {item.type} · {item.account}++ </Option>++ ))}++ </Select>++ );++}++++diff --cc project/aitoearn-web/src/components/common/DownloadAppModal.tsxindex 00000000,00000000..1082c87cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/common/DownloadAppModal.tsx@@@ -1,0 -1,0 +1,188 @@@++import React, { useState } from 'react';++import { Modal, Button, Space, Typography, message } from 'antd';++import { DownloadOutlined, QrcodeOutlined, CopyOutlined, CheckOutlined } from '@ant-design/icons';++import { useTransClient } from '@/app/i18n/client';++import { MAIN_APP_DOWNLOAD_URL, getMainAppDownloadUrl } from '@/app/config/appDownloadConfig';++import logo from '@/assets/images/logo.png';++import { QRCode } from 'react-qrcode-logo';++++const { Text, Paragraph } = Typography;++++interface DownloadAppModalProps {++ visible: boolean;++ onClose: () => void;++ platform?: string; // 平台名称,如"小红书"++ appName?: string; // app名称++ downloadUrl?: string; // 下载链接++ qrCodeUrl?: string; // 二维码图片URL++ zIndex?: number; // 弹窗层级++}++++/**++ * 下载App提示弹窗组件++ * 用于提示用户下载对应的移动端应用++ */++const DownloadAppModal: React.FC<DownloadAppModalProps> = ({++ visible,++ onClose,++ platform = "",++ appName = "Aitoearn App",++ downloadUrl,++ qrCodeUrl = '',++ zIndex = 1000++}) => {++ const { t } = useTransClient("common");++ const [copySuccess, setCopySuccess] = useState(false);++++ const handleDownload = () => {++ const linkToOpen = downloadUrl || getMainAppDownloadUrl();++ window.open(linkToOpen, '_blank');++ };++++ const handleCopyLink = async () => {++ const linkToCopy = downloadUrl || getMainAppDownloadUrl();++ try {++ await navigator.clipboard.writeText(linkToCopy);++ setCopySuccess(true);++ message.success(t('downloadApp.copySuccess' as any));++ setTimeout(() => setCopySuccess(false), 2000);++ } catch (error) {++ message.error(t('downloadApp.copyFailed' as any));++ }++ };++++ return (++ <Modal++ title={++ <Space>++ <img src={logo.src} alt="Aitoearn" style={{ width: 20, height: 20, borderRadius: 4 }} />++ <span>Download Aitoearn App</span>++ </Space>++ }++ open={visible}++ onCancel={onClose}++ footer={[++ <Button key="close" onClick={onClose}>++ {t('downloadApp.close')}++ </Button>,++ <Button++ key="download"++ type="primary"++ icon={<DownloadOutlined />}++ onClick={handleDownload}++ >++ {t('downloadApp.downloadNow' as any)}++ </Button>++ ]}++ width={520}++ centered++ destroyOnHidden++ zIndex={zIndex}++ >++ <div style={{ textAlign: 'center', padding: '20px 0' }}>++ {/* App Logo */}++ <div style={{ marginBottom: '24px' }}>++ <img src={logo.src} alt="Aitoearn" style={{ width: 64, height: 64, borderRadius: 16, boxShadow: '0 4px 12px rgba(0,0,0,0.1)' }} />++ </div>++++ {/* 标题 */}++ <Typography.Title level={4} style={{ marginBottom: '16px', color: '#1f2937' }}>++ Aitoearn++ </Typography.Title>++++ {/* 描述 */}++ <Paragraph style={{ color: '#6b7280', marginBottom: '32px', fontSize: '14px', lineHeight: '1.6' }}>++ <span dangerouslySetInnerHTML={{ __html: t('downloadApp.operationDescription' as any, { platform }) }} />++ </Paragraph>++++ {/* 二维码区域 */}++ <div style={{++ marginBottom: '32px',++ padding: '20px',++ backgroundColor: '#f9fafb',++ borderRadius: '12px',++ border: '1px solid #e5e7eb'++ }}>++ {qrCodeUrl ? (++ <img++ src={qrCodeUrl}++ alt="QR Code"++ style={{++ width: 120,++ height: 120,++ borderRadius: '8px',++ boxShadow: '0 2px 8px rgba(0,0,0,0.1)'++ }}++ />++ ) : (++ <QRCode++ value={downloadUrl || getMainAppDownloadUrl()}++ size={120}++ logoImage={logo.src}++ logoWidth={30}++ logoHeight={30}++ logoOpacity={0.8}++ qrStyle="squares"++ eyeRadius={0}++ style={{ borderRadius: '8px' }}++ />++ )}++ </div>++++ {/* 下载链接区域 */}++ <div style={{++ marginBottom: '24px',++ padding: '16px',++ backgroundColor: '#f3f4f6',++ borderRadius: '8px',++ border: '1px solid #d1d5db'++ }}>++ <Text type="secondary" style={{ fontSize: '12px', display: 'block', marginBottom: '8px' }}>++ {t('downloadApp.downloadLink')}++ </Text>++ <div style={{++ display: 'flex',++ alignItems: 'center',++ justifyContent: 'space-between',++ gap: '8px'++ }}>++ <Text++ code++ style={{++ flex: 1,++ fontSize: '15px',++ wordBreak: 'break-all',++ textAlign: 'left',++++ }}++ >++ {downloadUrl || getMainAppDownloadUrl()}++ </Text>++ <Button++ size="small"++ icon={copySuccess ? <CheckOutlined /> : <CopyOutlined />}++ onClick={handleCopyLink}++ type={copySuccess ? "primary" : "default"}++ >++ {copySuccess ? t('downloadApp.copied' as any) : t('downloadApp.copy' as any)}++ </Button>++ </div>++ </div>++++ {/* 提示信息 */}++ <div style={{++ padding: '16px',++ backgroundColor: '#eff6ff',++ borderRadius: '8px',++ border: '1px solid #dbeafe'++ }}>++ <Text type="secondary" style={{ fontSize: '13px', color: '#1e40af' }}>++ {t('downloadApp.tip')}++ </Text>++ </div>++ </div>++ </Modal>++ );++};++++export default DownloadAppModal;diff --cc project/aitoearn-web/src/components/common/LanguageSwitcher.tsxindex 00000000,307dd0e8..307dd0e8mode 000000,100644..100644--- a/project/aitoearn-web/src/components/common/LanguageSwitcher.tsx+++ b/project/aitoearn-web/src/components/common/LanguageSwitcher.tsxdiff --cc project/aitoearn-web/src/components/common/index.tsindex 00000000,00000000..2c993189new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/common/index.ts@@@ -1,0 -1,0 +1,4 @@@++// 通用组件导出++export { default as DownloadAppModal } from './DownloadAppModal';++export { default as LanguageSwitcher } from './LanguageSwitcher';++diff --cc project/aitoearn-web/src/components/modals/PointsDetailModal.tsxindex 00000000,00000000..4273e878new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/modals/PointsDetailModal.tsx@@@ -1,0 -1,0 +1,176 @@@++"use client";++++import { memo, useEffect, useState } from "react";++import { Modal, Tabs, Spin, Popover } from "antd";++import { InfoCircleOutlined } from "@ant-design/icons";++import { useTransClient } from "@/app/i18n/client";++import styles from "./outsideCloseModal.module.css";++import { getPointsRecordsApi } from "@/api/apiReq";++import { useUserStore } from "@/store/user";++++interface PointsDetailModalProps {++ open: boolean;++ onClose: () => void;++}++++type PointsRecord = {++ _id: string;++ amount: number; // 正数获得 负数消耗++ type?: string;++ description?: string;++ createdAt: string | Date;++};++++const PointsDetailModal = memo(({ open, onClose }: PointsDetailModalProps) => {++ const [loading, setLoading] = useState(false);++ const [records, setRecords] = useState<PointsRecord[]>([]);++ const [activeKey, setActiveKey] = useState<string>('all');++ const { userInfo } = useUserStore();++ const { t } = useTransClient('vip');++++ // 辅助函数处理翻译++ const translate = (key: string) => t(key as any);++++ const fetchRecords = async () => {++ setLoading(true);++ try {++ const res: any = await getPointsRecordsApi({ page: 1, pageSize: 50 });++ const list = res?.data?.list || [];++ setRecords(list);++ } finally {++ setLoading(false);++ }++ };++++ useEffect(() => {++ if (open) fetchRecords();++ }, [open]);++++ const filtered = records.filter((r) => {++ if (activeKey === 'all') return true;++ if (activeKey === 'spend') return r.amount < 0;++ if (activeKey === 'earn') return r.amount > 0;++ return true;++ });++++ // 剩余积分以用户信息中的 score 为准++ const remain = Math.floor((userInfo?.score as number) || 0);++ const subscribed = 0;++ const recharged = records.filter(r => r.amount > 0 && (r as any).source === 'recharge').reduce((s, r) => s + r.amount, 0);++ const gifted = records.filter(r => r.amount > 0 && (r as any).source === 'gift').reduce((s, r) => s + r.amount, 0);++++ const endOfToday = (() => {++ const d = new Date();++ d.setHours(23, 59, 0, 0);++ return d.toLocaleString();++ })();++++ return (++ <Modal++ title={null}++ open={open}++ onCancel={onClose}++ footer={null}++ width={980}++ className={styles.outsideCloseModal}++ destroyOnHidden++ centered++ >++ <div style={{ background: '#fff', borderRadius: 12 }}>++ {/* 头部汇总 */}++ <div style={{ padding: '16px 20px 0 20px' }}>++ <h3 style={{ margin: 0, fontSize: 18, fontWeight: 700, color: '#0f172a' }}>{translate('points.title')}</h3>++ <div style={{ display: 'flex', alignItems: 'center', gap: 12, marginTop: 16, color: '#111827', flexWrap: 'wrap' }}>++ <div style={{ display: 'flex', alignItems: 'flex-start', gap: 8, flex: 1, justifyContent: 'center', flexDirection:'column' }}>++ <div style={{ fontSize: 12, color: '#6b7280' }}>{translate('points.remaining')}</div>++ <div style={{ fontWeight: 700 }}>{remain}</div>++ </div>++ <div style={{ color: '#6b7280' }}>=</div>++ <div style={{ display: 'flex', alignItems: 'center', gap: 8, flex: 1, justifyContent: 'center' , flexDirection:'column'}}>++ <div style={{ fontSize: 12, color: '#6b7280' }}>{translate('points.subscribed')}</div>++ <div style={{ fontWeight: 700 }}>{subscribed}</div>++ </div>++ <div style={{ color: '#6b7280' }}>+</div>++ <div style={{ display: 'flex', alignItems: 'center', gap: 8, flex: 1, justifyContent: 'center' , flexDirection:'column'}}>++ <div style={{ fontSize: 12, color: '#6b7280' }}>{translate('points.recharged')}</div>++ <div style={{ fontWeight: 700 }}>{recharged}</div>++ </div>++ <div style={{ color: '#6b7280' }}>+</div>++ <div style={{ display: 'flex', alignItems: 'flex-end', gap: 6, flex: 1 , justifyContent: 'flex-end', flexDirection:'column'}}>++ <div style={{ fontSize: 12, color: '#6b7280' }}>{translate('points.gifted')}</div>++ <div style={{ fontWeight: 700 }}>{gifted } ++ <Popover++ trigger="hover"++ placement="bottomRight"++ content={++ <div style={{ padding: 8 }}>++ <div style={{ border: '1px solid #eef2f7', borderRadius: 10, padding: 12, minWidth: 260 }}>++ <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 8 }}>++ <span style={{ color: '#6b7280' }}>{translate('points.remaining')}</span>++ <span style={{ fontWeight: 700 }}>{remain}</span>++ </div>++ <div style={{ display: 'flex', justifyContent: 'space-between' }}>++ <span style={{ color: '#6b7280' }}>{translate('points.validity')}</span>++ <span style={{ fontWeight: 700 }}>{endOfToday}</span>++ </div>++ </div>++ </div>++ }++ >++ <InfoCircleOutlined style={{ color: '#9ca3af' }} />++ </Popover>++ </div>++++ </div>++ </div>++ </div>++++ {/* Tabs */}++ <div style={{ padding: '12px 16px 0 16px' }}>++ <Tabs++ items={[++ { key: 'all', label: translate('points.tabs.all') },++ { key: 'spend', label: translate('points.tabs.spend') },++ { key: 'earn', label: translate('points.tabs.earn') },++ ]}++ activeKey={activeKey}++ onChange={setActiveKey}++ />++ </div>++++ {/* 列表 */}++ <div style={{ padding: '0 20px 16px 20px', minHeight: 550, maxHeight: '60vh', overflowY: 'auto' }}>++ <Spin spinning={loading}>++ {filtered.length === 0 ? (++ <div style={{ textAlign: 'center', padding: '60px 0', color: '#9ca3af' }}>{translate('points.noData')}</div>++ ) : (++ <div style={{ display: 'grid', gap: 12 }}>++ {filtered.map((r, index) => (++ <div key={r._id || `record-${index}`} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '12px 14px', border: '1px solid #eef2f7', borderRadius: 10 }}>++ <div>++ <div style={{ fontWeight: 600, color: '#111827' }}>++ {translate('points.recordChange')} - {r.type ? translate(`points.recordTypes.${r.type}`) : translate('points.recordChange')}++ </div>++ <div style={{ fontSize: 12, color: '#6b7280', marginTop: 4 }}>{new Date(r.createdAt).toLocaleString()}</div>++ </div>++ <div style={{ fontWeight: 700, color: r.amount >= 0 ? '#10b981' : '#ef4444' }}>++ {r.amount >= 0 ? `+${r.amount}` : r.amount}++ </div>++ </div>++ ))}++ </div>++ )}++ </Spin>++ </div>++++ <div style={{ padding: '8px 20px 16px 20px', color: '#9ca3af', fontSize: 12 }}>++ {translate('points.disclaimer')}++ </div>++ </div>++ </Modal>++ );++});++++export default PointsDetailModal;++++diff --cc project/aitoearn-web/src/components/modals/PointsRechargeModal.tsxindex 00000000,00000000..54ecd368new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/modals/PointsRechargeModal.tsx@@@ -1,0 -1,0 +1,172 @@@++"use client";++++import { memo, useEffect, useMemo, useRef, useState } from "react";++import { Modal, Button, InputNumber, Typography, Space, message } from "antd";++import { useTransClient } from "@/app/i18n/client";++import styles from "./outsideCloseModal.module.css";++import { createPaymentOrderApi, PaymentType } from "@/api/vip";++import { useUserStore } from "@/store/user";++++interface PointsRechargeModalProps {++ open: boolean;++ onClose: () => void;++}++++const PointsRechargeModal = memo(({ open, onClose }: PointsRechargeModalProps) => {++ const [rechargeAmount, setRechargeAmount] = useState<number>(8);++ const [buyLoading, setBuyLoading] = useState(false);++ const userStore = useUserStore();++ const { t } = useTransClient('vip');++ const modalWidth = useMemo(() => 520, []);++ const sliderTrackRef = useRef<HTMLDivElement | null>(null);++ const [dragging, setDragging] = useState(false);++++ // 辅助函数处理翻译++ const translate = (key: string) => t(key as any);++++ const amountToPercent = (amount: number) => ((amount - 1) / 49) * 100; // 1..50++ const percentToAmount = (percent: number) => {++ const clamped = Math.max(0, Math.min(100, percent));++ const val = 1 + Math.round((clamped / 100) * 49);++ return val;++ };++++ const handleSliderClick = (e: React.MouseEvent<HTMLDivElement>) => {++ const rect = (e.currentTarget as HTMLDivElement).getBoundingClientRect();++ const percent = ((e.clientX - rect.left) / rect.width) * 100;++ setRechargeAmount(percentToAmount(percent));++ };++++ const onMouseDownHandle = (e: React.MouseEvent<HTMLDivElement>) => {++ e.stopPropagation();++ setDragging(true);++ };++++ useEffect(() => {++ const onMove = (e: MouseEvent) => {++ if (!dragging || !sliderTrackRef.current) return;++ const rect = sliderTrackRef.current.getBoundingClientRect();++ const percent = ((e.clientX - rect.left) / rect.width) * 100;++ setRechargeAmount(percentToAmount(percent));++ };++ const onUp = () => setDragging(false);++ if (dragging) {++ document.addEventListener('mousemove', onMove);++ document.addEventListener('mouseup', onUp);++ }++ return () => {++ document.removeEventListener('mousemove', onMove);++ document.removeEventListener('mouseup', onUp);++ };++ }, [dragging]);++++ return (++ <Modal++ title={<span style={{fontWeight:700}}>{translate('recharge.title')}</span>}++ open={open}++ onCancel={onClose}++ footer={null}++ width={modalWidth}++ centered++ className={styles.outsideCloseModal}++ destroyOnHidden++ >++ <Space direction="vertical" size={16} style={{width:'100%'}}>++ <div style={{display:'flex', justifyContent:'space-between', alignItems:'center', marginTop:18}}>++ <span style={{color:'#6b7280'}}>{translate('recharge.current')}</span>++ <span style={{fontWeight:700}}>{Math.floor(userStore.userInfo?.score || 0)}</span>++ </div>++ <div>++ <Typography.Text type="secondary">{translate('recharge.price')}</Typography.Text>++ {/* Slider */}++ <div style={{ marginTop: 12 }}>++ <div++ ref={sliderTrackRef}++ onClick={handleSliderClick}++ style={{++ position: 'relative',++ height: 8,++ background: '#e5e7eb',++ borderRadius: 6,++ cursor: 'pointer'++ }}++ >++ <div++ style={{++ position: 'absolute',++ left: 0,++ top: 0,++ height: '100%',++ width: `${amountToPercent(rechargeAmount)}%`,++ background: '#a66ae4',++ borderRadius: 6++ }}++ />++ <div++ onMouseDown={onMouseDownHandle}++ style={{++ position: 'absolute',++ top: '50%',++ left: `calc(${amountToPercent(rechargeAmount)}% - 10px)`,++ width: 20,++ height: 20,++ background: '#ffffff',++ border: '2px solid #a66ae4',++ borderRadius: '50%',++ transform: 'translateY(-50%)',++ boxShadow: '0 1px 4px rgba(0,0,0,0.15)',++ cursor: 'grab'++ }}++ />++ </div>++ <div style={{ display:'flex', justifyContent:'space-between', fontSize:12, color:'#6b7280', marginTop:6 }}>++ <span>{translate('recharge.range').split('-')[0]}</span>++ <span>{translate('recharge.range').split('-')[1]}</span>++ </div>++ </div>++ <div style={{marginTop:28, display:'flex', alignItems:'center', gap:12}}>++ <InputNumber min={1} max={50} value={rechargeAmount} onChange={(v) => setRechargeAmount(Number(v) || 1)} />++ <span>* 1000 {translate('recharge.unit')}</span>++ </div>++ </div>++ <div style={{display:'flex', justifyContent:'space-between'}}>++ <span>{translate('recharge.amount')}</span>++ <span style={{fontWeight:700}}>{rechargeAmount * 1000}</span>++ </div>++ <div style={{display:'flex', justifyContent:'space-between'}}>++ <span>{translate('recharge.total')}</span>++ <span style={{fontWeight:700}}>${(rechargeAmount * 15).toFixed(2)}</span>++ </div>++ <Button type="primary" block loading={buyLoading} onClick={async () => {++ try {++ setBuyLoading(true);++ if (!userStore.userInfo?.id) {++ message.error(translate('pleaseLoginFirst'));++ return;++ }++ const res: any = await createPaymentOrderApi({++ mode: 'payment',++ payment: PaymentType.POINTS,++ metadata: { userId: userStore.userInfo.id },++ quantity: rechargeAmount,++ success_url: userStore.lang === 'zh-CN' ? '/zh-CN/profile' : '/en/profile'++ });++ if (res?.code === 0 && res.data?.url) {++ window.open(res.data.url, '_blank');++ } else {++ message.error(res?.message || res?.msg || translate('createPaymentOrderFailed'));++ }++ } catch (e) {++ message.error(translate('createPaymentOrderError'));++ } finally {++ setBuyLoading(false);++ }++ }}>{translate('recharge.buyNow')}</Button>++ </Space>++ </Modal>++ );++});++++export default PointsRechargeModal;++++diff --cc project/aitoearn-web/src/components/modals/SubscriptionManagementModal.tsxindex 00000000,00000000..0e82f373new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/modals/SubscriptionManagementModal.tsx@@@ -1,0 -1,0 +1,571 @@@++"use client";++++import { memo, useState, useEffect } from "react";++import { Modal, Tabs, Table, Card, Button, Tag, Descriptions, message } from "antd";++import { useTransClient } from "@/app/i18n/client";++import { useUserStore } from "@/store/user";++import {++ getOrderListApi,++ getSubscriptionListApi,++ getOrderDetailApi,++ refundOrderApi,++ unsubscribeApi++} from "@/api/payment";++import { Order, OrderListParams, SubscriptionListParams, RefundParams, UnsubscribeParams, OrderStatus, PaymentType } from "@/api/types/payment";++import styles from "./subscriptionManagementModal.module.css";++++import Image from "next/image";++import plusvip from "@/assets/images/plusvip.png";++++const { TabPane } = Tabs;++++interface SubscriptionManagementModalProps {++ open: boolean;++ onClose: () => void;++}++++const SubscriptionManagementModal = memo(({ open, onClose }: SubscriptionManagementModalProps) => {++ const { t: tProfile } = useTransClient('profile');++ const { t: tVip } = useTransClient('vip');++ const { userInfo } = useUserStore();++++ // 状态判断辅助函数++ const getVipStatusInfo = (status: string) => {++ switch (status) {++ case 'none':++ return { isVip: false, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ case 'trialing':++ return { isVip: true, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ case 'monthly_once':++ return { isVip: true, isMonthly: true, isYearly: false, isAutoRenew: false, isOnce: true };++ case 'yearly_once':++ return { isVip: true, isMonthly: false, isYearly: true, isAutoRenew: false, isOnce: true };++ case 'active_monthly':++ return { isVip: true, isMonthly: true, isYearly: false, isAutoRenew: true, isOnce: false };++ case 'active_yearly':++ return { isVip: true, isMonthly: false, isYearly: true, isAutoRenew: true, isOnce: false };++ case 'active_nonrenewing':++ return { isVip: true, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ case 'expired':++ return { isVip: false, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ default:++ return { isVip: false, isMonthly: false, isYearly: false, isAutoRenew: false, isOnce: false };++ }++ };++++ // 订单相关状态++ const [orders, setOrders] = useState<Order[]>([]);++ const [subscriptions, setSubscriptions] = useState<Order[]>([]);++ const [ordersLoading, setOrdersLoading] = useState(false);++ const [subscriptionsLoading, setSubscriptionsLoading] = useState(false);++ const [ordersPagination, setOrdersPagination] = useState({++ current: 1,++ pageSize: 10,++ total: 0++ });++ const [subscriptionsPagination, setSubscriptionsPagination] = useState({++ current: 1,++ pageSize: 10,++ total: 0++ });++++ // 订单详情弹窗状态++ const [orderDetailVisible, setOrderDetailVisible] = useState(false);++ const [orderDetailLoading, setOrderDetailLoading] = useState(false);++ const [currentOrderDetail, setCurrentOrderDetail] = useState<Order | null>(null);++++ // 获取购买记录++ const fetchOrders = async (params: OrderListParams) => {++ setOrdersLoading(true);++ try {++ const response = await getOrderListApi(params);++ if (response?.code === 0 && response.data) {++ setOrders((response.data as any).list || []);++ setOrdersPagination({++ current: params.page + 1,++ pageSize: params.size,++ total: (response.data as any).count || 0++ });++ }++ } catch (error) {++ console.error('获取订单列表失败:', error);++ } finally {++ setOrdersLoading(false);++ }++ };++++ // 获取订阅列表++ const fetchSubscriptions = async (params: SubscriptionListParams) => {++ setSubscriptionsLoading(true);++ try {++ const response:any = await getSubscriptionListApi(params);++ if (response?.code === 0 && response.data) {++ setSubscriptions((response.data as any).list || []);++ setSubscriptionsPagination({++ current: params.page + 1,++ pageSize: params.size,++ total: (response.data as any).count || 0++ });++ }++ } catch (error) {++ console.error('获取订阅列表失败:', error);++ } finally {++ setSubscriptionsLoading(false);++ }++ };++++ // 处理退款++ const handleRefund = async (order: Order) => {++ try {++ const params: RefundParams = {++ charge: order.id,++ payment_intent: order.payment_intent || order.id,++ userId: userInfo?.id || ''++ };++ const response = await refundOrderApi(params);++ if (response?.code === 0) {++ message.success(tProfile('refundSubmitted'));++ fetchOrders({ page: ordersPagination.current - 1, size: ordersPagination.pageSize });++ } else {++ message.error(response?.message || tProfile('refundFailed'));++ }++ } catch (error) {++ console.error('退款失败:', error);++ message.error(tProfile('refundFailed'));++ }++ };++++ // 处理退订++ const handleUnsubscribe = async (order: Order) => {++ try {++ const params: UnsubscribeParams = {++ id: order.id,++ userId: userInfo?.id || ''++ };++ const response = await unsubscribeApi(params);++ if (response?.code === 0) {++ message.success(tProfile('unsubscribeSuccess'));++ fetchSubscriptions({ page: subscriptionsPagination.current - 1, size: subscriptionsPagination.pageSize });++ }++ } catch (error) {++ console.error('退订失败:', error);++ }++ };++++ // 获取订单详情++ const fetchOrderDetail = async (orderId: string) => {++ setOrderDetailLoading(true);++ try {++ const response: any = await getOrderDetailApi(orderId);++ if (response?.code === 0 && response.data) {++ setCurrentOrderDetail(response.data[0]);++ setOrderDetailVisible(true);++ } else {++ message.error(tProfile('getOrderDetailFailed'));++ }++ } catch (error) {++ console.error('获取订单详情失败:', error);++ message.error(tProfile('getOrderDetailFailed'));++ } finally {++ setOrderDetailLoading(false);++ }++ };++++ // 订单状态标签++ const getOrderStatusTag = (status: OrderStatus) => {++ const statusMap = {++ [OrderStatus.SUCCEEDED]: { color: 'green', text: tProfile('paymentSuccess') },++ [OrderStatus.CREATED]: { color: 'orange', text: tProfile('waitingForPayment') },++ [OrderStatus.REFUNDED]: { color: 'purple', text: tProfile('refundSuccess') },++ [OrderStatus.EXPIRED]: { color: 'red', text: tProfile('orderCancelled') }++ };++ const config = statusMap[status] || { color: 'default', text: `${tProfile('status')}${status}` };++ return <Tag color={config.color}>{config.text}</Tag>;++ };++++ // 支付类型文本++ const getPaymentTypeText = (paymentType: string) => {++ const typeMap: any = {++ [PaymentType.ONCE_MONTH]: tProfile('oneTimeMonthly'),++ [PaymentType.MONTH]: tProfile('monthlySubscription'),++ [PaymentType.YEAR]: tProfile('yearlySubscription')++ };++ return typeMap[paymentType as PaymentType] || paymentType || tProfile('unknown');++ };++++++ // 弹窗打开时加载数据++ useEffect(() => {++ if (open) {++ fetchOrders({ page: 0, size: 10 });++ fetchSubscriptions({ page: 0, size: 10 });++++ }++ }, [open]);++++++ return (++ <>++ <Modal++ title={tVip('subscriptionManagement' as any)}++ open={open}++ onCancel={onClose}++ footer={null}++ width={1000}++++ className={styles.subscriptionModal}++ destroyOnHidden++ centered++ >++ <div className={styles.modalContent}>++ <Tabs defaultActiveKey="subscriptions">++ <TabPane tab={tVip('subscriptionPlanManagement' as any)} key="subscriptions">++ <div className={styles.myMembership}>++ <h3>{tVip('myMembership' as any)}</h3>++ <div className={styles.membershipCard}>++ <div className={styles.membershipInfo}>++ <div className={styles.membershipIcon}>++ <Image src={plusvip} alt="plusvip" style={{ width: 28, height: 'auto', marginTop: -5 }}/>++ </div>++ <div className={styles.membershipDetails}>++ <div className={styles.membershipName}>++ {(() => {++ if (!userInfo?.vipInfo) return tVip('modal.vipInfo.monthly' as any);++ const statusInfo = getVipStatusInfo(userInfo.vipInfo.status);++ if (statusInfo.isYearly && statusInfo.isAutoRenew) {++ return tVip('modal.vipInfo.yearly' as any);++ } else if (statusInfo.isYearly && !statusInfo.isAutoRenew) {++ return tVip('modal.vipInfo.yearly' as any) + ` (${tVip('modal.vipInfo.singleMonth' as any)})`;++ } else if (statusInfo.isMonthly && statusInfo.isAutoRenew) {++ return tVip('modal.vipInfo.monthly' as any);++ } else if (statusInfo.isMonthly && !statusInfo.isAutoRenew) {++ return tVip('modal.vipInfo.monthly' as any) + ` (${tVip('modal.vipInfo.singleMonth' as any)})`;++ } else if (statusInfo.isOnce) {++ return statusInfo.isYearly ? tVip('modal.vipInfo.yearly' as any) + ` (${tVip('modal.vipInfo.singleMonth' as any)})` : tVip('modal.vipInfo.monthly' as any) + ` (${tVip('modal.vipInfo.singleMonth' as any)})`;++ } else if (userInfo.vipInfo.status === 'trialing') {++ return tVip('modal.vipInfo.monthly' as any) + ` (${tVip('modal.vipInfo.trial' as any)})`;++ } else if (userInfo.vipInfo.status === 'active_nonrenewing') {++ return tVip('modal.vipInfo.cancelled' as any);++ }++ return tVip('modal.vipInfo.monthly' as any);++ })()}++ </div>++ <div>++++++ <div className={styles.membershipExpire}>++ {++ tVip('membershipExpires' as any)++ }++ </div>++ <div className={styles.membershipStatus}>++ {userInfo?.vipInfo?.expireTime ? new Date(userInfo.vipInfo.expireTime).toLocaleString('zh-CN', {++ year: 'numeric',++ month: '2-digit',++ day: '2-digit',++ hour: '2-digit',++ minute: '2-digit'++ }) : '2025-09-29 15:04'}++ </div>++ </div>++ </div>++ </div>++ </div>++++ {/* 根据 autoContinue 显示不同的内容 */}++ <div className={styles.autoRenewal}>++++ {++ subscriptions.length ?(++ <div className={styles.subscriptionCards}>++ {subscriptions.map((subscription) => (++ <div key={subscription._id} className={styles.subscriptionCard}>++ <div className={styles.subscriptionHeader}>++ <div className={styles.subscriptionTitle}>{tVip('basicMembership' as any)}</div>++ </div>++ <div className={styles.subscriptionDetails}>++ <div className={styles.subscriptionDetailItem}>++ <span className={styles.detailLabel}>{tProfile('subscriptionMode')}:</span>++ <span className={styles.detailValue}>++ {/* {subscription.metadata?.payment === 'month'++ ? tVip('modal.vipInfo.monthly' as any)++ : tVip('modal.vipInfo.yearly' as any)} */}++ {++ getPaymentTypeText(subscription.metadata?.payment)++ }++ </span>++ </div>++ {++ subscription.amount && (++ <div className={styles.subscriptionDetailItem}>++ <span className={styles.detailLabel}>{tProfile('amount')}:</span>++ <span className={styles.detailValue}>++ {subscription.currency}++ {(subscription.amount / 100).toFixed(2)}</span>++ </div>++ )++ }++ <div className={styles.subscriptionDetailItem}>++ <span className={styles.detailLabel}>{tProfile('createTime')}:</span>++ <span className={styles.detailValue}>++ {new Date(subscription.created * 1000).toLocaleString('zh-CN', {++ year: 'numeric',++ month: '2-digit',++ day: '2-digit',++ hour: '2-digit',++ minute: '2-digit'++ })}++ </span>++ </div>++ <div className={styles.subscriptionDetailItem}>++ <span className={styles.detailLabel}>{tProfile('subscriptionId')}:</span>++ <span className={styles.detailValue}>++ {subscription.id}++ <Button++ type="text"++ size="small"++ className={styles.copyBtn}++ onClick={() => {++ navigator.clipboard.writeText(subscription.id);++ message.success(tProfile('copySuccess'));++ }}++ >++ 📋++ </Button>++ </span>++ </div>++ <div className={styles.subscriptionDetailItem}>++ <span className={styles.detailLabel}>{tProfile('status')}:</span>++ <span className={styles.detailValue}>++ {subscription.status === 1 ? (++ <Tag color="green" style={{marginRight: 0,marginLeft: 6}}>{tProfile('subscriptionSuccess')}</Tag>++ ) : subscription.status === 2 ? (++ <Tag color="red" style={{marginRight: 0,marginLeft: 6}}>{tProfile('subscriptionCancelled')}</Tag>++ ) : subscription.status === 3 ? (++ <Tag color="purple" style={{marginRight: 0,marginLeft: 6}}>{tProfile('refundSuccess')}</Tag>++ ) : (++ <Tag color="orange" style={{marginRight: 0,marginLeft: 6}}>{tProfile('orderCancelled')}</Tag>++ )}++ </span>++ </div>++ <div className={styles.subscriptionDetailItem}>++ <span className={styles.detailLabel}>{tProfile('actions')}:</span>++ <span className={styles.detailValue}>++ {subscription.status === 1 && (++ <Button++ size="small"++ danger++ style={{fontSize: 12}}++ onClick={() => handleUnsubscribe(subscription)}++ >++ {tProfile('cancelSubscription')}++ </Button>++ )}++ </span>++ </div>++ </div>++ </div>++ ))}++ {subscriptionsPagination.total > subscriptionsPagination.pageSize ? (++ <div className={styles.paginationContainer}>++ <Button++ disabled={subscriptionsPagination.current === 1}++ onClick={() => fetchSubscriptions({++ page: subscriptionsPagination.current - 2,++ size: subscriptionsPagination.pageSize++ })}++ >++ {tVip('previousPage' as any)}++ </Button>++ <span className={styles.paginationInfo}>++ {tVip('pageInfo' as any).replace('{current}', subscriptionsPagination.current.toString()).replace('{total}', Math.ceil(subscriptionsPagination.total / subscriptionsPagination.pageSize).toString())}++ </span>++ <Button++ disabled={subscriptionsPagination.current >= Math.ceil(subscriptionsPagination.total / subscriptionsPagination.pageSize)}++ onClick={() => fetchSubscriptions({++ page: subscriptionsPagination.current,++ size: subscriptionsPagination.pageSize++ })}++ >++ {tVip('nextPage' as any)}++ </Button>++ </div>++ ) : (++ <div className={styles.noMoreContent}>++ <p>{tVip('noMoreContent' as any)}</p>++ </div>++ )}++ </div>++ ) : (++ <div className={styles.emptyState}>++ <p style={{marginBottom: 20}}>{tVip('noAutoRenewalItems' as any)}</p>++ <Button className={styles.viewMoreBtn}>{tVip('viewMorePlans' as any)}</Button>++ </div>++ )++ }++++++ </div>++++++ </div>++++++ </TabPane>++++ <TabPane tab={tVip('purchaseHistory' as any)} key="orders">++ <div className={styles.purchaseHistory}>++ {ordersLoading ? (++ <div className={styles.loadingContainer}>++ <div className={styles.loadingText}>{tProfile('loading')}</div>++ </div>++ ) : orders.length > 0 ? (++ <div className={styles.orderCards}>++ {orders.map((order) => (++ <div key={order._id} className={styles.orderCard}>++ <div className={styles.orderHeader}>++ <div className={styles.orderTitle}>++ {++ getPaymentTypeText(order.metadata?.payment)++ }++ </div>++ </div>++ <div className={styles.orderDetails}>++ <div className={styles.orderDetailItem}>++ <span className={styles.detailLabel}>{tProfile('subscriptionMode')}:</span>++ <span className={styles.detailValue}>++ {/* {order.mode === 'subscription' ? tVip('continuousAnnual' as any) : tVip('oneTimePurchase' as any)} */}++ {++ getPaymentTypeText(order.metadata?.payment)++ }++ </span>++ </div>++ <div className={styles.orderDetailItem}>++ <span className={styles.detailLabel}>{tProfile('amount')}:</span>++ <span className={styles.detailValue}>++ { (order.amount / 100).toFixed(2) } ++ { order.currency }++ </span>++++ </div>++ <div className={styles.orderDetailItem}>++ <span className={styles.detailLabel}>{tProfile('createTime')}:</span>++ <span className={styles.detailValue}>++ {new Date(order.created * 1000).toLocaleString('zh-CN', {++ year: 'numeric',++ month: '2-digit',++ day: '2-digit',++ hour: '2-digit',++ minute: '2-digit'++ })}++ </span>++ </div>++ <div className={styles.orderDetailItem}>++ <span className={styles.detailLabel}>{tProfile('orderId')}:</span>++ <span className={styles.detailValue}>++ {order.id}++ <Button++ type="text"++ size="small"++ className={styles.copyBtn}++ onClick={() => {++ navigator.clipboard.writeText(order.id);++ message.success(tProfile('copySuccess'));++ }}++ >++ 📋++ </Button>++ </span>++ </div>++ <div className={styles.orderDetailItem}>++ <span className={styles.detailLabel}>{tProfile('paymentMethod' as any)}:</span>++ <span className={styles.detailValue}>++ {(order as any).payment_method || tVip('alipayPayment' as any)}++ </span>++ </div>++ </div>++ </div>++ ))}++ {ordersPagination.total > ordersPagination.pageSize ? (++ <div className={styles.paginationContainer}>++ <Button++ disabled={ordersPagination.current === 1}++ onClick={() => fetchOrders({++ page: ordersPagination.current - 2,++ size: ordersPagination.pageSize++ })}++ >++ {tVip('previousPage' as any)}++ </Button>++ <span className={styles.paginationInfo}>++ {tVip('pageInfo' as any).replace('{current}', ordersPagination.current.toString()).replace('{total}', Math.ceil(ordersPagination.total / ordersPagination.pageSize).toString())}++ </span>++ <Button++ disabled={ordersPagination.current >= Math.ceil(ordersPagination.total / ordersPagination.pageSize)}++ onClick={() => fetchOrders({++ page: ordersPagination.current,++ size: ordersPagination.pageSize++ })}++ >++ {tVip('nextPage' as any)}++ </Button>++ </div>++ ) : (++ <div className={styles.noMoreContent}>++ <p>{tVip('noMoreContent' as any)}</p>++ </div>++ )}++ </div>++ ) : (++ <div className={styles.emptyState}>++ <p>{tProfile('noOrderRecords')}</p>++ </div>++ )}++ </div>++ </TabPane>++ </Tabs>++ </div>++ </Modal>++++ {/* 订单详情弹窗 */}++ <Modal++ title={tProfile('orderDetails')}++ open={orderDetailVisible}++ onCancel={() => setOrderDetailVisible(false)}++ className={styles.orderDetailModal}++ footer={[++ <Button key="close" onClick={() => setOrderDetailVisible(false)}>++ {tProfile('close')}++ </Button>++ ]}++ width={600}++ loading={orderDetailLoading}++ >++ {currentOrderDetail && (++ <Descriptions bordered column={1} size="small">++ <Descriptions.Item label={tProfile('orderId')}>{currentOrderDetail.id}</Descriptions.Item>++ <Descriptions.Item label={tProfile('internalId')}>{currentOrderDetail._id}</Descriptions.Item>++ <Descriptions.Item label={tProfile('packageType')}>++ {getPaymentTypeText(currentOrderDetail.metadata?.payment)}++ </Descriptions.Item>++ <Descriptions.Item label={tProfile('subscriptionMode')}>{currentOrderDetail.mode}</Descriptions.Item>++ <Descriptions.Item label={tProfile('amount')}>++ ¥{(currentOrderDetail.amount / 100).toFixed(2)}++ </Descriptions.Item>++ <Descriptions.Item label={tProfile('status')}>++ {getOrderStatusTag(currentOrderDetail.status)}++ </Descriptions.Item>++ <Descriptions.Item label={tProfile('createTime')}>++ {new Date(currentOrderDetail.created * 1000).toLocaleString()}++ </Descriptions.Item>++ <Descriptions.Item label={tProfile('paymentMethod' as any)}>++ {(currentOrderDetail as any).payment_method || tProfile('unknown')}++ </Descriptions.Item>++ </Descriptions>++ )}++ </Modal>++ </>++ );++});++++export default SubscriptionManagementModal;diff --cc project/aitoearn-web/src/components/modals/VipContentModal.tsxindex 00000000,1e2f3b84..1e2f3b84mode 000000,100644..100644--- a/project/aitoearn-web/src/components/modals/VipContentModal.tsx+++ b/project/aitoearn-web/src/components/modals/VipContentModal.tsxdiff --cc project/aitoearn-web/src/components/modals/outsideCloseModal.module.cssindex 00000000,00000000..a9455087new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/modals/outsideCloseModal.module.css@@@ -1,0 -1,0 +1,23 @@@++.outsideCloseModal :global(.ant-modal-close) {++ position: absolute;++ top: -12px;++ right: -12px;++ background: #fff;++ border-radius: 50%;++ box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);++ width: 28px;++ height: 28px;++ display: flex;++ align-items: center;++ justify-content: center;++}++++.outsideCloseModal :global(.ant-modal-close-x) {++ line-height: 1;++}++++.outsideCloseModal :global(.ant-modal-content) {++ border-radius: 14px;++}++++diff --cc project/aitoearn-web/src/components/modals/subscriptionManagementModal.module.cssindex 00000000,3c986eab..3c986eabmode 000000,100644..100644--- a/project/aitoearn-web/src/components/modals/subscriptionManagementModal.module.css+++ b/project/aitoearn-web/src/components/modals/subscriptionManagementModal.module.cssdiff --cc project/aitoearn-web/src/components/modals/vipContentModal.module.cssindex 00000000,00000000..f1e1c189new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/modals/vipContentModal.module.css@@@ -1,0 -1,0 +1,301 @@@++.wrapper {++ background: #ffffff;++}++++.header {++ display: flex;++ align-items: center;++ justify-content: center;++ padding: 20px 24px 12px 24px;++ border-bottom: 1px solid #f0f0f0;++ position: relative;++}++++.titleBlock {++ display: flex;++ flex-direction: column;++ gap: 8px;++}++++.title {++ margin: 0;++ font-size: 28px;++ font-weight: 800;++ color: #0f172a;++}++++.highlight {++ background: linear-gradient(90deg, #1fb4ff 0%, #5b7cff 40%, #6d4cff 100%);++ -webkit-background-clip: text;++ background-clip: text;++ color: transparent;++}++++.subtitle {++ font-size: 13px;++ color: #6b7280;++}++++.links {++ display: flex;++ gap: 12px;++ font-size: 13px;++ justify-content: center;++}++++.linkButton {++ color: #2563eb;++ cursor: pointer;++}++++.headerRight {++ position: absolute;++ right: 28px;++}++++.pointsBtn {++ height: 32px;++ border-radius: 16px;++}++++.content {++ padding: 16px 24px 24px 24px;++}++++/* New exact-layout styles */++.switchRow {++ display: flex;++ justify-content: center;++ gap: 12px;++ padding: 12px 24px 20px 24px;++}++++.switchBtn {++ background: #ffffff;++ color: #374151;++ border-radius: 10px;++ padding: 8px 16px;++ cursor: pointer;++ border: 1px solid #e5e7eb;++ box-shadow: 0 1px 2px rgba(0,0,0,0.04);++}++++.outsideCloseModal{++ max-width: 1000px;++}++++.active {++ background: #a66ae4;++ border-color: #a66ae4;++ color: #ffffff;++}++++.grid {++ margin-top: 18px;++ display: grid;++ grid-template-columns: repeat(2, 1fr);++ gap: 24px;++ padding: 0 24px 24px 24px;++}++++.freeCard {++ background: #ffffff;++ color: #111827;++ border-radius: 12px;++ padding: 24px;++ border: 1px solid #eef2f7;++ box-shadow: 0 1px 2px rgba(0,0,0,0.04);++}++.freeTitle { font-weight: 700; margin-bottom: 12px; color:#111827; }++.freePrice { font-size: 36px; font-weight: 800; margin: 12px 0; color:#111827; }++.freePrice span { font-size: 18px; }++.unit { margin-left: 6px; font-size: 14px; color: #6b7280; }++.freeForever { color: #6b7280; margin-bottom: 16px; }++.freeBtn { width: 100%; margin-bottom: 16px; }++.freeItem { font-size: 12px; color: #6b7280; }++++.planCard {++ background: #ffffff;++ color: #111827;++ border-radius: 12px;++ padding: 24px;++ position: relative;++ border: 1px solid #eef2f7;++ box-shadow: 0 1px 2px rgba(0,0,0,0.04);++}++++.premium { box-shadow: 0 0 0 1px rgba(166,106,228,0.4), 0 0 30px rgba(166,106,228,0.25) inset; min-height: 530px; }++++.planHead { font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; color:#111827; }++.planPriceLine { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 10px; }++.currency { font-size: 18px; }++.bigNum { font-size: 44px; font-weight: 800; color: #111827; }++.planDesc { font-size: 12px; color: #6b7280; margin-bottom: 12px; line-height: 1.6; }++++++++.primaryBtn { width: 100%; background: linear-gradient(92deg,#66e9ff,#b5e9fd 34.5%,#a396ff 66.5%,#a66ae4) !important; border-color: #a66ae4; color: #ffffff; font-weight: 600 !important; margin-bottom: 16px; }++.primaryBtn:hover { background: #9556d1; border-color: #9556d1; }++++.benefitBox { background: #f8f4ff; border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; color: #7c3aed; margin-bottom: 8px; }++.dot { width: 8px; height: 8px; background: #a66ae4; border-radius: 50%; display: inline-block; }++.subDesc { font-size: 12px; color: #6b7280; margin-bottom: 12px; }++.featureList { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #374151; font-size: 13px; }++++/* 会员信息区域样式 */++.vipInfoSection {++ border-radius: 12px;++ margin: 20px 24px;++ padding: 20px;++ background: aliceblue;++}++++.vipInfoRow {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 16px;++}++++.userInfo {++ display: flex;++ align-items: center;++ gap: 12px;++}++++.avatar {++ width: 48px;++ height: 48px;++ border-radius: 50%;++ overflow: hidden;++ background: #e5e7eb;++ display: flex;++ align-items: center;++ justify-content: center;++}++++.avatar img {++ width: 100%;++ height: 100%;++ object-fit: cover;++}++++.defaultAvatar {++ width: 100%;++ height: 100%;++ background: linear-gradient(135deg, #a66ae4 0%, #5b7cff 100%);++ color: white;++ display: flex;++ align-items: center;++ justify-content: center;++ font-weight: 700;++ font-size: 18px;++}++++.userDetails {++ display: flex;++ flex-direction: column;++ gap: 4px;++}++++.userName {++ font-weight: 600;++ font-size: 16px;++ color: #111827;++}++++.userEmail {++ font-size: 14px;++ color: #6b7280;++}++++.vipActions {++ display: flex;++ gap: 28px;++}++++.detailBtn {++ height: 32px;++ border-radius: 6px;++ font-size: 13px;++ border: 1px solid #d1d5db;++ color: #374151;++ background: white;++}++++.subscriptionBtn {++ height: 32px;++ border-radius: 6px;++ font-size: 13px;++ background: #a66ae4;++ border-color: #a66ae4;++ color: white;++}++++.vipPlanInfo {++ display: flex;++ justify-content: space-between;++ align-items: center;++ padding-bottom: 16px;++ border-radius: 8px;++}++++.planDetails {++ display: flex;++ flex-direction: row;++ gap: 88px;++}++++.planType, .expireTime {++ font-size: 14px;++ color: #374151;++ display: flex;++ flex-direction: column;++ gap: 8px;++}++++.planValue, .expireValue {++ color: #111827;++}++++.expireValueHover {++ color: #a66ae4;++ cursor: pointer;++}++++.pointsInfo {++ display: flex;++ align-items: center;++ gap: 16px;++}++++.remainingPoints {++ font-size: 14px;++ color: #374151;++ display: flex;++ align-items: center;++ gap: 8px;++}++++.pointsValue {++ font-weight: 600;++ color: #a66ae4;++ font-size: 16px;++}++++.buyPointsBtn {++ height: 32px;++ border-radius: 6px;++ font-size: 13px;++ background: #10b981;++ border-color: #10b981;++ color: white;++ font-weight: 600;++}++++.buyPointsBtn:hover {++ background: #059669;++ border-color: #059669;++}++++diff --cc project/aitoearn-web/src/components/notification/NotificationPanel.module.scssindex 00000000,00000000..bb8bd437new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/notification/NotificationPanel.module.scss@@@ -1,0 -1,0 +1,158 @@@++.notificationItem {++ padding: 16px;++ padding-left: 10px !important;++ border-bottom: 1px solid #f0f0f0;++ cursor: pointer;++ transition: all 0.3s ease;++ border-radius: 8px;++ margin-bottom: 8px;++ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);++++ &:hover {++ background-color: #f8f9fa;++ transform: translateY(-1px);++ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);++ }++++ &.unread {++ background: linear-gradient(135deg, #f6ffed 0%, #e6f7ff 100%);++ position: relative;++++++ }++}++++.notificationTitle {++ display: flex;++ align-items: center;++ gap: 8px;++ font-weight: 600;++ font-size: 16px;++ color: #262626;++ margin-bottom: 8px;++}++++.notificationContent {++ width: 100%;++}++++.notificationMeta {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 12px;++ font-size: 13px;++++ .time {++ color: #8c8c8c;++ display: flex;++ align-items: center;++ font-size: 12px;++ }++}++++.content {++ color: #595959;++ line-height: 1.6;++ margin-bottom: 12px;++ font-size: 14px;++ background: #fff;++ padding: 12px;++ border-radius: 6px;++ border-left: 3px solid #d9d9d9;++}++++.actions {++ display: flex;++ justify-content: flex-end;++ gap: 8px;++}++++.notificationDetail {++ h3 {++ margin-bottom: 20px;++ color: #262626;++ font-size: 18px;++ font-weight: 600;++ border-bottom: 2px solid #f0f0f0;++ padding-bottom: 12px;++ }++++ .meta {++ display: flex;++ justify-content: space-between;++ margin-bottom: 20px;++ padding: 16px;++ background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);++ border-radius: 8px;++ font-size: 14px;++ color: #666;++ border: 1px solid #e9ecef;++ }++++ .content {++ line-height: 1.8;++ color: #595959;++ white-space: pre-wrap;++ background: #fafafa;++ padding: 20px;++ border-radius: 8px;++ border: 1px solid #f0f0f0;++ font-size: 15px;++ }++}++++.taskDetail {++ margin-top: 24px;++ padding-top: 24px;++ border-top: 1px solid #f0f0f0;++}++++.taskInfo {++ background: #f8f9fa;++ border-radius: 8px;++ padding: 16px;++ border: 1px solid #e9ecef;++}++++.taskHeader {++ display: flex;++ justify-content: space-between;++ align-items: center;++ margin-bottom: 16px;++ padding-bottom: 12px;++ border-bottom: 1px solid #e9ecef;++++ h5 {++ margin: 0;++ font-size: 16px;++ font-weight: 600;++ color: #262626;++ }++}++++.taskContent {++ p {++ margin-bottom: 8px;++ line-height: 1.6;++ color: #595959;++++ strong {++ color: #262626;++ margin-right: 8px;++ }++ }++++ div {++ margin-bottom: 8px;++ line-height: 1.6;++ color: #595959;++ }++}++++.taskActions {++ margin-top: 16px;++ padding-top: 16px;++ border-top: 1px solid #e9ecef;++ text-align: center;++}diff --cc project/aitoearn-web/src/components/notification/NotificationPanel.tsxindex 00000000,00000000..b730dec4new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/components/notification/NotificationPanel.tsx@@@ -1,0 -1,0 +1,1322 @@@++"use client";++++import React, { useState, useEffect } from "react";++import { Badge, Button, List, Modal, message, Spin, Empty, Popconfirm, Tooltip, Tag, Steps } from "antd";++import { CheckOutlined, DeleteOutlined, EyeOutlined, ClockCircleOutlined } from "@ant-design/icons";++import { useTransClient } from "@/app/i18n/client";++import { useUserStore } from "@/store/user";++import {++ getNotificationList,++ getNotificationDetail,++ markNotificationAsRead,++ markAllNotificationsAsRead,++ getUnreadCount,++ deleteNotifications,++ getTaskDetail,++ acceptTask,++ submitTask,++ type NotificationItem,++ type TaskItem++} from "@/api/notification";++import { getAccountListApi } from "@/api/account";++import { SocialAccount } from "@/api/types/account.type";++import { apiCreatePublish } from "@/api/plat/publish";++import { getOssUrl } from "@/utils/oss";++import { PubType } from "@/app/config/publishConfig";++import { getAppDownloadConfig, getTasksRequiringApp } from "@/app/config/appDownloadConfig";++import DownloadAppModal from "@/components/common/DownloadAppModal";++import styles from "./NotificationPanel.module.scss";++import { useParams, useRouter } from "next/navigation";++import { getDays, getUtcDays } from "@/app/[lng]/accounts/components/CalendarTiming/calendarTiming.utils";++++// 平台配置(图标等)++import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";++++interface NotificationPanelProps {++ visible: boolean;++ onClose: () => void;++}++++const NotificationPanel: React.FC<NotificationPanelProps> = ({ visible, onClose }) => {++ const { t } = useTransClient("notification" as any);++ const token = useUserStore((state) => state.token);++ const router = useRouter();++ const { lng } = useParams();++ const [notifications, setNotifications] = useState<NotificationItem[]>([]);++ const [loading, setLoading] = useState(false);++ const [unreadCount, setUnreadCount] = useState(0);++ const [notificationPagination, setNotificationPagination] = useState({++ current: 1,++ pageSize: 10,++ total: 0++ });++ const [selectedNotification, setSelectedNotification] = useState<NotificationItem | null>(null);++ const [selectedTask, setSelectedTask] = useState<TaskItem | null>(null);++ const [detailModalVisible, setDetailModalVisible] = useState(false);++ const [taskLoading, setTaskLoading] = useState(false);++ const [accountList, setAccountList] = useState<SocialAccount[]>([]);++++ // 下载App弹窗状态++ const [downloadAppVisible, setDownloadAppVisible] = useState(false);++ const [downloadAppConfig, setDownloadAppConfig] = useState({++ platform: "",++ appName: "",++ downloadUrl: "",++ qrCodeUrl: "" as string | undefined++ });++++ // 媒体预览弹窗状态++ const [mediaPreviewVisible, setMediaPreviewVisible] = useState(false);++ const [previewMedia, setPreviewMedia] = useState<{++ type: 'video' | 'image';++ url: string;++ title?: string;++ } | null>(null);++ const [videoRef, setVideoRef] = useState<HTMLVideoElement | null>(null);++++ // 任务进度弹窗状态++ const [taskProgressVisible, setTaskProgressVisible] = useState(false);++ const [taskProgress, setTaskProgress] = useState({++ currentStep: 0,++ steps: [++ { title: t('acceptingTask' as any), status: 'processing' },++ { title: t('publishingTask' as any), status: 'wait' },++ { title: t('submittingTask' as any), status: 'wait' },++ { title: t('taskCompleted' as any), status: 'wait' }++ ]++ });++++ // 账号选择弹窗状态++ const [accountSelectVisible, setAccountSelectVisible] = useState(false);++ const [availableAccounts, setAvailableAccounts] = useState<SocialAccount[]>([]);++ const [selectedAccount, setSelectedAccount] = useState<SocialAccount | null>(null);++ const [requiredAccountTypes, setRequiredAccountTypes] = useState<string[]>([]);++++ // 获取通知列表++ const fetchNotifications = async (page: number = 1, pageSize: number = 20) => {++ // 如果没有登录信息,不发送请求++ if (!token) {++ setNotifications([]);++ return;++ }++++ try {++ setLoading(true);++ const response = await getNotificationList({ page, pageSize });++ if (response && response.data) {++ setNotifications(response.data.list || []);++ setNotificationPagination(prev => ({++ ...prev,++ current: page,++ total: response.data.total || 0++ }));++ }++ } catch (error) {++ message.error(t('getNotificationListFailed'));++ } finally {++ setLoading(false);++ }++ };++++ // 获取未读数量++ const fetchUnreadCount = async () => {++ // 如果没有登录信息,不发送请求++ if (!token) {++ setUnreadCount(0);++ return;++ }++++ try {++ const response = await getUnreadCount();++ if (response && response.data) {++ setUnreadCount(response.data.count || 0);++ }++ } catch (error) {++ console.error("获取未读数量失败:", error);++ }++ };++++ // 获取账号列表++ const fetchAccountList = async () => {++ if (!token) {++ setAccountList([]);++ return;++ }++++ try {++ const response = await getAccountListApi();++ if (response && response.data) {++ setAccountList(response.data || []);++ }++ } catch (error) {++ console.error("获取账号列表失败:", error);++ }++ };++++ // 标记单个通知为已读++ const handleMarkAsRead = async (id: string) => {++ try {++ await markNotificationAsRead([id]);++ message.success(t('markSuccess'));++ fetchNotifications();++ fetchUnreadCount();++ } catch (error) {++ message.error(t('markFailed'));++ }++ };++++ // 全部标记为已读++ const handleMarkAllAsRead = async () => {++ try {++ await markAllNotificationsAsRead();++ message.success(t('markAllSuccess'));++ fetchNotifications();++ fetchUnreadCount();++ } catch (error) {++ message.error(t('markFailed'));++ }++ };++++ // 查看通知详情++ const handleViewDetail = async (notification: NotificationItem) => {++ try {++ // 调用API获取通知详情++ const response:any = await getNotificationDetail(notification.id);++ if (response && response.data && response.code == 0) {++ setSelectedNotification(response.data);++ setDetailModalVisible(true);++++ // 如果是任务提醒类型且有relatedId,获取任务详情++ if (notification.type === 'task_reminder' && notification.relatedId) {++ await fetchTaskDetail(notification.relatedId);++ }++++ // 如果是未读状态,标记为已读++ if (notification.status === 'unread') {++ handleMarkAsRead(notification.id);++ }++ } else {++ message.error(t('getNotificationDetailFailed'));++ }++ } catch (error) {++ message.error(t('getNotificationDetailFailed'));++ console.error("获取通知详情失败:", error);++ }++ };++++ // 获取任务详情++ const fetchTaskDetail = async (opportunityId: string) => {++ try {++ setTaskLoading(true);++ const response: any = await getTaskDetail(opportunityId);++ if (response && response.data && response.code === 0) {++ setSelectedTask(response.data);++ } else {++ console.error(t('getTaskDetailFailed'));++ }++ } catch (error) {++ console.error(t('getTaskDetailFailed'), error);++ } finally {++ setTaskLoading(false);++ }++ };++++ // 接受任务++ const handleAcceptTask = async (account?: SocialAccount) => {++ if (!selectedTask) return;++++ // 显示进度弹窗++ setTaskProgressVisible(true);++ setTaskProgress({++ currentStep: 0,++ steps: [++ { title: '正在接受任务...', status: 'processing' },++ { title: '正在发布任务...', status: 'wait' },++ { title: '正在提交任务...', status: 'wait' },++ { title: '任务完成', status: 'wait' }++ ]++ });++++ try {++ // 第一步:接受任务++ const response: any = await acceptTask(selectedTask.id, selectedTask.opportunityId, account?.id);++ if (response && response.code === 0) {++ // 更新进度:第一步完成,开始第二步++ setTaskProgress(prev => ({++ ...prev,++ currentStep: 1,++ steps: [++ { title: t('acceptingTask' as any), status: 'finish' },++ { title: t('publishingTask' as any), status: 'processing' },++ { title: t('taskCompleted' as any), status: 'wait' }++ ]++ }));++++ // 第二步:发布任务++ // 优先使用传入的账号,其次使用任务指定的账号++ const publishAccount = account || getAccountById(selectedTask.accountId);++ if (publishAccount) {++ // 处理素材链接,确保使用完整链接++ const processedMaterials = selectedTask.materials?.map((material: any) => ({++ ...material,++ coverUrl: material.coverUrl ? getOssUrl(material.coverUrl) : undefined,++ mediaList: material.mediaList?.map((media: any) => ({++ ...media,++ url: getOssUrl(media.url),++ coverUrl: media.coverUrl ? getOssUrl(media.coverUrl) : undefined++ }))++ }));++++ const publishData = {++ flowId: publishAccount.uid, // 使用账号的uid作为flowId++ accountType: publishAccount.type,++ accountId: publishAccount.id,++ title: selectedTask.title,++ desc: selectedTask.description,++ type: selectedTask.type as any, // 转换为PubType++ // 处理素材数据++ videoUrl: processedMaterials?.[0]?.mediaList?.[0]?.type === 'video' ?++ getOssUrl(processedMaterials[0].mediaList[0].url) : undefined,++ coverUrl: processedMaterials?.[0]?.coverUrl,++ imgUrlList: processedMaterials?.flatMap((material: any) =>++ material.mediaList?.filter((media: any) => media.type !== 'video')++ .map((media: any) => getOssUrl(media.url)) || []++ ),++ option: {},++ topics: [],++ publishTime: getUtcDays(getDays().add(6, "minute")).format(),++ userTaskId: response.data.id,++ taskMaterialId: selectedTask.materialIds[0]++ };++++ const publishResponse: any = await apiCreatePublish(publishData);++ if (publishResponse && publishResponse.code === 0) {++ // 更新进度:第二步完成,开始第三步++ setTaskProgress(prev => ({++ ...prev,++ currentStep: 2,++ steps: [++ { title: t('acceptingTask' as any), status: 'finish' },++ { title: t('publishingTask' as any), status: 'finish' },++ { title: t('submittingTask' as any), status: 'processing' },++ { title: t('taskCompleted' as any), status: 'wait' }++ ]++ }));++++ // 第三步:提交任务++ // 从发布响应中获取userTaskId,如果没有则使用任务ID++ const userTaskId = response.data.id;++ const submitResponse: any = await submitTask(userTaskId, selectedTask.materialIds[0]);++++ if (submitResponse && submitResponse.code === 0) {++ // 更新进度:第三步完成,开始第四步++ setTaskProgress(prev => ({++ ...prev,++ currentStep: 3,++ steps: [++ { title: t('acceptingTask' as any), status: 'finish' },++ { title: t('publishingTask' as any), status: 'finish' },++ { title: t('submittingTask' as any), status: 'finish' },++ { title: t('taskCompleted' as any), status: 'finish' }++ ]++ }));++++ // 延迟1秒后关闭进度窗口并跳转++ setTimeout(() => {++ setTaskProgressVisible(false);++ setDetailModalVisible(false);++ setSelectedTask(null);++ router.push(`/${lng}/tasks`);++ }, 1000);++ } else {++ throw new Error('提交任务失败');++ }++ } else {++ throw new Error('发布任务失败');++ }++ } else {++ throw new Error('找不到发布账号信息');++ }++ } else {++ throw new Error('接受任务失败');++ }++ } catch (error) {++ console.error("任务处理失败:", error);++ message.error(t('taskProcessFailed'));++ setTaskProgressVisible(false);++ }++ };++++ // 检查任务类型并显示相应的操作提示++ const handleTaskAction = (task: TaskItem) => {++ // 首先检查任务支持的所有平台是否都需要App操作++ const taskPlatforms = task.accountTypes || [];++ const appRequiredPlatforms = getTasksRequiringApp(taskPlatforms);++++ // 如果所有平台都需要App操作,直接显示下载App提示++ if (appRequiredPlatforms.length > 0 && appRequiredPlatforms.length === taskPlatforms.length) {++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 如果任务指定了账号,使用指定账号的逻辑++ if (task.accountId) {++ const publishAccount = getAccountById(task.accountId);++ if (publishAccount) {++ // 检查发布账号的平台是否需要App操作++ const appRequiredPlatforms = getTasksRequiringApp([publishAccount.type]);++++ if (appRequiredPlatforms.length > 0) {++ // 有需要App操作的平台,显示第一个平台的下载提示++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 直接使用指定账号接受任务++ handleAcceptTask(publishAccount);++ return;++ }++ }++++ // 如果没有指定账号,需要用户选择账号++ const availableAccounts = getAvailableAccounts(task.accountTypes || []);++++ if (availableAccounts.length === 0) {++ // 没有符合条件的账号,跳转到账户界面并弹出授权界面++ setRequiredAccountTypes(task.accountTypes || []);++ setDetailModalVisible(false); // 关闭任务详情弹窗++ message.info(t('accountSelect.redirectingToAccounts' as any));++++ // 构建跳转URL,包含需要的平台类型参数++ const accountTypes = task.accountTypes || [];++ const platformParam = accountTypes.length > 0 ? accountTypes[0] : undefined;++ const accountsUrl = platformParam++ ? `/${lng}/accounts?platform=${platformParam}`++ : `/${lng}/accounts`;++++ router.push(accountsUrl); // 跳转到账户界面并自动打开添加账号弹窗++ return;++ }++++ if (availableAccounts.length === 1) {++ // 只有一个符合条件的账号,直接使用++ const account = availableAccounts[0];++++ // 检查是否需要App操作++ const appRequiredPlatforms = getTasksRequiringApp([account.type]);++ if (appRequiredPlatforms.length > 0) {++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 直接使用这个账号接受任务++ handleAcceptTask(account);++ return;++ }++++ // 多个符合条件的账号,显示选择弹窗++ setAvailableAccounts(availableAccounts);++ setAccountSelectVisible(true);++ };++++ // 格式化时间++ const formatTime = (timeString: string) => {++ const date = new Date(timeString);++ const now = new Date();++ const diff = now.getTime() - date.getTime();++ const minutes = Math.floor(diff / (1000 * 60));++ const hours = Math.floor(diff / (1000 * 60 * 60));++ const days = Math.floor(diff / (1000 * 60 * 60 * 24));++++ if (minutes < 1) return t('time.justNow' as any);++ if (minutes < 60) return t('time.minutesAgo' as any, { minutes });++ if (hours < 24) return t('time.hoursAgo' as any, { hours });++ if (days < 7) return t('time.daysAgo' as any, { days });++ return date.toLocaleDateString();++ };++++ // 获取通知类型文本++ const getNotificationTypeText = (type: string) => {++ const typeMap: Record<string, string> = {++ system: t('notificationTypes.system' as any),++ user: t('notificationTypes.user' as any),++ material: t('notificationTypes.material' as any),++ task_reminder: t('notificationTypes.task_reminder' as any),++ other: t('notificationTypes.other' as any)++ };++ return typeMap[type] || type;++ };++++ // 获取通知类型颜色++ const getNotificationTypeColor = (type: string) => {++ const colorMap: Record<string, string> = {++ system: "blue",++ user: "green",++ material: "orange",++ task_reminder: "red",++ other: "default"++ };++ return colorMap[type] || "default";++ };++++ // 删除通知++ const handleDeleteNotification = async (id: string) => {++ try {++ await deleteNotifications([id]);++ message.success(t('deleteSuccess'));++ fetchNotifications();++ fetchUnreadCount();++ } catch (error) {++ message.error(t('deleteFailed'));++ }++ };++++ // 获取平台显示名称++ const getPlatformName = (type: string) => {++ const { lng } = useParams();++++ if (lng === 'en') {++ return type;++ }++++ // 使用国际化显示名称++ const platformNames: Record<string, string> = {++ 'tiktok': t('platforms.tiktok' as any),++ 'youtube': t('platforms.youtube' as any),++ 'twitter': t('platforms.twitter' as any),++ 'bilibili': t('platforms.bilibili' as any),++ 'KWAI': t('platforms.KWAI' as any),++ 'douyin': t('platforms.douyin' as any),++ 'xhs': t('platforms.xhs' as any),++ 'wxSph': t('platforms.wxSph' as any),++ 'wxGzh': t('platforms.wxGzh' as any),++ 'facebook': t('platforms.facebook' as any),++ 'instagram': t('platforms.instagram' as any),++ 'threads': t('platforms.threads' as any),++ 'pinterest': t('platforms.pinterest' as any),++ };++ return platformNames[type] || type;++ };++++ // 获取任务类型显示名称++ const getTaskTypeName = (type: string) => {++ const taskTypeNames: Record<string, string> = {++ 'video': t('taskTypes.video' as any),++ 'article': t('taskTypes.article' as any),++ 'article2': t('taskTypes.article2' as any),++ };++ return taskTypeNames[type] || type;++ };++++ /**++ * 从平台配置中获取平台图标++ * 兼容字符串路径与含有src字段的对象++ */++ const getPlatformIcon = (type: string) => {++ const info = AccountPlatInfoMap.get(type as PlatType);++ const icon: any = info?.icon;++ if (!icon) return null;++ if (typeof icon === 'string') return icon;++ return icon?.src || icon?.default || null;++ };++++ // 根据accountId获取账号信息++ const getAccountById = (accountId: string): SocialAccount | null => {++ return accountList.find(account => account.id === accountId) || null;++ };++++ // 获取符合条件的账号列表++ const getAvailableAccounts = (accountTypes: string[]): SocialAccount[] => {++ if (!accountTypes || accountTypes.length === 0) {++ return accountList; // 如果没有类型限制,返回所有账号++ }++ return accountList.filter(account => accountTypes.includes(account.type));++ };++++ // 处理媒体点击++ const handleMediaClick = (media: any, materialTitle?: string, materialCoverUrl?: string) => {++ if (media.type === 'video') {++ setPreviewMedia({++ type: 'video',++ url: getOssUrl(media.url),++ title: materialTitle++ });++ } else {++ setPreviewMedia({++ type: 'image',++ url: getOssUrl(media.url),++ title: materialTitle++ });++ }++ setMediaPreviewVisible(true);++ };++++ // 处理视频封面点击++ const handleVideoCoverClick = (media: any, materialTitle?: string) => {++ setPreviewMedia({++ type: 'video',++ url: getOssUrl(media.url),++ title: materialTitle++ });++ setMediaPreviewVisible(true);++ };++++ // 关闭媒体预览++ const handleCloseMediaPreview = () => {++ // 停止视频播放++ if (videoRef) {++ videoRef.pause();++ videoRef.currentTime = 0;++ }++ setMediaPreviewVisible(false);++ setPreviewMedia(null);++ setVideoRef(null);++ };++++ // 处理通知分页变化++ const handleNotificationPageChange = (page: number, pageSize?: number) => {++ fetchNotifications(page, pageSize || notificationPagination.pageSize);++ };++++ // 处理账号选择++ const handleAccountSelect = (account: SocialAccount) => {++ setSelectedAccount(account);++ setAccountSelectVisible(false);++++ // 检查是否需要App操作++ const appRequiredPlatforms = getTasksRequiringApp([account.type]);++ if (appRequiredPlatforms.length > 0) {++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 使用选择的账号接受任务++ handleAcceptTask(account);++ };++++ // 检查是否有新添加的符合条件账号++ const checkForNewAccounts = () => {++ if (requiredAccountTypes.length > 0 && selectedTask) {++ const newAvailableAccounts = getAvailableAccounts(requiredAccountTypes);++++ if (newAvailableAccounts.length > 0) {++ // 有新账号了,清除需求状态++ setRequiredAccountTypes([]);++++ if (newAvailableAccounts.length === 1) {++ // 只有一个新账号,直接使用++ const account = newAvailableAccounts[0];++++ // 检查是否需要App操作++ const appRequiredPlatforms = getTasksRequiringApp([account.type]);++ if (appRequiredPlatforms.length > 0) {++ const firstPlatform = appRequiredPlatforms[0];++ const config = getAppDownloadConfig(firstPlatform);++++ if (config) {++ setDownloadAppConfig({++ platform: config.platform,++ appName: config.appName,++ downloadUrl: config.downloadUrl,++ qrCodeUrl: config.qrCodeUrl++ });++ setDownloadAppVisible(true);++ return;++ }++ }++++ // 直接使用这个账号接受任务++ handleAcceptTask(account);++ } else {++ // 多个新账号,显示选择弹窗++ setAvailableAccounts(newAvailableAccounts);++ setAccountSelectVisible(true);++ }++ }++ }++ };++++ useEffect(() => {++ if (visible) {++ fetchNotifications();++ fetchUnreadCount();++ fetchAccountList();++ }++ }, [visible, token]);++++ // 监听账号列表变化,检查是否有新添加的符合条件账号++ useEffect(() => {++ if (accountList.length > 0) {++ checkForNewAccounts();++ }++ }, [accountList, requiredAccountTypes, selectedTask]);++++++ return (++ <>++ <Modal++ title={++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>++ <Badge count={unreadCount} size="small">++ <span style={{ fontSize: '16px', fontWeight: '600' }}>{t('title')}</span>++ </Badge>++ </div>++ }++ open={visible}++ onCancel={onClose}++ footer={[++ <Button key="markAll" onClick={handleMarkAllAsRead} disabled={unreadCount === 0} type="primary">++ {t('markAllAsRead')}++ </Button>,++ <Button key="close" onClick={onClose}>++ {t('cancel')}++ </Button>++ ]}++ width={700}++ destroyOnHidden++ styles={{++ header: {++ borderBottom: '1px solid #f0f0f0',++ paddingBottom: '16px'++ },++ body: {++ padding: '6px'++ }++ }}++ >++ <Spin spinning={loading}>++ {notifications.length > 0 ? (++ <List++ dataSource={notifications}++ pagination={{++ current: notificationPagination.current,++ pageSize: notificationPagination.pageSize,++ total: notificationPagination.total,++ onChange: handleNotificationPageChange,++ showSizeChanger: true,++ showQuickJumper: true,++ showTotal: (total, range) => t('pageInfo' as any, { start: range[0], end: range[1], total }),++ pageSizeOptions: ['10', '20', '50', '100']++ }}++ renderItem={(item) => (++ <List.Item++ className={`${styles.notificationItem} ${item.status === 'unread' ? styles.unread : ""}`}++ actions={[++ item.status === 'unread' && (++ <Button++ key="mark"++ type="text"++ size="small"++ icon={<CheckOutlined />}++ onClick={(e) => {++ e.stopPropagation();++ handleMarkAsRead(item.id);++ }}++ >++ {t('markAsRead')}++ </Button>++ ),++ <Popconfirm++ key="delete"++ title={t('confirmDelete')}++ onConfirm={() => handleDeleteNotification(item.id)}++ okText={t('confirm')}++ cancelText={t('cancel')}++ >++ <Button++ type="text"++ size="small"++ danger++ icon={<DeleteOutlined />}++ onClick={(e) => e.stopPropagation()}++ >++ {t('delete')}++ </Button>++ </Popconfirm>++ ]}++ >++ <div++ className={styles.notificationClickableArea}++ onClick={() => handleViewDetail(item)}++ style={{++ cursor: 'pointer',++ width: '100%',++ padding: '8px 0'++ }}++ >++ <List.Item.Meta++ title={++ <div className={styles.notificationTitle}>++ <span>{item.title}</span>++ {item.status === 'unread' && <Badge status="processing" />}++ </div>++ }++ description={++ <div className={styles.notificationContent}>++ <div className={styles.notificationMeta}>++ <Tag color={getNotificationTypeColor(item.type)}>++ {getNotificationTypeText(item.type)}++ </Tag>++ <span className={styles.time}>++ <ClockCircleOutlined style={{ marginRight: 4 }} />++ {formatTime(item.createdAt)}++ </span>++ </div>++ <div className={styles.content}>++ {item.content.length > 100++ ? `${item.content.substring(0, 100)}...`++ : item.content++ }++ </div>++ </div>++ }++ />++ </div>++ </List.Item>++ )}++ />++ ) : (++ <Empty description={t('noNotifications')} />++ )}++ </Spin>++ </Modal>++++ {/* 通知详情弹窗 */}++ <Modal++ title={++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>++ <span style={{ fontSize: '16px', fontWeight: '600' }}>{t('detailTitle')}</span>++ </div>++ }++ zIndex={2000}++ open={detailModalVisible}++ onCancel={() => {++ setDetailModalVisible(false);++ setSelectedTask(null);++ }}++ footer={[++ <Button key="close" onClick={() => {++ setDetailModalVisible(false);++ setSelectedTask(null);++ }} type="primary">++ {t('close')}++ </Button>++ ]}++ width={800}++ styles={{++ header: {++ borderBottom: '1px solid #f0f0f0',++ paddingBottom: '16px'++ },++ body: {++ padding: '24px'++ }++ }}++ >++ {selectedNotification && (++ <div className={styles.notificationDetail}>++ <h3>{selectedNotification.title}</h3>++ <div className={styles.meta}>++ <span>++ <Tag color={getNotificationTypeColor(selectedNotification.type)}>++ {getNotificationTypeText(selectedNotification.type)}++ </Tag>++ </span>++ <div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}>++ <span>++ <ClockCircleOutlined style={{ marginRight: 4 }} />++ {t('createTime')}: {formatTime(selectedNotification.createdAt)}++ </span>++ {selectedNotification.readAt && (++ <span style={{ color: '#52c41a' }}>++ {t('readTime')}: {formatTime(selectedNotification.readAt)}++ </span>++ )}++ </div>++ </div>++ {/* <div className={styles.content}>++ {selectedNotification.content}++ </div> */}++++ {/* 任务详情部分 */}++ {selectedNotification.type === 'task_reminder' && (++ <div className={styles.taskDetail}>++ <h4 style={{ marginBottom: '16px', color: '#1890ff' }}>{t('taskDetail')}</h4>++ <Spin spinning={taskLoading}>++ {selectedTask ? (++ <div className={styles.taskInfo}>++ <div className={styles.taskHeader}>++ <h5>{selectedTask.title}</h5>++ <Tag color={selectedTask.status === 'active' ? 'green' : 'red'}>++ {selectedTask.status === 'active' ? t('taskStatus.active' as any) : t('taskStatus.inactive' as any)}++ </Tag>++ </div>++ <div className={styles.taskContent}>++ <p><strong>{t('taskInfo.description' as any)}:</strong>++ <div dangerouslySetInnerHTML={{ __html: selectedTask.description }} />++ </p>++ {/* 发布账号信息 */}++ {selectedTask.accountId && (() => {++ const publishAccount = getAccountById(selectedTask.accountId);++ return publishAccount ? (++ <p><strong>{t('taskInfo.publisherAccount' as any)}:</strong>++ <div style={{ display: 'flex', alignItems: 'center', marginLeft: '4px', gap: '8px' }}>++ <img++ src={publishAccount.avatar ? getOssUrl(publishAccount.avatar) : '/default-avatar.png'}++ alt="账号头像"++ style={{++ width: '24px',++ height: '24px',++ borderRadius: '50%',++ objectFit: 'cover'++ }}++ onError={(e) => {++ e.currentTarget.src = '/default-avatar.png';++ }}++ />++ <Tag color="green">++ {getPlatformName(publishAccount.type)} - {publishAccount.nickname}++ </Tag>++ </div>++ </p>++ ) : (++ <p><strong>{t('taskInfo.publisherAccount' as any)}:</strong>++ <Tag color="red" style={{ marginLeft: '4px' }}>++ {t('accountInfoFailed')}++ </Tag>++ </p>++ );++ })()}++++ {/* 任务平台类型显示 */}++ {selectedTask.accountTypes && selectedTask.accountTypes.length > 0 && (++ <p style={{ display: 'flex', alignItems: 'center', gap: '8px', margin: 0, marginBottom: '6px' }}>++ <strong>{t('taskInfo.platformTypes' as any)}:</strong>++ {selectedTask.accountTypes.map(type => {++ const platformIcon = getPlatformIcon(type);++ return platformIcon ? (++ <img++ key={type}++ src={platformIcon}++ alt={`${type} icon`}++ style={{++ width: '20px',++ height: '20px',++ objectFit: 'contain'++ }}++ />++ ) : null;++ })}++ </p>++ )}++++ <p><strong>{t('taskInfo.reward' as any)}:</strong>¥{selectedTask.reward/100}</p>++ {/* <p><strong>招募人数:</strong>{selectedTask.currentRecruits}/{selectedTask.maxRecruits}</p> */}++++ <p><strong>{t('taskInfo.taskType' as any)}:</strong>++ <Tag color="blue" style={{ marginLeft: '4px' }}>++ {getTaskTypeName(selectedTask.type)}++ </Tag>++ </p>++++++++ {/* 任务素材展示 */}++ {selectedTask.materials && selectedTask.materials.length > 0 && (++ <div style={{ marginTop: '16px' }}>++ <p><strong>{t('taskInfo.taskType' as any)}:</strong></p>++ <div style={{ display: 'flex', gap: '8px', flexWrap: 'wrap' }}>++ {selectedTask.materials.map((material: any, index: number) => (++ <div key={index} style={{++ border: '1px solid #e8e8e8',++ borderRadius: '8px',++ padding: '8px',++ maxWidth: '200px'++ }}>++ {/* <div style={{ fontSize: '12px', fontWeight: '500', marginBottom: '4px' }}>++ {material.title}++ </div> */}++ { (material.coverUrl && material.type !== "video") && (++ <img++ src={getOssUrl(material.coverUrl)}++ alt="cover"++ style={{++ width: '100%',++ height: '100px',++ objectFit: 'cover',++ borderRadius: '4px',++ marginBottom: '4px'++ }}++ />++ )}++ {/* <div style={{ fontSize: '11px', color: '#666', lineHeight: '1.3' }}>++ {material.desc?.substring(0, 50)}{material.desc?.length > 50 ? '...' : ''}++ </div> */}++ {material.mediaList && material.mediaList.length > 0 && (++ <div style={{++ display: 'flex',++ gap: '4px',++ marginTop: '4px',++ flexWrap: 'wrap'++ }}>++ {material.mediaList.slice(0, 3).map((media: any, mediaIndex: number) => (++ <div key={mediaIndex} style={{ position: 'relative', cursor: 'pointer' }}>++ {media.type === 'video' ? (++ <div++ style={{++ width: '180px',++ height: '180px',++ borderRadius: '2px',++ position: 'relative',++ overflow: 'hidden'++ }}++ onClick={() => handleVideoCoverClick(media, material.title)}++ >++ {/* 视频封面图片 - 使用material.coverUrl */}++ <img++ src={material.coverUrl ? getOssUrl(material.coverUrl) : getOssUrl(media.url)}++ alt="video cover"++ style={{++ width: '100%',++ height: '100%',++ objectFit: 'cover'++ }}++ />++ {/* 播放按钮 */}++ <div style={{++ position: 'absolute',++ top: '50%',++ left: '50%',++ transform: 'translate(-50%, -50%)',++ color: 'white',++ fontSize: '11px',++ background: 'rgba(0,0,0,0.6)',++ borderRadius: '50%',++ width: '26px',++ height: '26px',++ display: 'flex',++ alignItems: 'center',++ justifyContent: 'center'++ }}>++ ▶++ </div>++ </div>++ ) : (++ <img++ src={getOssUrl(media.url)}++ alt="media"++ style={{++ width: '40px',++ height: '40px',++ objectFit: 'cover',++ borderRadius: '2px'++ }}++ onClick={() => handleMediaClick(media, material.title)}++ />++ )}++ </div>++ ))}++ {material.mediaList.length > 3 && (++ <div style={{++ width: '40px',++ height: '40px',++ background: '#f0f0f0',++ borderRadius: '2px',++ display: 'flex',++ alignItems: 'center',++ justifyContent: 'center',++ fontSize: '10px',++ color: '#666'++ }}>++ +{material.mediaList.length - 3}++ </div>++ )}++ </div>++ )}++ </div>++ ))}++ </div>++ </div>++ )}++ </div>++ {selectedTask.status === 'active' && selectedTask.currentRecruits < selectedTask.maxRecruits && (++ <div className={styles.taskActions}>++ {/* 需要App操作的平台提示 - 只根据发布账号类型判断 */}++ {(() => {++ // 只根据发布账号类型判断是否需要App操作++ if (selectedTask.accountId) {++ const publishAccount = getAccountById(selectedTask.accountId);++ if (publishAccount) {++ const appRequiredPlatforms = getTasksRequiringApp([publishAccount.type]);++ if (appRequiredPlatforms.length > 0) {++ const platformNames = appRequiredPlatforms.map(p => getAppDownloadConfig(p)?.platform).filter(Boolean);++ return (++ <div style={{++ marginBottom: '12px',++ padding: '12px',++ backgroundColor: '#fff7e6',++ border: '1px solid #ffd591',++ borderRadius: '6px',++ color: '#d46b08'++ }}>++ <strong>{t('appRequiredNotice')}</strong>++ {t('appRequiredMessage' as any, { platform: getPlatformName(publishAccount.type) })}++ </div>++ );++ }++ }++ }++ return null;++ })()}++++ {++++ selectedTask.opportunityStatus == 'pending' && (++ <Button++ type="primary"++ onClick={() => handleTaskAction(selectedTask)}++ style={{ marginTop: '12px' }}++ >++ {t('acceptTask')}++ </Button>++ )++ }++ </div>++ )}++ </div>++ ) : !taskLoading && (++ <div style={{ textAlign: 'center', color: '#999' }}>++ {t('noTaskDetails')}++ </div>++ )}++ </Spin>++ </div>++ )}++ </div>++ )}++ </Modal>++++ {/* 下载App提示弹窗 */}++ <DownloadAppModal++ visible={downloadAppVisible}++ onClose={() => setDownloadAppVisible(false)}++ platform={downloadAppConfig.platform}++ appName={downloadAppConfig.appName}++ downloadUrl={downloadAppConfig.downloadUrl}++ qrCodeUrl={downloadAppConfig.qrCodeUrl}++ zIndex={3000}++ />++++ {/* 媒体预览弹窗 */}++ <Modal++ title={previewMedia?.title || t('mediaPreview')}++ open={mediaPreviewVisible}++ onCancel={handleCloseMediaPreview}++ afterClose={handleCloseMediaPreview}++ footer={[++ <Button key="close" onClick={handleCloseMediaPreview}>++ {t('close')}++ </Button>++ ]}++ width={previewMedia?.type === 'video' ? 800 : 600}++ zIndex={3000}++ destroyOnHidden={true}++ styles={{++ body: {++ padding: '24px',++ textAlign: 'center'++ }++ }}++ >++ {previewMedia && (++ <div>++ {previewMedia.type === 'video' ? (++ <video++ ref={setVideoRef}++ src={previewMedia.url}++ controls++ style={{++ width: '100%',++ maxHeight: '500px',++ borderRadius: '8px'++ }}++ autoPlay++ onEnded={() => {++ // 视频播放结束时重置到开始++ if (videoRef) {++ videoRef.currentTime = 0;++ }++ }}++ />++ ) : (++ <img++ src={previewMedia.url}++ alt="preview"++ style={{++ width: '100%',++ maxHeight: '500px',++ objectFit: 'contain',++ borderRadius: '8px'++ }}++ />++ )}++ </div>++ )}++ </Modal>++++ {/* 任务进度弹窗 */}++ <Modal++ title={t('taskProcessing')}++ open={taskProgressVisible}++ closable={false}++ maskClosable={false}++ footer={null}++ width={500}++ zIndex={3000}++ styles={{++ body: {++ padding: '24px'++ }++ }}++ >++ <Steps++ direction="vertical"++ current={taskProgress.currentStep}++ items={taskProgress.steps.map((step, index) => ({++ title: step.title,++ status: step.status as 'wait' | 'process' | 'finish' | 'error',++ description: index === 0 ? t('acceptingTask' as any) :++ index === 1 ? t('publishingTask' as any) :++ index === 2 ? t('submittingTask' as any) :++ t('taskCompleted' as any)++ }))}++ />++ </Modal>++++ {/* 账号选择弹窗 */}++ <Modal++ title={t('accountSelect.title' as any)}++ open={accountSelectVisible}++ onCancel={() => setAccountSelectVisible(false)}++ footer={null}++ width={600}++ zIndex={2000}++ styles={{++ header: {++ borderBottom: '1px solid #f0f0f0',++ paddingBottom: '16px'++ },++ body: {++ padding: '24px'++ }++ }}++ >++ <div style={{ marginBottom: '16px' }}>++ <p style={{ margin: 0, color: '#666' }}>++ {t('accountSelect.description' as any)}++ </p>++ </div>++ <List++ dataSource={availableAccounts}++ renderItem={(account) => (++ <List.Item++ style={{++ cursor: 'pointer',++ padding: '16px',++ border: '1px solid #f0f0f0',++ borderRadius: '8px',++ marginBottom: '8px',++ transition: 'all 0.3s ease'++ }}++ onClick={() => handleAccountSelect(account)}++ onMouseEnter={(e) => {++ e.currentTarget.style.borderColor = '#1890ff';++ e.currentTarget.style.backgroundColor = '#f6ffed';++ }}++ onMouseLeave={(e) => {++ e.currentTarget.style.borderColor = '#f0f0f0';++ e.currentTarget.style.backgroundColor = 'transparent';++ }}++ >++ <List.Item.Meta++ avatar={++ <img++ src={account.avatar ? getOssUrl(account.avatar) : '/default-avatar.png'}++ alt="账号头像"++ style={{++ width: '48px',++ height: '48px',++ borderRadius: '50%',++ objectFit: 'cover'++ }}++ onError={(e) => {++ e.currentTarget.src = '/default-avatar.png';++ }}++ />++ }++ title={++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>++ <span style={{ fontWeight: '600' }}>{account.nickname}</span>++ <Tag color="blue">{getPlatformName(account.type)}</Tag>++ </div>++ }++ description={++ <div style={{ color: '#666' }}>++ <div>{t('accountSelect.accountId' as any)}: {account.account}</div>++ {account.nickname && <div>{t('accountSelect.description' as any)}: {account.nickname}</div>}++ </div>++ }++ />++ </List.Item>++ )}++ />++ </Modal>++ </>++ );++};++++export default NotificationPanel;diff --cc project/aitoearn-web/src/constant.tsindex 00000000,d9ed2a59..d9ed2a59mode 000000,100644..100644--- a/project/aitoearn-web/src/constant.ts+++ b/project/aitoearn-web/src/constant.tsdiff --cc project/aitoearn-web/src/hooks/useNotification.tsindex 00000000,54487b41..54487b41mode 000000,100644..100644--- a/project/aitoearn-web/src/hooks/useNotification.ts+++ b/project/aitoearn-web/src/hooks/useNotification.tsdiff --cc project/aitoearn-web/src/hooks/useSystem.tsindex 00000000,00000000..f28726c9new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/hooks/useSystem.ts@@@ -1,0 -1,0 +1,14 @@@++import { useParams } from "next/navigation";++import { fallbackLng, languages } from "@/app/i18n/settings";++++export function useGetClientLng() {++ const params = useParams();++ const lng = params?.lng;++++ // 确保返回的语言在支持的语言列表中++ if (lng && languages.includes(lng as string)) {++ return lng as string;++ }++++ return fallbackLng;++}diff --cc project/aitoearn-web/src/images/bg-rank-index.pngindex 00000000,00000000..ed4c7e69new file mode 100644Binary files differdiff --cc project/aitoearn-web/src/middleware.tsindex 00000000,d379277c..d379277cmode 000000,100644..100644--- a/project/aitoearn-web/src/middleware.ts+++ b/project/aitoearn-web/src/middleware.tsdiff --cc project/aitoearn-web/src/store/account.tsindex 00000000,00000000..3f1365a9new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/store/account.ts@@@ -1,0 -1,0 +1,171 @@@++import { create } from "zustand";++import { combine } from "zustand/middleware";++import lodash from "lodash";++import { AccountGroupItem, SocialAccount } from "@/api/types/account.type";++import { getAccountGroupApi, getAccountListApi } from "@/api/account";++import { directTrans } from "@/app/i18n/client";++import { useUserStore } from "@/store/user";++++export interface AccountGroup extends AccountGroupItem {++ children: SocialAccount[];++}++++export interface IAccountStore {++ accountList: SocialAccount[];++ accountMap: Map<string, SocialAccount>;++ // key=account,value=账户++ accountAccountMap: Map<string, SocialAccount>;++ accountGroupList: AccountGroup[];++ accountGroupMap: Map<string, AccountGroup>;++ accountLoading: boolean;++ // 当前选择的账户++ accountActive?: SocialAccount;++}++++const store: IAccountStore = {++ // 不分组的账户数据++ accountList: [],++ // 分组的账户数据++ accountGroupList: [],++ accountGroupMap: new Map([]),++ accountMap: new Map([]),++ accountAccountMap: new Map([]),++ accountLoading: false,++ accountActive: undefined,++};++++const getStore = () => {++ return lodash.cloneDeep(store);++};++++// 视频发布所有组件的共享状态和方法++export const useAccountStore = create(++ combine(++ {++ ...getStore(),++ },++ (set, get, storeApi) => {++ const methods = {++ clear() {++ set({++ ...getStore(),++ });++ },++ // 设置选择账户ID++ setAccountActive(accountActive?: SocialAccount) {++ set({++ accountActive,++ });++ },++++ setAccountGroupList(accountGroupList: AccountGroup[]) {++ set({ accountGroupList });++ },++++ /**++ * 异步获取账户列表(含稳健的loading与错误处理),避免阻塞UI++ */++ async getAccountList() {++ if (get().accountLoading) return;++ set({ accountLoading: true });++++ try {++ const accountMap = new Map<string, SocialAccount>([]);++ const accountAccountMap = new Map<string, SocialAccount>([]);++++ // 防卡死:给请求增加超时兜底(例如 15s),即使后端迟迟不返回也不会一直占用loading++ const timeoutMs = 10000;++ const timeoutPromise = new Promise<any>((resolve) => {++ setTimeout(() => resolve({ code: -1, data: [] }), timeoutMs);++ });++ const result = await Promise.race([++ getAccountListApi(),++ timeoutPromise,++ ]);++++ if (result?.code !== 0) return;++++ const accountList: SocialAccount[] = [];++ for (const item of result.data) {++ accountMap.set(item.id, item);++ accountAccountMap.set(item.account, item);++ accountList.push(item);++ }++++ set({++ accountList,++ accountMap,++ accountAccountMap,++ });++++ // 后续分组数据获取不阻塞调用方++ methods.getAccountGroup();++ } finally {++ set({ accountLoading: false });++ }++ },++++ /**++ * 后台异步启动账户列表加载(不等待,不阻塞首屏/刷新渲染)++ */++ getAccountListInBackground() {++ // fire-and-forget,内部自行处理loading与错误++ void methods.getAccountList();++ },++++ // 获取用户组的数据并且将用户放到对应组下++ async getAccountGroup() {++ const res = await getAccountGroupApi();++ const groupList = res?.data;++++ if (!groupList) return;++ if (groupList.length === 0) return;++ groupList.map((v: any) => {++ v.name = v.isDefault++ ? directTrans("account", "defaultSpace")++ : v.name;++ });++++ const accountGroupList: AccountGroup[] = [];++ // key=组ID,val=账户ID++ const accountGroupMap = new Map<string, AccountGroup>();++++ const defaultGroup = groupList.find((v: any) => v.isDefault)!;++++ groupList.map((v: any) => {++ const accountGroupItem = {++ ...v,++ children: [],++ };++ accountGroupList.push(accountGroupItem);++ accountGroupMap.set(v.id, accountGroupItem);++ });++ get().accountList.map((v) => {++ if (accountGroupMap.get(v.groupId!)) {++ accountGroupMap.get(v.groupId!)!.children?.push(v);++ } else {++ accountGroupMap.get(defaultGroup.id)!.children?.push(v);++ v.groupId = defaultGroup.id;++ }++ });++++ accountGroupList.sort((a, b) => {++ return a.rank - b.rank;++ });++++ set({++ accountGroupList,++ accountGroupMap,++ });++ },++++ async accountInit() {++ if (get().accountList.length > 0) return;++ // 改为后台异步拉取,避免初始化时阻塞界面++ methods.getAccountListInBackground();++ },++ };++ return methods;++ },++ ),++);diff --cc project/aitoearn-web/src/store/commont.tsindex 00000000,00000000..ea602776new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/store/commont.ts@@@ -1,0 -1,0 +1,31 @@@++import { create } from "zustand";++import { combine } from "zustand/middleware";++import { NotificationInstance } from "antd/es/notification/interface";++++export interface ICommontStore {++ // 全局通知api++ notification?: NotificationInstance;++}++++const store: ICommontStore = {++ notification: undefined,++};++++// 项目中的通用的、全局的状态和方法++export const useCommontStore = create(++ combine(++ {++ ...store,++ },++ (set, get, storeApi) => {++ const methods = {++ setNotification(notification: NotificationInstance) {++ set({++ notification,++ });++ },++ };++ return methods;++ },++ ),++);diff --cc project/aitoearn-web/src/store/system.tsindex 00000000,00000000..df7521dcnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/store/system.ts@@@ -1,0 -1,0 +1,30 @@@++import { createPersistStore } from "@/utils/createPersistStore";++++export interface ISystemStore {++ // 视频发布是否开启填写更多参数++ moreParamsOpen: boolean;++}++++const state: ISystemStore = {++ moreParamsOpen: false,++};++++export const useSystemStore = createPersistStore(++ {++ ...state,++ },++ (set, _get) => {++ const methods = {++ setMoreParamsOpen(moreParamsOpen: boolean) {++ set({++ moreParamsOpen,++ });++ },++ };++++ return methods;++ },++ {++ name: "System",++ },++);diff --cc project/aitoearn-web/src/store/user.tsindex 00000000,00000000..c1287cddnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/store/user.ts@@@ -1,0 -1,0 +1,102 @@@++import { createPersistStore } from "@/utils/createPersistStore";++import { getUserInfoApi } from "@/api/apiReq";++import i18next from "i18next";++++export interface UserInfo {++ createTime: string;++ id: string;++ name: string;++ password: string;++ phone?: string;++ mail: string;++ salt: string;++ status: number;++ updateTime: string;++ _id: string;++ avatar?: string;++ isVip?: boolean;++ score?: number;++ income?: number; // 余额字段++ popularizeCode?: string;++ vipInfo?: {++ id: string;++ expireTime: string;++ startTime: string;++ status:++ | "none"++ | "trialing"++ | "monthly_once"++ | "yearly_once"++ | "active_monthly"++ | "active_yearly"++ | "active_nonrenewing"++ | "expired";++ _id: string;++ };++}++++export interface IUserStore {++ token?: string;++ userInfo?: Partial<UserInfo>;++ isAddAccountPorxy: boolean;++ lang: string;++}++++const state: IUserStore = {++ token: undefined,++ userInfo: {},++ // 添加账户是否默认开启代理++ isAddAccountPorxy: false,++ lang: i18next.language || "en",++};++++export const useUserStore = createPersistStore(++ {++ ...state,++ },++ (set, _get) => {++ const methods = {++ // 设置语言++ setLang(lang: string) {++ set({++ lang,++ });++ },++ setIsAddAccountPorxy(isAddAccountPorxy: boolean) {++ set({ isAddAccountPorxy });++ },++ setToken: (token: string) => {++ set({ token });++ },++ setUserInfo: (userInfo: UserInfo) => {++ set({ userInfo });++ },++++ // 获取用户信息++ async getUserInfo() {++ const res = await getUserInfoApi();++ if (res) {++ set({++ userInfo: res.data,++ });++ }++ },++++ // 清除登录状态++ clearLoginStatus: () => {++ set({ token: undefined, userInfo: undefined });++ },++++ // 登出++ logout() {++ methods.clearLoginStatus();++ window.location.href = "/login";++ },++ };++++ return methods;++ },++ {++ name: "User",++ },++);diff --cc project/aitoearn-web/src/utils/FetchService/FetchService.tsindex 00000000,00000000..b7de0d7bnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/FetchService/FetchService.ts@@@ -1,0 -1,0 +1,93 @@@++import { Dictionary, IFetchServiceConfig, RequestParams } from "./types";++++/**++ * 泛型:++ * T=返回类型++ */++class FetchService<T = Response> {++ baseURL: string;++ // 请求拦截++ requestInterceptor?: (++ requestParams: RequestParams,++ ) => RequestParams | void | null;++ // 响应拦截++ responseInterceptor?: (response: Response) => T;++++ constructor({++ baseURL,++ requestInterceptor,++ responseInterceptor,++ }: IFetchServiceConfig<T>) {++ this.baseURL = baseURL;++ this.requestInterceptor = requestInterceptor;++ this.responseInterceptor = responseInterceptor;++ }++++ // 过滤一个字典 value 为undefined的key++ private _filterDictUndefined(data: Dictionary) {++ return Object.fromEntries(++ Object.entries(data).filter(([_, value]) => value !== undefined),++ );++ }++++ public async request(requestParams: RequestParams): Promise<T> {++ return new Promise(async (resolve, reject) => {++ // 请求拦截++ if (this.requestInterceptor) {++ const newRequestParams = this.requestInterceptor(requestParams);++ if (!newRequestParams) return reject(null);++ requestParams = newRequestParams;++ }++++ // body 参数处理++ const fetchURL = requestParams.url.startsWith("http")++ ? requestParams.url++ : this.baseURL + requestParams.url;++ if (!requestParams.body && requestParams.data) {++ // 检查是否为FormData++ if (requestParams.data instanceof FormData) {++ // 如果是FormData,直接设置为body,不需要转JSON++ requestParams = {++ ...requestParams,++ body: requestParams.data,++ // 不手动设置Content-Type,让浏览器自动处理++ };++ } else {++ // 非FormData对象走原来的逻辑++ requestParams.data = this._filterDictUndefined(requestParams.data);++ requestParams = {++ ...requestParams,++ body: requestParams.body++ ? requestParams.body++ : JSON.stringify(requestParams.data),++ headers: {++ ...(requestParams["headers"] || {}),++ "content-type":++ // @ts-ignore++ requestParams["headers"]["Content-Type"] ?? "application/json",++ },++ };++ }++ }++++ // params 参数处理++ let params: string | null = null;++ if (requestParams.params) {++ requestParams.params = this._filterDictUndefined(requestParams.params);++ params = new URLSearchParams(requestParams.params).toString();++ }++++ const res = await fetch(params ? `${fetchURL}?${params}` : fetchURL, {++ ...requestParams,++ });++++ if (this.responseInterceptor) {++ return resolve(this.responseInterceptor(res));++ }++++ resolve(res as T);++ });++ }++}++++export default FetchService;diff --cc project/aitoearn-web/src/utils/FetchService/types.d.tsindex 00000000,00000000..74251a4enew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/FetchService/types.d.ts@@@ -1,0 -1,0 +1,18 @@@++export interface RequestParams extends RequestInit {++ url: string;++ method: "GET" | "POST" | "PUT" | "DELETE";++ data?: Dictionary;++ params?: Dictionary;++}++++export type Dictionary<T = any> = {++ [key: string]: T;++};++++export interface IFetchServiceConfig<T = Response> {++ baseURL: string;++ requestInterceptor?: (++ requestParams: RequestParams,++ ) => RequestParams | void | null;++ responseInterceptor?: (response: Response) => T;++}diff --cc project/aitoearn-web/src/utils/createPersistStore.tsindex 00000000,00000000..fab9efdfnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/createPersistStore.ts@@@ -1,0 -1,0 +1,86 @@@++import { create } from "zustand";++import { combine, persist, createJSONStorage } from "zustand/middleware";++import { indexedDBStorage } from "./storage";++import lodash from "lodash";++++type Updater<T> = (updater: (value: T) => void) => void;++++type SecondParam<T> = T extends (++ _f: infer _F,++ _s: infer S,++ ...args: infer _U++) => any++ ? S++ : never;++++type MakeUpdater<T> = {++ lastUpdateTime: number;++ _hasHydrated: boolean;++++ markUpdate: () => void;++ update: Updater<T>;++ setHasHydrated: (state: boolean) => void;++};++++type SetStoreState<T> = (++ partial: T | Partial<T> | ((state: T) => T | Partial<T>),++ replace?: boolean | undefined,++) => void;++++/**++ * 创建一个数据持久化的 store++ * 想要更改的时候持久化数据必须使用 set 方法++ * @param state++ * @param methods++ * @param persistOptions++ */++export function createPersistStore<T extends object, M>(++ state: T,++ methods: (++ set: SetStoreState<T & MakeUpdater<T>>,++ get: () => T & MakeUpdater<T>,++ ) => M,++ persistOptions: SecondParam<typeof persist<T & M & MakeUpdater<T>>>,++) {++ persistOptions.storage = createJSONStorage(() => indexedDBStorage);++ const oldOonRehydrateStorage = persistOptions?.onRehydrateStorage;++ persistOptions.onRehydrateStorage = (state) => {++ oldOonRehydrateStorage?.(state);++ return () => state.setHasHydrated(true);++ };++++ return create(++ persist(++ combine(++ {++ ...state,++ lastUpdateTime: 0,++ _hasHydrated: false,++ },++ (set, get) => {++ return {++ ...methods(set as any, get as any),++++ markUpdate() {++ set({ lastUpdateTime: Date.now() } as Partial<++ T & M & MakeUpdater<T>++ >);++ },++ update(updater) {++ const state = lodash.cloneDeep(get());++ updater(state);++ set({++ ...state,++ lastUpdateTime: Date.now(),++ });++ },++ setHasHydrated: (state: boolean) => {++ set({ _hasHydrated: state } as Partial<T & M & MakeUpdater<T>>);++ },++ } as M & MakeUpdater<T>;++ },++ ),++ persistOptions as any,++ ),++ );++}diff --cc project/aitoearn-web/src/utils/general.tsindex 00000000,00000000..99190795new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/general.ts@@@ -1,0 -1,0 +1,31 @@@++import { Metadata } from "next";++import { useTranslation } from "@/app/i18n";++++export async function getPageTitle(name: string, lng: string) {++ const { t } = await useTranslation(lng);++ return `${name} —— ${t("title")}`;++}++++/**++ * 拦截 Metadata++ * @param props++ * @param lng++ */++export async function getMetadata(++ props: Metadata,++ lng: string,++): Promise<Metadata> {++ const title = await getPageTitle(++ typeof props.title === "string" ? props.title : "",++ lng,++ );++ return {++ ...props,++ title,++ referrer: "no-referrer",++ };++}++++export function sleep(ms: number) {++ return new Promise((resolve) => setTimeout(resolve, ms));++}diff --cc project/aitoearn-web/src/utils/index.tsindex 00000000,00000000..3c00b640new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/index.ts@@@ -1,0 -1,0 +1,129 @@@++import dayjs from "dayjs";++import { message } from "antd";++/**++ * 生成唯一ID++ */++export function generateUUID(): string {++ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {++ const r = (Math.random() * 16) | 0;++ const v = c === "x" ? r : (r & 0x3) | 0x8;++ return v.toString(16);++ });++}++++// 等待n毫秒++export function sleep(ms: number) {++ return new Promise((resolve) => setTimeout(resolve, ms));++}++++// 获取文件路径中的文件名和后缀++export const getFilePathName = (path: string) => {++ if (!path)++ return {++ filename: "",++ suffix: "",++ };++ const path1 = path.split("\\")[path.split("\\").length - 1];++ const filename = path1.split("/")[path1.split("/").length - 1];++ return {++ filename,++ suffix: filename.split(".")[filename.split(".").length - 1],++ };++};++++// 格式化时间++export function formatTime(++ time: string | number | Date,++ format: string = "YYYY-MM-DD HH:mm:ss",++) {++ return dayjs(time).format(format);++}++++/**++ * 将数值转换为 hh:mm:ss 格式的字符串++ * 7 -> 00:00:07++ * @param seconds - 要转换的秒数++ * @returns 格式化后的时间字符串++ */++export function formatSeconds(seconds: number): string {++ const hours = Math.floor(seconds / 3600);++ const minutes = Math.floor((seconds % 3600) / 60);++ const secs = seconds % 60;++++ const pad = (num: number) => num.toString().padStart(2, "0");++++ return `${pad(hours)}:${pad(minutes)}:${pad(secs)}`;++}++++/**++ * 根据输入数值返回中文描述++ * @param value 输入的数值++ * @returns 如果数值超过1000返回'n千',超过10000返回'n万'++ */++export function describeNumber(value: number): string {++ if (!value) return `${value ?? 0}`;++++ if (value >= 10000) {++ return `${(value / 10000).toFixed(2).replace(/\.?0+$/, "")}w`;++ } else if (value >= 1000) {++ return `${(value / 1000).toFixed(2).replace(/\.?0+$/, "")}k`;++ } else {++ return value.toString();++ }++}++++// 去除字符串中的话题++export function parseTopicString(input: string): {++ topics: string[];++ cleanedString: string;++} {++ // 使用正则表达式提取字符串中的部分++ const extractedParts = input.match(/#(\S+)/g) || [];++++ // 在原始输入中用空字符串替换提取的部分++ let cleanedString = input;++ extractedParts.forEach((part) => {++ cleanedString = cleanedString.replace(part, "").trim();++ });++++ // 创建提取的话题数组++ const topics = extractedParts.map((part) => {++ const match = part.match(/#(\S+)/);++ return match ? match[1] : "";++ });++++ return { topics, cleanedString };++}++++// 敏感词检测-多余检测动画++export async function sensitivityLoading() {++ const key = generateUUID();++ const msgs = [++ "敏感词检测中",++ "色情检测中",++ "abuse检测中",++ "广告法检测中",++ "Error检测中",++ ];++++ for (const msg of msgs) {++ message.open({++ key,++ type: "loading",++ content: `${msg} ...`,++ });++ await sleep(200);++ }++ message.destroy(key);++}++++// base64转Blob++export function dataURLToBlob(dataURL: string): Blob {++ const [header, data] = dataURL.split(",");++ const mime = header.match(/data:(.*?);base64/)?.[1] || "image/png";++ const binary = atob(data);++ const len = binary.length;++ const u8 = new Uint8Array(len);++ for (let i = 0; i < len; i++) u8[i] = binary.charCodeAt(i);++ return new Blob([u8], { type: mime });++}diff --cc project/aitoearn-web/src/utils/ipLocation.tsindex 00000000,00000000..68d789d5new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/ipLocation.ts@@@ -1,0 -1,0 +1,83 @@@++/**++ * IP地理位置获取工具++ * 使用JSONP方式调用IP地理位置服务++ */++++export interface IpLocationInfo {++ ip: string;++ location: string;++ asn: string;++ org: string;++}++++/**++ * 获取IP地理位置信息++ * @returns Promise<IpLocationInfo>++ */++export const getIpLocation = (): Promise<IpLocationInfo> => {++ return new Promise((resolve, reject) => {++ // 创建全局回调函数++ const callbackName = `ipLocationCallback_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;++++ // 定义回调函数++ (window as any)[callbackName] = (ip: string, location: string, asn: string, org: string) => {++ // 清理回调函数和script标签++ delete (window as any)[callbackName];++ const script = document.getElementById(`ip-location-script-${callbackName}`);++ if (script) {++ document.head.removeChild(script);++ }++++ resolve({ ip, location, asn, org });++ };++++ // 创建script标签++ const script = document.createElement('script');++ script.id = `ip-location-script-${callbackName}`;++ script.src = `https://ping0.cc/geo/jsonp/${callbackName}`;++ script.onerror = () => {++ // 清理回调函数++ delete (window as any)[callbackName];++ reject(new Error('获取IP地理位置信息失败'));++ };++++ // 设置超时++ const timeout = setTimeout(() => {++ delete (window as any)[callbackName];++ const scriptElement = document.getElementById(`ip-location-script-${callbackName}`);++ if (scriptElement) {++ document.head.removeChild(scriptElement);++ }++ reject(new Error('获取IP地理位置信息超时'));++ }, 10000);++++ // 监听加载完成++ script.onload = () => {++ clearTimeout(timeout);++ };++++ // 添加到页面++ document.head.appendChild(script);++ });++};++++/**++ * 从位置信息中提取国家++ * @param location 位置信息字符串++ * @returns 国家名称++ */++export const extractCountry = (location: string): string => {++ // 位置信息通常格式为: "国家 省份 城市" 或 "国家"++ const parts = location.split(' ');++ return parts[0] || location;++};++++/**++ * 格式化地理位置信息++ * @param info IP地理位置信息++ * @returns 格式化后的字符串++ */++export const formatLocationInfo = (info: IpLocationInfo): string => {++ const country = extractCountry(info.location);++ return `${country} | ${info.ip}`;++};diff --cc project/aitoearn-web/src/utils/oss.tsindex 00000000,08254651..08254651mode 000000,100644..100644--- a/project/aitoearn-web/src/utils/oss.ts+++ b/project/aitoearn-web/src/utils/oss.tsdiff --cc project/aitoearn-web/src/utils/otherRequest.tsindex 00000000,00000000..ba476db7new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/otherRequest.ts@@@ -1,0 -1,0 +1,61 @@@++import FetchService from "@/utils/FetchService/FetchService";++import { RequestParams } from "@/utils/FetchService/types";++import { request } from "@/utils/request";++++class OtherRequest {++ fetchService;++++ constructor(baseURL: string) {++ this.fetchService = new FetchService({++ baseURL,++ requestInterceptor(requestParams) {++ return requestParams;++ },++ responseInterceptor(response) {++ return response;++ },++ });++ }++++ async request<T = any>(params: RequestParams) {++ const res = await this.fetchService.request(params);++ return (await res.json()) as T;++ }++++ get<T>(url: string, data?: any) {++ return request<T>({++ url,++ params: data,++ method: "GET",++ });++ }++++ post<T>(url: string, data?: any) {++ return request<T>({++ url,++ data: data,++ method: "POST",++ });++ }++++ put<T>(url: string, data?: any) {++ return request<T>({++ url,++ data: data,++ method: "PUT",++ });++ }++++ delete<T>(url: string, data?: any) {++ return request<T>({++ url,++ data: data,++ method: "DELETE",++ });++ }++}++++const requestPlatapi = new OtherRequest("");++export async function requestPlatApi<T = any>(params: RequestParams) {++ return await requestPlatapi.request(params);++}diff --cc project/aitoearn-web/src/utils/regulars.tsindex 00000000,00000000..9120920cnew file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/regulars.ts@@@ -1,0 -1,0 +1,10 @@@++// 身份证号校验正则++export const idNumberReg =++ /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/;++++// 手机号正则验证++export const phoneReg = /^(?:(?:\+|00)86)?1\d{10}$/;++++// 邮箱验证++export const emailReg =++ /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;diff --cc project/aitoearn-web/src/utils/request.tsindex 00000000,00000000..4d07c6f8new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/request.ts@@@ -1,0 -1,0 +1,128 @@@++import FetchService from "@/utils/FetchService/FetchService";++import { RequestParams } from "@/utils/FetchService/types";++import { useUserStore } from "@/store/user";++import { message } from "antd";++++type ResponseType<T> = {++ code: string | number;++ data: T;++ message: string;++ url: string;++};++++type RequestParamsWithSilent = RequestParams & {++ silent?: boolean; // 是否静默处理错误,不显示提示++};++++const fetchService = new FetchService({++ baseURL: `${process.env.NEXT_PUBLIC_API_URL}/`,++ requestInterceptor(requestParams) {++ const token = useUserStore.getState().token;++++ requestParams.headers = {++ ...(requestParams["headers"] || {}),++ Authorization: token ? `Bearer ${token}` : "",++ };++++ // 添加语言头++ if (typeof window !== "undefined") {++ const lng = useUserStore.getState().lang;++ requestParams.headers = {++ ...requestParams.headers,++ "Accept-Language": lng,++ };++ }++++ return requestParams;++ },++ responseInterceptor(response) {++ return response;++ },++});++++export async function request<T>(params: RequestParamsWithSilent) {++ try {++ const res = await fetchService.request(params);++ const data: ResponseType<T> = await res.json();++++ const lang = useUserStore.getState().lang || "zh-CN";++ const isZh = (lang || "").toLowerCase().startsWith("zh");++ const i18nText = {++ networkBusy: isZh++ ? "网络繁忙,请稍后重试!"++ : "Network busy, please try again later!",++ networkError: isZh++ ? "网络异常,请稍后重试!"++ : "Network error, please try again later!",++ contact: isZh ? "如需帮助请联系客服:" : "Need help? Contact support:",++ };++++ // 未登录拦截++ if (data.code === 401 && !useUserStore.getState().token) {++ return null;++ }++++ // 已登录、但是登录过期++ if (data.code === 401) {++ useUserStore.getState().logout();++ }++++ if (data.code !== 0) {++ if (!params.silent && typeof window !== "undefined") {++ message.warning({++ content: `${data.message || i18nText.networkBusy} ${i18nText.contact} https://t.me/harryyyy2025`,++ key: "apiErrorMessage",++ duration: 6,++ });++ }++ return null;++ }++++ return data;++ } catch (e) {++ console.warn(e);++ if (!params.silent && typeof window !== "undefined") {++ message.error({++ content: `${(useUserStore.getState().lang || "zh-CN").toLowerCase().startsWith("zh") ? "网络异常,请稍后重试!" : "Network error, please try again later!"} ${(useUserStore.getState().lang || "zh-CN").toLowerCase().startsWith("zh") ? "如需帮助请联系客服:" : "Need help? Contact support:"} https://t.me/harryyyy2025`,++ key: "apiErrorMessage",++ duration: 6,++ });++ }++ return null;++ }++}++++export default {++ get<T>(url: string, data?: any, silent?: boolean) {++ return request<T>({++ url,++ params: data,++ method: "GET",++ silent,++ });++ },++ post<T>(url: string, data?: any, silent?: boolean) {++ return request<T>({++ url,++ data: data,++ method: "POST",++ silent,++ });++ },++ put<T>(url: string, data?: any, silent?: boolean) {++ return request<T>({++ url,++ data: data,++ method: "PUT",++ silent,++ });++ },++ delete<T>(url: string, data?: any, silent?: boolean) {++ return request<T>({++ url,++ data: data,++ method: "DELETE",++ silent,++ });++ },++};diff --cc project/aitoearn-web/src/utils/storage.tsindex 00000000,00000000..a1d7f797new file mode 100644--- /dev/null+++ b/project/aitoearn-web/src/utils/storage.ts@@@ -1,0 -1,0 +1,28 @@@++import { StateStorage } from "zustand/middleware";++++class IndexedDBStorage implements StateStorage {++ public async getItem(name: string): Promise<string | null> {++ if (typeof window === "undefined") return null;++ return localStorage.getItem(name);++ }++++ public async setItem(name: string, value: string): Promise<void> {++ if (typeof window === "undefined") return;++ localStorage.setItem(name, value);++ }++++ public async removeItem(name: string): Promise<void> {++ if (typeof window === "undefined") return;++ localStorage.removeItem(name);++ }++++ public async clear(): Promise<void> {++ // try {++ // await clear();++ // } catch (error) {++ // localStorage.clear();++ // }++ }++}++++export const indexedDBStorage = new IndexedDBStorage();diff --cc project/aitoearn-web/tsconfig.jsonindex 00000000,00000000..af055914new file mode 100644--- /dev/null+++ b/project/aitoearn-web/tsconfig.json@@@ -1,0 -1,0 +1,27 @@@++{++ "compilerOptions": {++ "target": "ESNext",++ "lib": ["dom", "dom.iterable", "esnext"],++ "allowJs": true,++ "skipLibCheck": true,++ "strict": true,++ "noEmit": true,++ "esModuleInterop": true,++ "module": "esnext",++ "moduleResolution": "bundler",++ "resolveJsonModule": true,++ "isolatedModules": true,++ "jsx": "preserve",++ "incremental": true,++ "plugins": [++ {++ "name": "next"++ }++ ],++ "paths": {++ "@/*": ["./src/*"]++ }++ },++ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],++ "exclude": ["node_modules"]++}