From 0dbe1e0ccb7044ee524f23e93cacc0ce0514a5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E8=BE=9E?= Date: Sat, 13 Sep 2025 06:57:34 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20core?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/CallServerAPIs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/CallServerAPIs.py b/core/CallServerAPIs.py index 94a0927..3da853a 100644 --- a/core/CallServerAPIs.py +++ b/core/CallServerAPIs.py @@ -1,6 +1,5 @@ from ProjectCfg import DOMAIN from SNAPI.CallServer import _make_request -from typing import List,Any,Optional,Dict from SNAPI import * ###=========================活动API================================= @@ -36,6 +35,8 @@ def TranslationText(Authorization: str,text:str ,Tolang:str,FromLang:str) -> dic params = {"to":Tolang,"from":FromLang} return _make_request('POST', url, headers, params=params,request_body=text) +###==========================服务器版本========================== + def GetServerVersion() -> dict: """获取服务器版本""" url = f"{DOMAIN}/version"