From f0a434ec2ee714ccdce0ec048b205359f2f3c804 Mon Sep 17 00:00:00 2001 From: jingrow Date: Fri, 27 Jun 2025 20:16:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0jingrow=E7=B3=BB=E7=BB=9Fapi?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/add_bg/utils.py | 4 ++-- apps/jart/utils.py | 4 ++-- apps/jart_v1/utils.py | 4 ++-- apps/jchat/utils.py | 4 ++-- apps/jdescribe/utils.py | 4 ++-- apps/jtranslate/utils.py | 4 ++-- apps/jupscale/utils.py | 4 ++-- apps/jvector/utils.py | 4 ++-- apps/midjourney/utils.py | 4 ++-- apps/ptn_to_tshirt/utils.py | 4 ++-- apps/rmbg/utils.py | 4 ++-- apps/tryon/utils.py | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/apps/add_bg/utils.py b/apps/add_bg/utils.py index 8592041..6b1907d 100644 --- a/apps/add_bg/utils.py +++ b/apps/add_bg/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/jart/utils.py b/apps/jart/utils.py index 8592041..6b1907d 100644 --- a/apps/jart/utils.py +++ b/apps/jart/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/jart_v1/utils.py b/apps/jart_v1/utils.py index 8592041..6b1907d 100644 --- a/apps/jart_v1/utils.py +++ b/apps/jart_v1/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/jchat/utils.py b/apps/jchat/utils.py index 8592041..6b1907d 100644 --- a/apps/jchat/utils.py +++ b/apps/jchat/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/jdescribe/utils.py b/apps/jdescribe/utils.py index 8592041..6b1907d 100644 --- a/apps/jdescribe/utils.py +++ b/apps/jdescribe/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/jtranslate/utils.py b/apps/jtranslate/utils.py index 8592041..6b1907d 100644 --- a/apps/jtranslate/utils.py +++ b/apps/jtranslate/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/jupscale/utils.py b/apps/jupscale/utils.py index 8592041..6b1907d 100644 --- a/apps/jupscale/utils.py +++ b/apps/jupscale/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/jvector/utils.py b/apps/jvector/utils.py index 8592041..6b1907d 100644 --- a/apps/jvector/utils.py +++ b/apps/jvector/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/midjourney/utils.py b/apps/midjourney/utils.py index cb89eb8..a6ccf53 100644 --- a/apps/midjourney/utils.py +++ b/apps/midjourney/utils.py @@ -18,7 +18,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -44,7 +44,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/ptn_to_tshirt/utils.py b/apps/ptn_to_tshirt/utils.py index 8592041..6b1907d 100644 --- a/apps/ptn_to_tshirt/utils.py +++ b/apps/ptn_to_tshirt/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/rmbg/utils.py b/apps/rmbg/utils.py index 8592041..6b1907d 100644 --- a/apps/rmbg/utils.py +++ b/apps/rmbg/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key, diff --git a/apps/tryon/utils.py b/apps/tryon/utils.py index 8592041..6b1907d 100644 --- a/apps/tryon/utils.py +++ b/apps/tryon/utils.py @@ -12,7 +12,7 @@ async def verify_api_credentials_and_balance(api_key: str, api_secret: str, api_ try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.verify_api_credentials_and_balance", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.verify_api_credentials_and_balance", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={"api_key": api_key, "api_secret": api_secret, "api_name": api_name} ) as response: @@ -38,7 +38,7 @@ async def deduct_jingrow_api_usage_fee(api_key: str, api_secret: str, api_name: try: async with aiohttp.ClientSession() as session: async with session.post( - f"{settings.jingrow_api_url}/api/method/jcloud.api.account.deduct_api_usage_fee", + f"{settings.jingrow_api_url}/api/action/jcloud.api.account.deduct_api_usage_fee", headers={"Authorization": f"token {settings.jingrow_api_key}:{settings.jingrow_api_secret}"}, json={ "api_key": api_key,