refactor(fulfillment): 拆分履约服务并修正换绑冷却分类
This commit is contained in:
@@ -16,6 +16,7 @@ from web.backend.services.account_binding import (
|
||||
binding_pending_decision,
|
||||
binding_role_from_result,
|
||||
binding_snapshot,
|
||||
classify_bind_cooldown,
|
||||
derive_from_bind_info,
|
||||
is_pending_binding_role,
|
||||
is_platform_account_bind_cooldown,
|
||||
@@ -627,6 +628,17 @@ def test_bind_cooldown_messages_distinguish_platform_and_customer_accounts():
|
||||
|
||||
assert is_platform_account_bind_cooldown(-200001, customer_message) is False
|
||||
assert is_platform_account_bind_cooldown(-200001, platform_message) is True
|
||||
assert classify_bind_cooldown(-200001, customer_message) == "customer"
|
||||
assert classify_bind_cooldown(-200001, platform_message) == "platform"
|
||||
assert (
|
||||
classify_bind_cooldown(-200001, "斗鱼账号当前绑定角色(旧角色)未到可换绑时间")
|
||||
== "platform"
|
||||
)
|
||||
assert (
|
||||
classify_bind_cooldown(-200001, "待绑定游戏账号(新角色)未到换绑时间")
|
||||
== "customer"
|
||||
)
|
||||
assert classify_bind_cooldown(-1, "系统繁忙,请稍后重试") is None
|
||||
|
||||
|
||||
def test_get_bind_qr_uses_role_param_url_for_mini_qrcode(monkeypatch):
|
||||
|
||||
Reference in New Issue
Block a user