fix(douyu): 拆分账号资格活动窗口与库存语义
This commit is contained in:
@@ -62,7 +62,7 @@ def serialize_goods(raw: Mapping[str, Any]) -> dict[str, Any]:
|
||||
"mark": mark,
|
||||
"count": _to_int(_first_value(raw, "count")),
|
||||
"elite_limited": _to_int(_first_value(raw, "eliteLimited")),
|
||||
"is_limited": bool(mark) or open_status == 0,
|
||||
"is_limited": str(status_value or "") == "1",
|
||||
"raw": _json_safe(dict(raw)),
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ def serialize_snapshot(row: DouyuGoodsSnapshot) -> dict[str, Any]:
|
||||
"mark": mark,
|
||||
"count": _to_int(_first_value(raw, "count")),
|
||||
"elite_limited": _to_int(_first_value(raw, "eliteLimited")),
|
||||
"is_limited": bool(mark) or open_status == 0,
|
||||
"is_limited": str(row.status or "") == "1",
|
||||
"raw": raw,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user