Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
接受renwu报错
bulaienaofutuojiesenzhang34e7096a7dec
diff --git a/src/api/notification.ts b/src/api/notification.tsindex c6acadce..0c7c4abe 100644--- a/src/api/notification.ts+++ b/src/api/notification.ts@@ -100,8 +100,8 @@ export const getTaskDetail = (opportunityId: string) => {};// 接受任务-export const acceptTask = (taskId: string, opportunityId: string) => {- return http.post("task/accept", { taskId, opportunityId });+export const acceptTask = (taskId: string, opportunityId: string, accountId?: string) => {+ return http.post("task/accept", { taskId, opportunityId, accountId });};// 提交任务diff --git a/src/app/[lng]/tasks/taskPageCore.tsx b/src/app/[lng]/tasks/taskPageCore.tsxindex 962959b9..22bb950e 100644--- a/src/app/[lng]/tasks/taskPageCore.tsx+++ b/src/app/[lng]/tasks/taskPageCore.tsx@@ -760,7 +760,7 @@ export default function TaskPageCore() {<div style={{ marginBottom: '12px' }}><strong>{t('taskInfo.reward' as any)}:</strong>- <span style={{ color: '#f50', fontWeight: 'bold' }}>¥{task.reward}</span>+ <span style={{ color: '#f50', fontWeight: 'bold' }}>¥ {task.reward/100}</span></div>{/* 发布账号信息 */}@@ -878,7 +878,7 @@ export default function TaskPageCore() {<div style={{ marginBottom: '12px' }}><strong>{t('taskInfo.reward' as any)}:</strong>- <span style={{ color: '#f50', fontWeight: 'bold' }}>¥{task.reward}</span>+ <span style={{ color: '#f50', fontWeight: 'bold' }}>¥ {task.reward/100}</span></div>{/* 发布账号信息 */}@@ -1175,7 +1175,7 @@ export default function TaskPageCore() {fontWeight: 'bold',color: '#d63031'}}>- ¥{taskDetail.reward}+ ¥ {taskDetail.reward/100}</div></div>@@ -1489,7 +1489,7 @@ export default function TaskPageCore() {fontWeight: 'bold',color: '#d63031'}}>- ¥{acceptedTaskDetail.reward}+ ¥ {acceptedTaskDetail.reward/100}</div></div>diff --git a/src/components/notification/NotificationPanel.tsx b/src/components/notification/NotificationPanel.tsxindex dd0e7244..053906d9 100644--- a/src/components/notification/NotificationPanel.tsx+++ b/src/components/notification/NotificationPanel.tsx@@ -235,7 +235,7 @@ const NotificationPanel: React.FC<NotificationPanelProps> = ({ visible, onClosetry {// 第一步:接受任务- const response: any = await acceptTask(selectedTask.id, selectedTask.opportunityId);+ const response: any = await acceptTask(selectedTask.id, selectedTask.opportunityId, account?.account);if (response && response.code === 0) {// 更新进度:第一步完成,开始第二步setTaskProgress(prev => ({