Fix pid search

This commit is contained in:
PercyDan 2022-11-20 16:52:51 +08:00 committed by GitHub
parent 49e38862af
commit a60286c328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ headers = {
@pid_search.got("pid", prompt="需要查询的图片PID是")
async def _g(event: MessageEvent, state: T_State, pid: str = Arg("pid")):
url = Config.get_config("hibiapi", "HIBIAPI") + "/api/pixiv/"
url = Config.get_config("hibiapi", "HIBIAPI") + "/api/pixiv/illust"
if pid in ["取消", "算了"]:
await pid_search.finish("已取消操作...")
if not is_number(pid):