feat(fulfillment): 支持共享账号操作并完善时间线
This commit is contained in:
@@ -202,6 +202,7 @@ class DonateMixin:
|
||||
points_after=account.esports_points,
|
||||
confirmed=confirmed,
|
||||
source_label=gift_name,
|
||||
actor_id=int(task.created_by),
|
||||
)
|
||||
record_gold_spent(
|
||||
db,
|
||||
@@ -211,6 +212,7 @@ class DonateMixin:
|
||||
reason=f"赠送{gift_name} x{gift_count}",
|
||||
source_label=f"赠送{gift_name}",
|
||||
balance_after=account.gold_balance,
|
||||
actor_id=int(task.created_by),
|
||||
)
|
||||
self._mark_task(db, task, "success", message, result)
|
||||
|
||||
@@ -338,6 +340,7 @@ class DonateMixin:
|
||||
expire_at=expire_at,
|
||||
confirmed=confirmed,
|
||||
source_label="精英令",
|
||||
actor_id=int(task.created_by),
|
||||
)
|
||||
# 鱼翅出项:以前只记「积分到账」,花掉的鱼翅没有任何记录 ——
|
||||
# 充值有账、消耗没账,对不上。金额取实测余额差。
|
||||
@@ -349,6 +352,7 @@ class DonateMixin:
|
||||
reason=f"赠送精英令 x{gift_count}",
|
||||
source_label="赠送精英令",
|
||||
balance_after=account.gold_balance,
|
||||
actor_id=int(task.created_by),
|
||||
)
|
||||
self._mark_task(db, task, "success", message, result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user