🐛 修正类型异常

This commit is contained in:
BTMuli
2026-04-15 19:48:03 +08:00
parent 903662a224
commit 2020d21a29
4 changed files with 13 additions and 9 deletions

View File

@@ -268,7 +268,7 @@ async function tryAuto(skip: boolean = false): Promise<void> {
}
viewCnt++;
if (likeCnt < 5) {
const isLike = (detailResp.data.self_operation?.upvote_type ?? 0) > 0;
const isLike = (detailResp.data.post.self_operation?.upvote_type ?? 0) > 0;
if (isLike) {
await TGLogger.Script(`[米游币任务]帖子${post.post.post_id}已点赞,跳过`);
continue;