fix: param passing

This commit is contained in:
Stream 2025-10-24 18:26:33 +08:00
parent 6098dc0242
commit f3c6d1ca1d
No known key found for this signature in database
GPG Key ID: 033728094B100D70
1 changed files with 8 additions and 1 deletions

View File

@ -12,7 +12,14 @@ class PluginAssetManager(BasePluginClient):
return response.content
def extract_asset(self, tenant_id: str, plugin_unique_identifier: str, filename: str) -> bytes:
response = self._request(method="GET", path=f"plugin/{tenant_id}/asset/{plugin_unique_identifier}")
response = self._request(
method="GET",
path=f"plugin/{tenant_id}/asset",
params={
"plugin_unique_identifier": plugin_unique_identifier,
"file_name": filename
}
)
if response.status_code != 200:
raise ValueError(f"can not found asset {plugin_unique_identifier}, {str(response.status_code)}")
return response.content