Skip to content

DJI大疆社区评论区 #246

Description

@AlisaCat-S

HAR 模板名称

DJI大疆社区

作者信息

chen8945,tophtab

模板备注及说明

首页Cookie,Cookie请选中复制, 不要右键复制
https://bbs.dji.com/

HAR 文件名

DJI大疆社区.har

其他信息

暂无

HAR 模板内容

[ { "comment": "基础签到:获取登录信息并提取用户资料", "request": { "method": "GET", "url": "https://bbs.dji.com/api/v2/users/login-info?device=desktop&t={{ multiply(timestamp('float'), 1000)|int }}", "headers": [ { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" }, { "name": "Accept", "value": "application/json, text/plain, */*" }, { "name": "Referer", "value": "https://bbs.dji.com/" }, { "name": "Cookie", "value": "{{cookie}}" } ], "cookies": [] }, "rule": { "success_asserts": [ { "re": "200", "from": "status" }, { "re": "\"item\":\\s*\\{", "from": "content" } ], "failed_asserts": [ { "re": "\"item\":\\s*null|您需要先登录", "from": "content" } ], "extract_variables": [ { "name": "uid", "re": "\"id\":\\s*(\\d+)", "from": "content" }, { "name": "uuid", "re": "\"uuid\":\\s*\"([^\"]+)\"", "from": "content" }, { "name": "username", "re": "\"name\":\\s*\"([^\"]+)\"", "from": "content" }, { "name": "start_credits", "re": "\"credits\":\\s*(\\d+)", "from": "content" }, { "name": "login_signed", "re": "\"signed\":\\s*(true|false)", "from": "content" } ] } }, { "comment": "基础签到:查询签到状态", "request": { "method": "GET", "url": "https://bbs.dji.com/api/v2/home/paulsigns/user?device=desktop&t={{ multiply(timestamp('float'), 1000)|int }}", "headers": [ { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" }, { "name": "Accept", "value": "application/json, text/plain, */*" }, { "name": "Referer", "value": "https://bbs.dji.com/" }, { "name": "Cookie", "value": "{{cookie}}" } ], "cookies": [] }, "rule": { "success_asserts": [ { "re": "200", "from": "status" }, { "re": "\"signed\":\\s*(true|false)", "from": "content" } ], "failed_asserts": [ { "re": "您需要先登录", "from": "content" } ], "extract_variables": [ { "name": "pre_signed", "re": "\"signed\":\\s*(true|false)", "from": "content" }, { "name": "sign_days", "re": "\"days\":\\s*(\\d+)", "from": "content" }, { "name": "sign_lasted", "re": "\"lasted\":\\s*(\\d+)", "from": "content" } ] } }, { "request": { "method": "GET", "url": "{% if pre_signed != \"true\" %}", "headers": [], "cookies": [] }, "rule": { "success_asserts": [], "failed_asserts": [], "extract_variables": [] } }, { "comment": "基础签到:执行每日签到", "request": { "method": "POST", "url": "https://bbs.dji.com/api/v2/home/paulsigns/sign?device=desktop", "headers": [ { "name": "Origin", "value": "https://bbs.dji.com" }, { "name": "Referer", "value": "https://bbs.dji.com/" }, { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" }, { "name": "Accept", "value": "application/json, text/plain, */*" }, { "name": "Content-Type", "value": "application/x-www-form-urlencoded" }, { "name": "Cookie", "value": "{{cookie}}" } ], "cookies": [], "data": "", "mimeType": "application/x-www-form-urlencoded" }, "rule": { "success_asserts": [ { "re": "200", "from": "status" } ], "failed_asserts": [ { "re": "您需要先登录才能继续本操作", "from": "content" } ], "extract_variables": [ { "name": "sign_success", "re": "\"success\":\\s*(\\w+)", "from": "content" }, { "name": "increased", "re": "\"increased\":\\s*(\\d+)", "from": "content" } ] } }, { "request": { "method": "GET", "url": "{% endif %}", "headers": [], "cookies": [] }, "rule": { "success_asserts": [], "failed_asserts": [], "extract_variables": [] } }, { "comment": "空间访问积分:访问自己的个人空间(按规则可得 5 分)", "request": { "method": "GET", "url": "https://bbs.dji.com/pro/user-center?uid={{uid}}&uuid={{uuid}}&do=thread", "headers": [ { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" }, { "name": "Accept", "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" }, { "name": "Referer", "value": "https://bbs.dji.com/" }, { "name": "Cookie", "value": "{{cookie}}" } ], "cookies": [] }, "rule": { "success_asserts": [ { "re": "200", "from": "status" } ], "failed_asserts": [ { "re": "您需要先登录才能继续本操作", "from": "content" } ], "extract_variables": [ { "name": "own_space_status", "re": "(\\d+)", "from": "status" } ] } }, { "comment": "空间访问积分:获取公开帖子列表并提取他人空间候选", "request": { "method": "GET", "url": "https://bbs.dji.com/api/v2/forum/thread/list?device=desktop&channel_slug=home-square-all&limit=10&offset=10&sort_type=latest_posts", "headers": [ { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" }, { "name": "Accept", "value": "application/json, text/plain, */*" }, { "name": "Referer", "value": "https://bbs.dji.com/" }, { "name": "Cookie", "value": "{{cookie}}" } ], "cookies": [] }, "rule": { "success_asserts": [ { "re": "200", "from": "status" }, { "re": "\"items\":\\s*\\[", "from": "content" } ], "failed_asserts": [], "extract_variables": [ { "name": "author_uids", "re": "/\"author\":\\{\"id\":(\\d+),\"uuid\":\"[^\"]+\"/g", "from": "content" }, { "name": "author_uuids", "re": "/\"author\":\\{\"id\":\\d+,\"uuid\":\"([^\"]+)\"/g", "from": "content" } ] } }, { "request": { "method": "GET", "url": "{% for _ in range(10) %}", "headers": [], "cookies": [] }, "rule": { "success_asserts": [], "failed_asserts": [], "extract_variables": [] } }, { "request": { "method": "GET", "url": "{% if int(loop_index0) < len(author_uids) and int(loop_index0) < len(author_uuids) %}", "headers": [], "cookies": [] }, "rule": { "success_asserts": [], "failed_asserts": [], "extract_variables": [] } }, { "comment": "空间访问积分:访问他人个人空间(模板尝试多个候选,每日最多 5 分)", "request": { "method": "GET", "url": "https://bbs.dji.com/pro/user-center?uid={{author_uids[int(loop_index0)]}}&uuid={{author_uuids[int(loop_index0)]}}", "headers": [ { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" }, { "name": "Accept", "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" }, { "name": "Referer", "value": "https://bbs.dji.com/" }, { "name": "Cookie", "value": "{{cookie}}" } ], "cookies": [] }, "rule": { "success_asserts": [ { "re": "200", "from": "status" } ], "failed_asserts": [ { "re": "您需要先登录才能继续本操作", "from": "content" } ], "extract_variables": [ { "name": "other_space_status", "re": "(\\d+)", "from": "status" } ] } }, { "request": { "method": "GET", "url": "{% endif %}", "headers": [], "cookies": [] }, "rule": { "success_asserts": [], "failed_asserts": [], "extract_variables": [] } }, { "request": { "method": "GET", "url": "{% endfor %}", "headers": [], "cookies": [] }, "rule": { "success_asserts": [], "failed_asserts": [], "extract_variables": [] } }, { "comment": "获取最终积分", "request": { "method": "GET", "url": "https://bbs.dji.com/api/v2/users/login-info?device=desktop&t={{ multiply(timestamp('float'), 1000)|int }}", "headers": [ { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" }, { "name": "Accept", "value": "application/json, text/plain, */*" }, { "name": "Referer", "value": "https://bbs.dji.com/" }, { "name": "Cookie", "value": "{{cookie}}" } ], "cookies": [] }, "rule": { "success_asserts": [ { "re": "200", "from": "status" }, { "re": "\"item\":\\s*\\{", "from": "content" } ], "failed_asserts": [ { "re": "\"item\":\\s*null|您需要先登录", "from": "content" } ], "extract_variables": [ { "name": "final_credits", "re": "\"credits\":\\s*(\\d+)", "from": "content" }, { "name": "final_signed", "re": "\"signed\":\\s*(true|false)", "from": "content" } ] } }, { "comment": "积分账本:获取最近任务奖励记录", "request": { "method": "GET", "url": "https://bbs.dji.com/api/v2/users/credits/logs?device=desktop&page=1&page_size=20", "headers": [ { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" }, { "name": "Accept", "value": "application/json, text/plain, */*" }, { "name": "Referer", "value": "https://bbs.dji.com/" }, { "name": "Cookie", "value": "{{cookie}}" } ], "cookies": [] }, "rule": { "success_asserts": [ { "re": "200", "from": "status" }, { "re": "\"list\":\\s*\\[", "from": "content" } ], "failed_asserts": [ { "re": "\"item\":\\s*null|您需要先登录", "from": "content" } ], "extract_variables": [ { "name": "credit_log_types", "re": "/\"type\":\\s*\"([^\"]+)\"/g", "from": "content" }, { "name": "credit_log_changes", "re": "/\"changeCredits\":\\s*(-?\\d+)/g", "from": "content" }, { "name": "credit_log_balances", "re": "/\"availableCredits\":\\s*(\\d+)/g", "from": "content" } ] } }, { "comment": "生成多行日志", "request": { "method": "POST", "url": "api://util/unicode", "headers": [ { "name": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "cookies": [], "data": "html_unescape=false&content={% set final_points = final_credits|default('0')|int %}{% set other_ok_count = [author_uids|default([])|length, author_uuids|default([])|length, 10]|min %}{% set other_points = [((credit_log_types|default([]))|select('equalto', '访问他人空间奖励')|list|length), 5]|min %}{% set own_points = 5 if ('访问个人空间奖励' in (credit_log_types|default([])) or '登录奖励' in (credit_log_types|default([])) or own_space_status|default('0')|int == 200) else 0 %}{% set sign_ok = final_signed|default(pre_signed|default(login_signed|default('false'))) == 'true' %}{% set sign_points = 2 if sign_ok and ('签到奖励' in (credit_log_types|default([])) or (sign_success|default('false')) == 'true') else 0 %}{% set ledger_points = sign_points + own_points + other_points %}{% set display_start = (final_points - ledger_points) if ledger_points > 0 else start_credits|default('?') %}{% set own_ok = own_space_status|default('0')|int == 200 or own_points > 0 %}{% set task_status = '完成' if sign_ok and own_ok and other_ok_count >= 10 else ('部分完成' if sign_ok or own_ok or other_ok_count > 0 else '失败') %}{{ ('【个人信息】\\r\\n' ~ '用户:【' ~ (username|default('')) ~ '】 UID:【' ~ (uid|default('')) ~ '】\\r\\n' ~ '任务情况:【' ~ task_status ~ '】 连签天数:【' ~ (sign_days|default('?')) ~ '】\\r\\n\\r\\n' ~ '【任务情况】\\r\\n' ~ '签到:【' ~ ('成功' if sign_ok else '失败') ~ '】\\r\\n' ~ '个人空间:【' ~ ('成功' if own_ok else '失败') ~ '】\\r\\n' ~ '他人空间:【成功' ~ other_ok_count ~ '次】\\r\\n\\r\\n' ~ '【积分情况】\\r\\n' ~ '积分变化:【' ~ display_start ~ ' -> ' ~ (final_credits|default('?')) ~ '】\\r\\n' ~ '账本拆分:【签到 +' ~ sign_points ~ ';个人空间 +' ~ own_points ~ ';他人空间 +' ~ other_points ~ '】')|urlencode }}", "mimeType": "application/x-www-form-urlencoded" }, "rule": { "success_asserts": [ { "re": "200", "from": "status" }, { "re": "\"状态\": \"200\"", "from": "content" } ], "failed_asserts": [], "extract_variables": [ { "name": "__log__", "re": "\"转换后\": \"([\\s\\S]*?)\",\\s*\"状态\"", "from": "content" } ] } } ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions