✨ feat(manga,device): 漫画免签名兜底与 phone 注册身份选项
- /manga 设备池签名路线全部失败时自动降级 wkbrowser 免签名路线(materials/skeleton 三段策略收集原图直链,无需设备/签名/解密),响应附 source: wkbrowser - 新增配置 fanqie.device_identity(默认 pad 保持现状;phone 对齐书源真机注册 payload:host_bit 64 + 补 hardware/device_device/fingerprint 字段) - README 与 openapi.yaml 同步文档,新增 manga_fallback 解析测试
This commit is contained in:
1 parent
84bd3238ab
commit
9aec09bb40
7 files changed
+301
-3
No files matched your search
@@ -58,9 +58,14 @@ type ImageResult struct {
|
||||
Index int `json:"index"`
|
||||
}
|
||||
|
||||
// HandleGetManga 处理漫画请求
|
||||
// HandleGetManga 处理漫画请求;设备池签名路线全部失败时降级 wkbrowser 免签名兜底
|
||||
func HandleGetManga(itemID string, showHTML bool, urlOutputMode string) (interface{}, error) {
|
||||
return getMangaWithRetry(itemID, showHTML, urlOutputMode, 0)
|
||||
res, err := getMangaWithRetry(itemID, showHTML, urlOutputMode, 0)
|
||||
if err == nil {
|
||||
return res, nil
|
||||
}
|
||||
mangaLogger.Warning(fmt.Sprintf("签名路线失败,尝试 wkbrowser 免签名兜底: %v", err))
|
||||
return fetchMangaFallback(itemID, showHTML)
|
||||
}
|
||||
|
||||
// getMangaWithRetry 获取漫画内容,支持设备切换重试
|
||||
|
||||
Reference in new issue
Block a user