✨ 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:
chenxin committed 2026-10-12 14:53:08 +08:00
1 parent 84bd3238ab
commit 9aec09bb40
7 files changed
+301 -3

No files matched your search

+3
View File
@@ -39,6 +39,8 @@ type RequestLogConfig struct {
type FanqieConfig struct {
Algorithm string `mapstructure:"algorithm"`
Signature string `mapstructure:"signature"` // 签名方法: sign2 / sign4
// 注册设备身份: pad(默认,历史行为)/ phone(对齐手机 App 书源注册 payload)
DeviceIdentity string `mapstructure:"device_identity"`
Content ContentConfig `mapstructure:"content"`
Manga MangaConfig `mapstructure:"manga"`
Video VideoConfig `mapstructure:"video"`
@@ -192,6 +194,7 @@ func setDefaults() {
// 番茄小说配置
viper.SetDefault("fanqie.algorithm", "gorgon")
viper.SetDefault("fanqie.signature", "sign2")
viper.SetDefault("fanqie.device_identity", "pad")
// 内容处理配置
viper.SetDefault("fanqie.content.remove_images", false)