Skip to content

Let's use AI to Earn!

问题修复

daoyian751d2f563bbf
diff --git a/electron/main/interaction/service.ts b/electron/main/interaction/service.ts
index 5e8da047..4c9af3f5 100644
--- a/electron/main/interaction/service.ts
+++ b/electron/main/interaction/service.ts
@@ -231,7 +231,7 @@ export class InteractionService {
// ----- 3-收藏作品 -----
let isCollect: 0 | 1 = 0;
- if (option.platform === 'KWAI') {
+ if (option.platform != 'KWAI') {
try {
const isCollectRes = await platController.shoucangDyOther(
account,
diff --git a/src/views/replyother/replyother.tsx b/src/views/replyother/replyother.tsx
index 7021f20e..04b132f6 100644
--- a/src/views/replyother/replyother.tsx
+++ b/src/views/replyother/replyother.tsx
@@ -144,7 +144,12 @@ export default function Page() {
console.log('------ 开始获取进程中互动信息');
const res = await ipcGetAutoRunOfInteractionInfo();
console.log('------ 获取进程中互动信息结果:', res);
- setRunningInteractions([{ ...res }]);
+ if (res) {
+ setRunningInteractions([{ ...res }]);
+ }else{
+ setRunningInteractions([]);
+ }
+
} catch (error) {
console.error('------ 获取进程中互动信息失败:', error);
message.error('获取进程中互动信息失败');
@@ -1007,10 +1012,10 @@ export default function Page() {
},
{
title: '收藏状态',
- dataIndex: 'replyContent',
- key: 'replyContent',
+ dataIndex: 'isCollect',
+ key: 'isCollect',
render: (isCollect) =>
- isCollect ? '已收藏' : '未收藏',
+ isCollect == 1 ? '已收藏' : '未收藏',
},
{
title: '互动时间',