Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Commit

Permalink
🐛修复攻略查询
Browse files Browse the repository at this point in the history
  • Loading branch information
JustUndertaker committed Jan 23, 2022
1 parent f50257f commit 53dd1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/jx3_search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ async def _(event: GroupMessageEvent, name: str = Depends(get_ex_name)):
params = {
"name": name
}
msg, data = await source.get_data_from_api(app_name="前置查询", group_id=event.group_id, params=params)
msg, data = await source.get_data_from_api(app_name="攻略查询", group_id=event.group_id, params=params)
if msg != "success":
msg = f"查询失败,{msg}"
await strategy_query.finish(msg)

img = data['upload']
img = data['url']
await strategy_query.finish(MessageSegment.image(img))


Expand Down

0 comments on commit 53dd1cf

Please sign in to comment.