weex优化完成

This commit is contained in:
Administrator
2025-12-15 16:13:00 +08:00
parent 3944e6132b
commit 0c7591984e
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@@ -144,7 +144,7 @@ class WeexTransaction:
response = self.session.get('https://http-gateway2.elconvo.com/api/v1/public/quote/v1/getKlineV2',
params=params, )
for i in response.json()["data"]:
for i in response.json()["data"]["dataList"]:
insert_data = {
'id': int(i[4]),
'open': float(i[3]),
@@ -225,7 +225,7 @@ class WeexTransaction:
# 将目标 datetime 对象转换为时间戳
target_timestamp = target_datetime.timestamp()
return int(target_timestamp)
return int(target_timestamp) * 1000
def close_extra_tabs_in_browser(self):
@@ -353,7 +353,7 @@ class WeexTransaction:
self.pbar.refresh()
if current_minute not in [0, 1, 2, 3, 4, 5, 30, 31, 32, 33, 34, 35]: # 判断是否是 新的30分钟了
# if current_minute not in range(60): # 判断是否是 新的30分钟了
# if current_minute not in range(60): # 判断是否是 新的30分钟了
time.sleep(10)
continue