perf(fulfillment): 优化本地能力选号查询与索引
This commit is contained in:
@@ -80,6 +80,7 @@ from .douyu_goods_service import (
|
||||
)
|
||||
from .file_service import build_file_url
|
||||
from .platform_fulfillment.account_selector import (
|
||||
CapabilityAccount,
|
||||
acquire_account_lease,
|
||||
active_lease_for_account,
|
||||
capability_candidate_accounts,
|
||||
@@ -651,7 +652,7 @@ def recommend_accounts(
|
||||
),
|
||||
)
|
||||
now = _now()
|
||||
candidates_by_id: dict[int, Account] = {}
|
||||
candidates_by_id: dict[int, Account | CapabilityAccount] = {}
|
||||
if cid:
|
||||
for account in capability_candidate_accounts(
|
||||
db,
|
||||
|
||||
Reference in New Issue
Block a user