gacha-calendar-core 0.9.12 → 0.9.40
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 +4 -2
- package/core.mjs +666 -170
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ await engine.selfCheck(); // 解析器自检:哪个源解析出 0 条、哪
|
|
|
52
52
|
{
|
|
53
53
|
"schemaVersion": 1,
|
|
54
54
|
"refreshedAt": 1757900000000,
|
|
55
|
-
"parserVersions": { "genshin": 1, "nte":
|
|
55
|
+
"parserVersions": { "genshin": 1, "nte": 2 }, // 各条目解析逻辑版本,源站改版后 +1
|
|
56
56
|
"games": {
|
|
57
57
|
"genshin": {
|
|
58
58
|
"name": "原神",
|
|
@@ -73,9 +73,11 @@ await engine.selfCheck(); // 解析器自检:哪个源解析出 0 条、哪
|
|
|
73
73
|
| 状态 | 含义 | 显示口径 |
|
|
74
74
|
|---|---|---|
|
|
75
75
|
| `null` | 抓到了当期内容 | 正常显示 |
|
|
76
|
-
| `{kind:"nomatch"}` | 请求成功,但源站**没有当期内容** |
|
|
76
|
+
| `{kind:"nomatch"}` | 请求成功,但源站**没有当期内容** | 「新卡池/新活动未公布」(自检报告记作「无匹配/未公布」) |
|
|
77
77
|
| `{kind:"down", reason}` | 抓取或解析**报错**(reason 是归一后的短原因:网络不通 / 超时 / HTTP 403 / 响应格式异常…) | 「卡池/活动失败:<原因>」 |
|
|
78
78
|
|
|
79
|
+
某一侧**没有配置来源**是合法状态,不属于上面三态:宿主应单列一类(DSH 的自检报告记作「未配置」),不要并进 `down`。
|
|
80
|
+
|
|
79
81
|
### storage 用到的键
|
|
80
82
|
|
|
81
83
|
配置(各平台照抄键名,或在没有时使用内置默认值):`order`、`hidden`、`removed`、
|