|
@@ -172,16 +172,17 @@ class SearchMethod(object):
|
|
|
info="通过baidu搜索失败---{}".format(text),
|
|
|
trace_id=trace_id,
|
|
|
)
|
|
|
- xigua_result = xigua_search(keyword=text, sensitive_words=cls.s_words)
|
|
|
- if xigua_result:
|
|
|
- return {"platform": "xg_search", "result": xigua_result[0]}
|
|
|
- else:
|
|
|
- logging(
|
|
|
- code="7001",
|
|
|
- info="通过西瓜搜索失败---{}, 启用兜底方式".format(text),
|
|
|
- trace_id=trace_id,
|
|
|
- )
|
|
|
- return None
|
|
|
+ return None
|
|
|
+ # xigua_result = xigua_search(keyword=text, sensitive_words=cls.s_words)
|
|
|
+ # if xigua_result:
|
|
|
+ # return {"platform": "xg_search", "result": xigua_result[0]}
|
|
|
+ # else:
|
|
|
+ # logging(
|
|
|
+ # code="7001",
|
|
|
+ # info="通过西瓜搜索失败---{}, 启用兜底方式".format(text),
|
|
|
+ # trace_id=trace_id,
|
|
|
+ # )
|
|
|
+ # return None
|
|
|
|
|
|
|
|
|
async def video_sender(video_obj, user, trace_id, platform):
|