koishi-plugin-maichuni-scorehelper 0.0.14-test → 0.0.15-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
@@ -15,6 +15,8 @@
15
15
  ```
16
16
  3. 在 Koishi 配置中引入本插件。
17
17
 
18
+ > 提示:舞萌状态监控默认使用反向代理域名 `maimaistatusreverseproxy.muxyang.com` 以绕过目标站点的 CC 防护。
19
+
18
20
  ## 目录结构
19
21
  - src/ 插件源码
20
22
  - dist/ 编译输出
@@ -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://status.awmc.cc/status/maimai';
31
- this.API_URL = 'https://status.awmc.cc/api/status-page/heartbeat/maimai';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-maichuni-scorehelper",
3
- "version": "0.0.14-test",
3
+ "version": "0.0.15-test",
4
4
  "description": "一个基础的 Koishi 插件,未来用于舞萌中二节奏分数辅助。",
5
5
  "keywords": [
6
6
  "koishi",
@@ -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://status.awmc.cc/status/maimai'
65
- private readonly API_URL = 'https://status.awmc.cc/api/status-page/heartbeat/maimai'
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