From 112bd3b938cee2ce70397412095f8fd04d6a6e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Tue, 25 Feb 2025 16:17:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E8=B0=83=E6=95=B4=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/userScripts/tus-mission.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/userScripts/tus-mission.vue b/src/components/userScripts/tus-mission.vue index d1613b14..7b2ed409 100644 --- a/src/components/userScripts/tus-mission.vue +++ b/src/components/userScripts/tus-mission.vue @@ -153,8 +153,9 @@ async function tryAuto(): Promise { if (shareResp.retcode === 0) { await TGLogger.Script("[米游币任务]分享成功"); isShare = true; + } else { + await TGLogger.Script(`[米游币任务]分享失败:${shareResp.retcode} ${shareResp.message}`); } - await TGLogger.Script(`[米游币任务]分享失败:${shareResp.retcode} ${shareResp.message}`); } if (likeCnt < 5 || viewCnt < 3) { await TGLogger.Script(`[米游币任务]正在浏览帖子${post.post.post_id}`); @@ -167,7 +168,7 @@ async function tryAuto(): Promise { } viewCnt++; if (likeCnt < 5) { - const isLike = post.self_operation.upvote_type === 1; + const isLike = post.self_operation?.upvote_type === 1; if (isLike) { await TGLogger.Script(`[米游币任务]帖子${post.post.post_id}已点赞,跳过`); continue; @@ -179,8 +180,10 @@ async function tryAuto(): Promise { likeCnt++; } else { await TGLogger.Script(`[米游币任务]点赞失败:${likeResp.retcode} ${likeResp.message}`); + continue; } await TGLogger.Script(`[米游币任务]正在取消点赞帖子${post.post.post_id}`); + await new Promise((resolve) => setTimeout(resolve, 1000)); const unlikeResp = await apiHubReq.post.like(post.post.post_id, ckPost, true); if (unlikeResp.retcode === 0) { await TGLogger.Script("[米游币任务]取消点赞成功");