update
This commit is contained in:
parent
e0bdc7331b
commit
02cfa022ac
|
|
@ -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", [])
|
||||
|
|
|
|||
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue