feat(douyu): 兑换图片默认隐藏 + 供应商直充默认上限800
- 兑换图片仅显示本页面本次发起过兑换的账号,历史截图默认不展示 - douyu_config 增加 gold_api_max_amount,默认800 - 配置弹窗可修改,输入框按上限 clamp,执行器下单前再校验 - 新增迁移0130,补充配置/超限测试
This commit is contained in:
@@ -1537,6 +1537,7 @@ class DouyuConfigOut(BaseModel):
|
||||
gold_api_product_id: str = "111570"
|
||||
gold_api_account_template_name: str = "斗鱼昵称"
|
||||
recharge_duplicate_confirm_minutes: int = 10
|
||||
gold_api_max_amount: int = 800
|
||||
gift_id: str = "23643"
|
||||
skin_id: str = "2942"
|
||||
updated_at: datetime | None = None
|
||||
@@ -1569,6 +1570,7 @@ class DouyuConfigOut(BaseModel):
|
||||
"recharge_duplicate_confirm_minutes": (
|
||||
self.recharge_duplicate_confirm_minutes
|
||||
),
|
||||
"gold_api_max_amount": self.gold_api_max_amount,
|
||||
"gift_id": self.gift_id,
|
||||
"skin_id": self.skin_id,
|
||||
"updated_at": _isoformat(self.updated_at),
|
||||
@@ -1601,6 +1603,7 @@ class DouyuConfigUpdate(BaseModel):
|
||||
gold_api_product_id: str | None = Field(None, max_length=128)
|
||||
gold_api_account_template_name: str | None = Field(None, max_length=64)
|
||||
recharge_duplicate_confirm_minutes: int | None = Field(None, ge=0, le=1440)
|
||||
gold_api_max_amount: int | None = Field(None, ge=1, le=1_000_000)
|
||||
gift_id: str | None = None
|
||||
skin_id: str | None = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user