feat(automation): 巡检和重登优先保住高价值账号的 CK
价值按套装和积分现算,不看标签。第 1、2 档 6 小时巡检一次,并先占重登名额。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -259,6 +259,21 @@ class TestSelection(_Base):
|
||||
self.make_account(f"a{index}")
|
||||
assert len(self._ids(job)) == 3
|
||||
|
||||
def test_high_value_is_picked_before_plain(self):
|
||||
"""名额先给第 1 档,其次第 2 档,普通失效号排最后。"""
|
||||
job = self.job(batch_size=3)
|
||||
plain = self.make_account("plain")
|
||||
one_suit = self.make_account("one-suit")
|
||||
one_suit.overview_queried_at = datetime.now(UTC)
|
||||
one_suit.high_value_owned = ["套装-兔兔白日梦"]
|
||||
both = self.make_account("both")
|
||||
both.overview_queried_at = datetime.now(UTC)
|
||||
both.high_value_owned = []
|
||||
self.session.commit()
|
||||
|
||||
ids = self._ids(job)
|
||||
assert ids == [both.id, one_suit.id, plain.id]
|
||||
|
||||
|
||||
class TestSettlement(_Base):
|
||||
"""结算:成功清零;失败按分型决定重试还是转人工。
|
||||
|
||||
Reference in New Issue
Block a user