|
@@ -1,7 +1,7 @@
|
|
|
from app.api_data.order_util import *
|
|
|
from model.DataBaseUtils import MysqlUtils
|
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
|
-from model.DingTalkUtils import DingTalkUtils
|
|
|
+from model.DingTalkUtils import DingTalkUtils,DingTalkDecorators
|
|
|
from app.api_data.platform_order.audio_qiyue import AudioQiyue
|
|
|
from app.api_data.platform_order.youshuge import get_youshuge_order_task
|
|
|
from app.api_data.platform_order.yuewen import get_yuewen_order_task
|
|
@@ -27,6 +27,7 @@ def get_new_account(plactform):
|
|
|
return new_data
|
|
|
|
|
|
|
|
|
+@DingTalkDecorators("阳光")
|
|
|
def yangguang(start=None, end=None, new=None):
|
|
|
if start:
|
|
|
start = start + ' 00:00:00'
|
|
@@ -67,6 +68,7 @@ def yangguang(start=None, end=None, new=None):
|
|
|
parse_yg_data(vip_id, stage)
|
|
|
|
|
|
|
|
|
+@DingTalkDecorators("花生")
|
|
|
def huasheng(start=None, end=None):
|
|
|
if start is None:
|
|
|
start = end = du.getNow()
|
|
@@ -83,6 +85,7 @@ def huasheng(start=None, end=None):
|
|
|
executor.shutdown()
|
|
|
|
|
|
|
|
|
+@DingTalkDecorators("七悦")
|
|
|
def qiyue(start=None, end=None, new=None):
|
|
|
if start is None:
|
|
|
start = end = du.getNow()
|
|
@@ -95,6 +98,7 @@ def qiyue(start=None, end=None, new=None):
|
|
|
get_qiyue_order_task(start, end, account)
|
|
|
|
|
|
|
|
|
+@DingTalkDecorators("文鼎")
|
|
|
def wending(start=None, end=None, new=None):
|
|
|
if start is None:
|
|
|
start = end = du.getNow()
|
|
@@ -108,6 +112,7 @@ def wending(start=None, end=None, new=None):
|
|
|
get_wd_order_task(start, end, account)
|
|
|
|
|
|
|
|
|
+@DingTalkDecorators("掌读")
|
|
|
def zhangdu(start=None, end=None, new=None):
|
|
|
if start is None:
|
|
|
start = end = du.getNow()
|
|
@@ -121,13 +126,14 @@ def zhangdu(start=None, end=None, new=None):
|
|
|
get_zd_order_task(start, end, account)
|
|
|
|
|
|
|
|
|
+@DingTalkDecorators("掌中云")
|
|
|
def zhangzhongyun(start=None, end=None, new=None):
|
|
|
if start is None:
|
|
|
start = du.getNow()
|
|
|
end = du.get_n_days(1)
|
|
|
|
|
|
executor = ThreadPoolExecutor(max_workers=5)
|
|
|
- accounts = get_account("掌中云") if new is None else get_new_account('掌中云')
|
|
|
+ accounts = get_account("掌中云")
|
|
|
if len(accounts) == 0:
|
|
|
return
|
|
|
else:
|
|
@@ -137,6 +143,7 @@ def zhangzhongyun(start=None, end=None, new=None):
|
|
|
executor.shutdown()
|
|
|
|
|
|
|
|
|
+@DingTalkDecorators("阅文")
|
|
|
def yueweng(start=None, end=None):
|
|
|
if start is None:
|
|
|
start = end = du.getNow()
|
|
@@ -152,6 +159,7 @@ def yueweng(start=None, end=None):
|
|
|
executor.shutdown()
|
|
|
|
|
|
|
|
|
+@DingTalkDecorators("七悦有声")
|
|
|
def qiyueyousheng(start=None, end=None):
|
|
|
if start is None:
|
|
|
start = end = du.getNow()
|
|
@@ -164,6 +172,7 @@ def qiyueyousheng(start=None, end=None):
|
|
|
AudioQiyue().get_order(start, end, account)
|
|
|
|
|
|
|
|
|
+@DingTalkDecorators("悠书阁")
|
|
|
def youshuge(start=None, end=None):
|
|
|
if start is None:
|
|
|
start = end = du.getNow()
|
|
@@ -237,4 +246,5 @@ if __name__ == '__main__':
|
|
|
# qiyue()
|
|
|
# qiyueyousheng()
|
|
|
# wending()
|
|
|
- zhangdu()
|
|
|
+ # zhangdu()
|
|
|
+ zhangzhongyun()
|