From 5ecf1d9342c6a663aa71ee5fd0b88c913762d6d9 Mon Sep 17 00:00:00 2001 From: EarthMessenger <49364506+EarthMessenger@users.noreply.github.com> Date: Mon, 3 Jan 2022 08:20:58 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=86=AC=E6=97=A5?= =?UTF-8?q?=E7=BB=98=E7=89=88=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- misc.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/misc.md b/misc.md index d52933b..262e82a 100644 --- a/misc.md +++ b/misc.md @@ -85,3 +85,44 @@ application/json ({ advertisement: { image: Image; url: string; id: number; }; }) + +## 冬日绘版内容 + + + + + + + + + + +
请求GET /paintboard/board
响应主体text/plain
+ +## 冬日绘版更新 token + + + + + + + + + + +
请求POST /paintboard/resetToken
响应主体application/json({ token: string })
+注:不需要 CSRF 令牌。 + +## 冬日绘版更新检测 + + + + + + + + + + +
请求GET wss://ws.luogu.com.cn/ws
响应主体自己意会
+ From 74b21ad40a71971ebd34a5fe70aea3fb6facb266 Mon Sep 17 00:00:00 2001 From: EarthMessenger <49364506+EarthMessenger@users.noreply.github.com> Date: Mon, 3 Jan 2022 14:37:24 +0800 Subject: [PATCH 2/3] Update misc.md --- misc.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/misc.md b/misc.md index 262e82a..91607ce 100644 --- a/misc.md +++ b/misc.md @@ -108,7 +108,7 @@ 响应主体 - application/json({ token: string }) + application/json({ token: string; }) 注:不需要 CSRF 令牌。 @@ -126,3 +126,22 @@ +## 冬日绘版绘制 + + + + + + + + + + + + + + + + + +
请求POST /paintboard/paint
参数{ token: string; }
请求主体application/json({ x: int; y: int; color: char; })
响应主体application/json({})
From 7a44eb5f2ba8fd783359983177940c0536010724 Mon Sep 17 00:00:00 2001 From: EarthMessenger <49364506+EarthMessenger@users.noreply.github.com> Date: Sun, 16 Jan 2022 13:03:21 +0800 Subject: [PATCH 3/3] Update misc.md --- misc.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/misc.md b/misc.md index 91607ce..596a1b2 100644 --- a/misc.md +++ b/misc.md @@ -95,25 +95,24 @@ 响应主体 - text/plain + text/plain (1000 行 * 600 列的字符矩阵,第 i 行第 j 个字符表示第 j 行第 i 个像素。) -## 冬日绘版更新 token +## 冬日绘版重置 token - + - +
请求POST /paintboard/resetToken POST /paintboard/resetToken
响应主体application/json({ token: string; })application/json ({ token: string; })
-注:不需要 CSRF 令牌。 -## 冬日绘版更新检测 + ## 冬日绘版绘制 - + - + - + - +
请求POST /paintboard/paint POST /paintboard/paint
参数{ token: string; }{ token?: string; }
请求主体application/json({ x: int; y: int; color: char; })application/json ({ x: number; y: number; color: number; })
响应主体application/json({})application/json ({})