Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文心一格 评论区 #488

Open
chen8945 opened this issue Nov 22, 2023 · 1 comment
Open

文心一格 评论区 #488

chen8945 opened this issue Nov 22, 2023 · 1 comment
Assignees
Labels

Comments

@chen8945
Copy link
Collaborator

chen8945 commented Nov 22, 2023

HAR 模板名称

文心一格

作者信息

chen8945

模板备注及说明

Cookie,完整Cookie或者BDUSS字段均可
https://yige.baidu.com/

HAR 文件名

文心一格.har

其他信息

暂无

HAR 模板内容

[{"comment":"返回对应时间戳和时间","request":{"method":"POST","url":"api://util/timestamp","headers":[],"cookies":[],"data":"ts=&form=&dt="},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"time","re":"\"16位时间戳\": (\\d{13})","from":"content"}]}},{"request":{"method":"GET","url":"https://yige.baidu.com/api/t2p/points/task_complete?t={{time}}&appname=pc&ptask_type=6","headers":[{"name":"Cookie","value":"{{cookie}}"},{"name":"Host","value":"yige.baidu.com"},{"name":"Referer","value":"https://yige.baidu.com/personal/center"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"already signed","from":"content"}],"failed_asserts":[{"re":"need login","from":"content"},{"re":"permission denied","from":"content"}],"extract_variables":[]}},{"comment":"","request":{"method":"GET","url":"https://yige.baidu.com/api/t2p/points/account_balance?t={{time}}&appname=pc&need_detail=1","headers":[{"name":"Cookie","value":"{{cookie}}"},{"name":"Host","value":"yige.baidu.com"},{"name":"Referer","value":"https://yige.baidu.com/personal/center"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"need login","from":"content"}],"extract_variables":[{"name":"balance","re":"\"balance\":(\\d+)","from":"content"},{"name":"balance_free","re":"\"balance_free\":(\\d+)","from":"content"},{"name":"balance_paid","re":"\"balance_paid\":(\\d+)","from":"content"}]}},{"comment":"Unicode转换","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"html_unescape=false&content=总电量:{{balance}},免费电量:{{balance_free}},付费电量:{{balance_paid}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}}]
@chen8945 chen8945 added the har label Nov 22, 2023
@chen8945 chen8945 self-assigned this Nov 22, 2023
@kechen-cn
Copy link

Failed at 1/4 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 405: Method Not Allowed,
Request URL: api://util/timestamp

报错了,没法用了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants