Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4352b81c20 |
@@ -85,7 +85,7 @@ class SearchService:
|
|||||||
return results
|
return results
|
||||||
|
|
||||||
# 3. 解析 JSON 提取搜索结果
|
# 3. 解析 JSON 提取搜索结果
|
||||||
try {
|
try:
|
||||||
data = json.loads(stdout)
|
data = json.loads(stdout)
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
print(f"解析 JSON 失败: {stdout[:500]}")
|
print(f"解析 JSON 失败: {stdout[:500]}")
|
||||||
|
|||||||
Reference in New Issue
Block a user