Skip to content

Let's use AI to Earn!

fix(web): Ensure the uniqueness of flowId and integrate project resources by deleting useless resources. (#191)

布莱恩·奥夫托·杰森张9f8af6b10900
diff --git a/project/web/README.md b/project/web/README.md
index 1ee368ea..f9d71382 100644
--- a/project/web/README.md
+++ b/project/web/README.md
@@ -1,9 +1,9 @@
-# 哎呦賺web端
+# Aitoearn-web
-## 地址
+## Address
https://aitoearn.ai
-## 测试服文档
+## Test api fox
https://app.apifox.com/project/6987843
diff --git a/project/web/src/app/[lng]/hotContent/components/HotContent/hotContent.module.scss b/project/web/src/app/[lng]/hotContent/components/HotContent/hotContent.module.scss
index 837b1224..c1fe6c0b 100644
--- a/project/web/src/app/[lng]/hotContent/components/HotContent/hotContent.module.scss
+++ b/project/web/src/app/[lng]/hotContent/components/HotContent/hotContent.module.scss
@@ -81,7 +81,7 @@
line-height: 30px;
text-align: center;
color: #fff;
- background: url('../../../../../images/bg-rank-index.png') no-repeat center / cover;
+ background: url('../../../../../assets/images/bg-rank-index.png') no-repeat center / cover;
}
.baseInfo {
diff --git a/project/web/src/app/[lng]/not-found.tsx b/project/web/src/app/[lng]/not-found.tsx
index 64a0b4a6..26afdcc4 100644
--- a/project/web/src/app/[lng]/not-found.tsx
+++ b/project/web/src/app/[lng]/not-found.tsx
@@ -39,7 +39,7 @@ export default function NotFound() {
e.currentTarget.style.color = 'var(--theColor5)'
}}
>
- 返回首页
+ Back to Home
</Link>
</div>
)
diff --git a/project/web/src/app/[lng]/tasks/taskPageCore.tsx b/project/web/src/app/[lng]/tasks/taskPageCore.tsx
index 1a3d89aa..3d60cf8f 100644
--- a/project/web/src/app/[lng]/tasks/taskPageCore.tsx
+++ b/project/web/src/app/[lng]/tasks/taskPageCore.tsx
@@ -30,8 +30,8 @@ import { useTransClient } from '@/app/i18n/client'
import DownloadAppModal from '@/components/common/DownloadAppModal'
import DraftSelectionModal from '@/components/PublishDialog/compoents/DraftSelectionModal'
import { useUserStore } from '@/store/user'
+import { generateUUID } from '@/utils'
import { getOssUrl } from '@/utils/oss'
-import http from '@/utils/request'
import styles from './taskPageCore.module.scss'
const { TabPane } = Tabs
@@ -712,7 +712,7 @@ export default function TaskPageCore() {
const images = material.mediaList?.filter((m: any) => m.type !== 'video') || []
const publishData = {
- flowId: publishAccount.uid, // 使用账号的uid作为flowId
+ flowId: `${publishAccount.uid}_${generateUUID()}`, // 使用账号的uid作为flowId
accountType: publishAccount.type,
accountId: publishAccount.id,
title: material.title || task.title,
@@ -841,7 +841,7 @@ export default function TaskPageCore() {
}))
const publishData = {
- flowId: publishAccount.uid, // 使用账号的uid作为flowId
+ flowId: `${publishAccount.uid}_${generateUUID()}`, // 使用账号的uid作为flowId
accountType: publishAccount.type,
accountId: publishAccount.id,
title: acceptedTaskDetail.task?.title,
diff --git a/project/web/src/images/bg-rank-index.png b/project/web/src/assets/images/bg-rank-index.png
similarity index 100%
rename from project/web/src/images/bg-rank-index.png
rename to project/web/src/assets/images/bg-rank-index.png
diff --git a/project/web/src/components/notification/NotificationPanel.tsx b/project/web/src/components/notification/NotificationPanel.tsx
index 1276d785..db28af3f 100644
--- a/project/web/src/components/notification/NotificationPanel.tsx
+++ b/project/web/src/components/notification/NotificationPanel.tsx
@@ -30,6 +30,7 @@ import { PubType } from '@/app/config/publishConfig'
import { useTransClient } from '@/app/i18n/client'
import DownloadAppModal from '@/components/common/DownloadAppModal'
import { useUserStore } from '@/store/user'
+import { generateUUID } from '@/utils'
import { getOssUrl } from '@/utils/oss'
import styles from './NotificationPanel.module.scss'
@@ -287,7 +288,7 @@ const NotificationPanel: React.FC<NotificationPanelProps> = ({ visible, onClose
}))
const publishData = {
- flowId: publishAccount.uid, // 使用账号的uid作为flowId
+ flowId: `${publishAccount.uid}_${generateUUID()}`, // 使用账号的uid作为flowId
accountType: publishAccount.type,
accountId: publishAccount.id,
title: selectedTask.title,