【操盘手】 好友最大点赞数 + 好友标签

This commit is contained in:
wong
2025-05-16 09:41:58 +08:00
parent 82dc6940f7
commit ffe6266ee0
4 changed files with 111 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ interface TaskConfig {
workbenchId: number
interval: number
maxLikes: number
friendMaxLikes?: number
startTime: string
endTime: string
contentTypes: string[]
@@ -48,6 +49,8 @@ interface TaskConfig {
todayLikeCount?: number
totalLikeCount?: number
friends?: string[]
enableFriendTags?: boolean
friendTags?: string
}
interface Task {
@@ -341,6 +344,10 @@ export default function AutoLikePage() {
<span className="text-gray-500"></span>
<span>{task.config.maxLikes} </span>
</div>
<div className="flex justify-between text-sm">
<span className="text-gray-500"></span>
<span>{task.config.friendMaxLikes || 3} </span>
</div>
<div className="flex justify-between text-sm">
<span className="text-gray-500"></span>
<span>
@@ -366,6 +373,14 @@ export default function AutoLikePage() {
<div className="text-sm text-gray-500">
{task.config.tagOperator === 1 ? "满足所有标签" : "满足任一标签"}
</div>
{task.config.enableFriendTags && task.config.friendTags && (
<div className="mt-2">
<div className="text-sm font-medium mb-1"></div>
<Badge variant="outline" className="bg-blue-50 border-blue-200">
{task.config.friendTags}
</Badge>
</div>
)}
</div>
</div>