diff options
| author | shihaoyue <[email protected]> | 2024-09-02 20:14:29 +0800 |
|---|---|---|
| committer | shihaoyue <[email protected]> | 2024-09-02 20:14:29 +0800 |
| commit | 2f0ef84088e8c496353b52a49d580da1716f3565 (patch) | |
| tree | 5c211ee46c443d8f268a2a913f119d94e85cfba4 /server/apps | |
| parent | 7c135585bec5e54076508e37baa958ba068e6d18 (diff) | |
update target protect json
Diffstat (limited to 'server/apps')
| -rw-r--r-- | server/apps/target.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/apps/target.py b/server/apps/target.py index 97722ac..3290198 100644 --- a/server/apps/target.py +++ b/server/apps/target.py @@ -39,7 +39,7 @@ class TargetSchema(Schema): ipv4 = String() ipv6 = String() protocol = List(String()) - protect = List(String()) + protect = String() cou = String() isp = String() lat = String() @@ -392,7 +392,7 @@ def target_info(query_data): target["protocol"] = protocol # 防护措施特殊处理 - target["protect"] = str(r.protect).split("|") + target["protect"] = json.dumps(r.protect) target_list.append(target) return {"code": 200, "data": target_list, "total": res_count} |
