更新local_app_installer.py
This commit is contained in:
parent
41e6f44bfc
commit
4dcfcf3e10
@ -934,7 +934,7 @@ async def get_app_marketplace(
|
||||
):
|
||||
"""获取应用市场数据,支持搜索、分页和排序"""
|
||||
try:
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.local_app.get_local_apps"
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.jlocal.get_local_app_list"
|
||||
|
||||
# 构建过滤条件
|
||||
filters = {"public": 1}
|
||||
@ -994,7 +994,7 @@ async def get_app_marketplace(
|
||||
async def get_app_detail(app_name: str):
|
||||
"""获取应用详情"""
|
||||
try:
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.local_app.get_local_app"
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.jlocal.get_local_app"
|
||||
params = {"name": app_name}
|
||||
|
||||
headers = get_jingrow_cloud_api_headers()
|
||||
@ -1023,7 +1023,7 @@ async def get_my_published_apps(
|
||||
if not session_cookie:
|
||||
raise HTTPException(status_code=401, detail="未提供认证信息")
|
||||
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.local_app.get_my_local_app_list"
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.jlocal.get_my_local_app_list"
|
||||
|
||||
# 构建参数
|
||||
params = {
|
||||
@ -1072,7 +1072,7 @@ async def delete_published_app(request: Request, payload: Dict[str, Any]):
|
||||
if not record_name:
|
||||
raise HTTPException(status_code=400, detail="记录名称不能为空")
|
||||
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.local_app.delete_local_app"
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.jlocal.delete_local_app"
|
||||
|
||||
headers = get_jingrow_cloud_api_headers()
|
||||
headers['Cookie'] = f'sid={session_cookie}'
|
||||
@ -1160,7 +1160,7 @@ async def create_app(
|
||||
app_image: str = Form(None)
|
||||
):
|
||||
try:
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.local_app.create_local_app"
|
||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.jlocal.create_local_app"
|
||||
|
||||
headers = get_jingrow_cloud_api_headers()
|
||||
headers['Content-Type'] = 'application/json'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user