fwefwf
This commit is contained in:
Binary file not shown.
@@ -339,6 +339,10 @@ class WeexTransaction:
|
||||
time.sleep(10)
|
||||
continue
|
||||
|
||||
# 判断抓取的数据是否正确
|
||||
if self.get_now_time() != self.kline_3["id"]:
|
||||
continue
|
||||
|
||||
new_price_datas = self.get_price()
|
||||
if not new_price_datas:
|
||||
logger.info("获取最新价格有问题!!!")
|
||||
@@ -349,10 +353,6 @@ class WeexTransaction:
|
||||
new_price_datas1 = sorted(new_price_datas, key=lambda x: x["id"])
|
||||
self.kline_1, self.kline_2, self.kline_3 = new_price_datas1[-3:]
|
||||
|
||||
# 判断抓取的数据是否正确
|
||||
if self.get_now_time() != self.kline_3["id"]:
|
||||
continue
|
||||
|
||||
if self.time_start == self.get_now_time():
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user