This commit is contained in:
Marsway 2026-02-03 17:25:17 +08:00
parent e0bdc7331b
commit 02cfa022ac
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ huobanyun_service = HuobanyunService()
async def feishu_external_query(
req: FeishuExternalQueryRequest, x_feishu_token: str | None = Header(default=None)
):
if not feishu_service.verify_token(x_feishu_token or req.token):
if not feishu_service.verify_token(x_feishu_token):
raise HTTPException(status_code=403, detail="invalid token")
result = await huobanyun_service.query(req)
options = result.get("options", [])

View File

@ -176,7 +176,7 @@ class HuobanyunService:
else:
offset = 0
key = req.key or raw.get("key") or raw.get("field") or ""
key = req.key or raw.get("key") or raw.get("field") or req.token or ""
key = self._resolve_field_key(str(key)) if key else ""
query_value = req.query or req.keyword or ""
linkage_params = req.linkage_params or raw.get("linkage_params") or {}