fix: preserve xpd purchase records in task results
This commit is contained in:
@@ -276,7 +276,7 @@ def sanitize_douyu_task_result(result: dict | None, task_type: str, *, include_d
|
|||||||
data = strip_douyu_raw_snapshots(result)
|
data = strip_douyu_raw_snapshots(result)
|
||||||
if not isinstance(data, dict):
|
if not isinstance(data, dict):
|
||||||
return None
|
return None
|
||||||
for key in (
|
removable_keys = {
|
||||||
"bind_info",
|
"bind_info",
|
||||||
"before_bind_info",
|
"before_bind_info",
|
||||||
"bind_candidates",
|
"bind_candidates",
|
||||||
@@ -287,8 +287,10 @@ def sanitize_douyu_task_result(result: dict | None, task_type: str, *, include_d
|
|||||||
"points_query",
|
"points_query",
|
||||||
"exchange_balance_query",
|
"exchange_balance_query",
|
||||||
"query_act_aliases",
|
"query_act_aliases",
|
||||||
"records",
|
}
|
||||||
):
|
if task_type != "query_xpd_purchase_records":
|
||||||
|
removable_keys.add("records")
|
||||||
|
for key in removable_keys:
|
||||||
data.pop(key, None)
|
data.pop(key, None)
|
||||||
|
|
||||||
# 和平小店任务 result 内嵌 role(含 gameOpenId 等),列表接口剥离其原始快照
|
# 和平小店任务 result 内嵌 role(含 gameOpenId 等),列表接口剥离其原始快照
|
||||||
|
|||||||
Reference in New Issue
Block a user