团队积分V1

This commit is contained in:
2026-08-14 15:23:46 +08:00
parent 516106c045
commit fac54b5667
70 changed files with 6670 additions and 4649 deletions
+2 -1
View File
@@ -60,7 +60,7 @@ async def _run_credit_maintenance_once(batch_size: int = 500) -> dict[str, Any]:
)
granted = 0
for period_id, subscription_id, user_id in grant_candidates:
for period_id, subscription_id, user_id, team_id in grant_candidates:
async with async_session() as db:
try:
changed = await grant_due_subscription_period_by_id(
@@ -68,6 +68,7 @@ async def _run_credit_maintenance_once(batch_size: int = 500) -> dict[str, Any]:
period_id=period_id,
subscription_id=subscription_id,
user_id=user_id,
team_id=team_id,
request_time=checked_at,
)
await db.commit()