From 05f92426185c06da17e3f7caceee566f25faa706 Mon Sep 17 00:00:00 2001 From: loveqianool Date: Sun, 18 Feb 2024 03:05:31 +0800 Subject: [PATCH] =?UTF-8?q?Add=20HAR:=20=E4=BA=91=E5=8E=9F=E7=A5=9E?= =?UTF-8?q?=E7=BD=91=E9=A1=B5=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tpls_history.json | 12 ++++++++++++ 云原神网页版.har | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 云原神网页版.har diff --git a/tpls_history.json b/tpls_history.json index 4cc4837..7c2ca8e 100644 --- a/tpls_history.json +++ b/tpls_history.json @@ -3132,6 +3132,18 @@ "date": "2024-02-17 18:59:51", "version": "20240217", "commenturl": "https://github.com/qd-today/templates/issues/535" + }, + "云原神网页版": { + "name": "云原神网页版", + "author": "z", + "url": "https://raw.githubusercontent.com/qd-today/templates/master/云原神网页版.har", + "update": false, + "comments": "打开 https://ys.mihoyo.com/cloud
登录后查找 https://api-cloudgame.mihoyo.com 的连接
将 x-rpc-combo_token 填入 combo_token", + "filename": "云原神网页版.har", + "content": "W3sicmVxdWVzdCI6IHsibWV0aG9kIjogIkdFVCIsICJ1cmwiOiAiaHR0cHM6Ly9hcGktY2xvdWRnYW1lLm1paG95by5jb20vaGs0ZV9jZ19jbi93YWxsZXQvd2FsbGV0L2dldCIsICJoZWFkZXJzIjogW3sibmFtZSI6ICJ4LXJwYy1jb21ib190b2tlbiIsICJ2YWx1ZSI6ICJ7e2NvbWJvX3Rva2VufX0ifV0sICJjb29raWVzIjogW10sICJkYXRhIjogIiJ9LCAicnVsZSI6IHsic3VjY2Vzc19hc3NlcnRzIjogW3sicmUiOiAiZnJlZV90aW1lIiwgImZyb20iOiAiY29udGVudCJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW3sicmUiOiAi55m75b2VIiwgImZyb20iOiAiY29udGVudCJ9XSwgImV4dHJhY3RfdmFyaWFibGVzIjogW3sibmFtZSI6ICJfX2xvZ19fIiwgInJlIjogIlwiZnJlZV90aW1lXCI6XCJcXGQrXCIiLCAiZnJvbSI6ICJjb250ZW50In1dfX1d", + "date": "2024-02-18 03:05:31", + "version": "20240218", + "commenturl": "https://github.com/qd-today/templates/issues/538" } } } \ No newline at end of file diff --git a/云原神网页版.har b/云原神网页版.har new file mode 100644 index 0000000..076895b --- /dev/null +++ b/云原神网页版.har @@ -0,0 +1,37 @@ +[ + { + "request": { + "method": "GET", + "url": "https://api-cloudgame.mihoyo.com/hk4e_cg_cn/wallet/wallet/get", + "headers": [ + { + "name": "x-rpc-combo_token", + "value": "{{combo_token}}" + } + ], + "cookies": [], + "data": "" + }, + "rule": { + "success_asserts": [ + { + "re": "free_time", + "from": "content" + } + ], + "failed_asserts": [ + { + "re": "登录", + "from": "content" + } + ], + "extract_variables": [ + { + "name": "__log__", + "re": "\"free_time\":\"\\d+\"", + "from": "content" + } + ] + } + } +] \ No newline at end of file