功能: 接入鱼翅供应商直充渠道
This commit is contained in:
@@ -85,6 +85,9 @@ DOUYU_CONFIG_DEFAULTS = { "manual_id": "G4KA4Qnz4LDp7",
|
||||
"esports_firework_gift_id": "24767",
|
||||
"esports_firework_skin_id": "3850",
|
||||
"gold_pay_type": 1,
|
||||
"gold_recharge_channel": "wechat_qr",
|
||||
"gold_api_product_id": "111570",
|
||||
"gold_api_account_template_name": "斗鱼UID",
|
||||
"gift_id": "23643",
|
||||
"skin_id": "2942",
|
||||
"xpd_act_alias": "20260623KDQFH",
|
||||
@@ -117,6 +120,8 @@ def apply_douyu_config_defaults(config: DouyuConfig) -> bool:
|
||||
changed = True
|
||||
continue
|
||||
normalized = douyu_config_value(field, getattr(config, field, None))
|
||||
if field == "gold_recharge_channel" and normalized not in {"wechat_qr", "supplier_api"}:
|
||||
normalized = DOUYU_CONFIG_DEFAULTS[field]
|
||||
if getattr(config, field, None) != normalized:
|
||||
setattr(config, field, normalized)
|
||||
changed = True
|
||||
|
||||
Reference in New Issue
Block a user