koishi-plugin-maichuni-scorehelper 0.0.14-test → 0.0.16-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
# koishi-plugin-maichuni-scorehelper
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
【未完成】用于舞萌中二节奏分数辅助。
|
|
5
5
|
|
|
6
6
|
## 使用方法
|
|
7
7
|
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
```
|
|
16
16
|
3. 在 Koishi 配置中引入本插件。
|
|
17
17
|
|
|
18
|
+
|
|
18
19
|
## 目录结构
|
|
19
20
|
- src/ 插件源码
|
|
20
21
|
- dist/ 编译输出
|
|
@@ -24,4 +25,4 @@
|
|
|
24
25
|
- typescript@^5.0.0
|
|
25
26
|
|
|
26
27
|
---
|
|
27
|
-
|
|
28
|
+
|
|
@@ -26,9 +26,9 @@ class MaimaiStatus extends koishi_1.Service {
|
|
|
26
26
|
this.timer = null;
|
|
27
27
|
// 内存中保存的分组状态映射: GroupName -> GroupData
|
|
28
28
|
this.groups = new Map();
|
|
29
|
-
// API
|
|
30
|
-
this.PAGE_URL = 'https://
|
|
31
|
-
this.API_URL = 'https://
|
|
29
|
+
// API 地址常量(已切换到反向代理域名以绕过 CC)
|
|
30
|
+
this.PAGE_URL = 'https://maimaistatusreverseproxy.muxyang.com/status/maimai';
|
|
31
|
+
this.API_URL = 'https://maimaistatusreverseproxy.muxyang.com/api/status-page/heartbeat/maimai';
|
|
32
32
|
this.CACHE_FILE = path_1.default.join(__dirname, '../../monitor_cache.json');
|
|
33
33
|
this.UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36';
|
|
34
34
|
this.clientLogger = ctx.logger('maimai-status');
|
package/package.json
CHANGED
|
@@ -60,9 +60,9 @@ export class MaimaiStatus extends Service {
|
|
|
60
60
|
// 内存中保存的分组状态映射: GroupName -> GroupData
|
|
61
61
|
private groups: Map<string, ServiceGroup> = new Map()
|
|
62
62
|
|
|
63
|
-
// API
|
|
64
|
-
private readonly PAGE_URL = 'https://
|
|
65
|
-
private readonly API_URL = 'https://
|
|
63
|
+
// API 地址常量(已切换到反向代理域名以绕过 CC)
|
|
64
|
+
private readonly PAGE_URL = 'https://maimaistatusreverseproxy.muxyang.com/status/maimai'
|
|
65
|
+
private readonly API_URL = 'https://maimaistatusreverseproxy.muxyang.com/api/status-page/heartbeat/maimai'
|
|
66
66
|
private readonly CACHE_FILE = path.join(__dirname, '../../monitor_cache.json')
|
|
67
67
|
private readonly UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
|
|
68
68
|
|