20250916-正式上线测试
This commit is contained in:
@@ -178,9 +178,6 @@ class ControlUtils(object):
|
||||
center_y = rect.y + rect.height // 2
|
||||
session.tap(left_x, center_y)
|
||||
|
||||
|
||||
|
||||
|
||||
# 点击一个随机范围
|
||||
@classmethod
|
||||
def tap_mini_cluster(cls, center_x: int, center_y: int, session, points=5, duration_ms=60):
|
||||
|
||||
@@ -17,7 +17,7 @@ class Requester():
|
||||
"vvtoken": token,
|
||||
}
|
||||
url = BaseUrl + cls.prologue
|
||||
result = requests.get(headers=headers, url=url)
|
||||
result = requests.get(headers=headers, url=url, verify=False)
|
||||
json = result.json()
|
||||
data = json.get("data")
|
||||
for i in data:
|
||||
@@ -29,15 +29,18 @@ class Requester():
|
||||
@classmethod
|
||||
def translation(cls, msg, country="英国"):
|
||||
try:
|
||||
if country == "":
|
||||
country = "英国"
|
||||
|
||||
param = {
|
||||
"msg": msg,
|
||||
"country": country,
|
||||
}
|
||||
url = "https://ai.yolozs.com/translation"
|
||||
result = requests.post(url=url, json=param)
|
||||
result = requests.post(url=url, json=param, verify=False)
|
||||
|
||||
LogManager.info(f"翻译 请求的参数:{param}")
|
||||
LogManager.info(f"翻译,状态码:{result.status_code},服务器返回的内容:{result.text}")
|
||||
LogManager.info(f"翻译 请求的参数:{param}", "翻译")
|
||||
LogManager.info(f"翻译,状态码:{result.status_code},服务器返回的内容:{result.text}", "翻译")
|
||||
|
||||
if result.status_code != 200:
|
||||
LogManager.error(f"翻译失败,状态码:{result.status_code},服务器返回的内容:{result.text}")
|
||||
@@ -69,7 +72,7 @@ class Requester():
|
||||
|
||||
try:
|
||||
url = "https://ai.yolozs.com/chat"
|
||||
result = requests.post(url=url, json=param)
|
||||
result = requests.post(url=url, json=param, verify=False)
|
||||
json = result.json()
|
||||
data = json.get("answer", {})
|
||||
session_id = json.get("conversation_id", {})
|
||||
|
||||
Reference in New Issue
Block a user