|
@@ -5,6 +5,7 @@ from model.DateUtils import DateUtils
|
|
|
from queue import Queue
|
|
|
from app.api_data.platform_order.order_util import save_order
|
|
|
|
|
|
+
|
|
|
class AudioQiyue:
|
|
|
def __init__(self):
|
|
|
self.db_quchen_text = MysqlUtils().quchen_text
|
|
@@ -13,6 +14,8 @@ class AudioQiyue:
|
|
|
# 限制一分钟120次请求,设置为本地限制70s 120次请求
|
|
|
self.time_sing_size = 120 # 时间队列长度
|
|
|
self.time_sing_ms = 70 # 时间队列,第一对于最后的时间差值.
|
|
|
+ # 暂时没有限制
|
|
|
+ self.time_sing_ms = 0.1
|
|
|
|
|
|
def control_speed(self, time_queue):
|
|
|
if time_queue.full():
|
|
@@ -30,7 +33,7 @@ class AudioQiyue:
|
|
|
|
|
|
order_list = []
|
|
|
# 参数
|
|
|
- order_url = "https://o-api.qiyuept.com" + "/v1/orders"
|
|
|
+ order_url = "https://a-o-api.qiyuept.com" + "/v1/orders"
|
|
|
stage = account[0]
|
|
|
token = account[1]
|
|
|
time_sign = Queue(self.time_sing_size)
|
|
@@ -88,9 +91,6 @@ class AudioQiyue:
|
|
|
save_order(order_list)
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if __name__ == "__main__":
|
|
|
account = ['趣程15期',
|
|
|
'eyJpdiI6Ilc0dmJWTjlHZnpJVVUwM3Q3dlc2aWc9PSIsInZhbHVlIjoiNFFvbXJISzBoTExoa0NJMmtXd0FMUT09IiwibWFjIjoiNTY1YjA3MTVlMzliYzg2MzcxMjZjOTRkYTMyY2FlZmJmNDUyZjYyZGEzM2I4MTMxNDNhMTIwNTIzZWViZjMyMSJ9']
|