|
@@ -3,6 +3,7 @@ from app.api_data.cost_util import *
|
|
|
from model.DateUtils import DateUtils
|
|
|
from model.DataBaseUtils import MysqlUtils
|
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
|
+from model.DingTalkUtils import DingTalkUtils
|
|
|
db = MysqlUtils()
|
|
|
du = DateUtils()
|
|
|
|
|
@@ -93,12 +94,14 @@ def day():
|
|
|
3.用第2步获取的创意id 去拉取广告创意基础信息
|
|
|
4.用创意信息中的图片id 去获取图片的基础信息
|
|
|
"""
|
|
|
-
|
|
|
- dt = du.getNow()
|
|
|
- ad_cost_day(dt)
|
|
|
- ad(dt)
|
|
|
- adcreative(dt)
|
|
|
- image(dt)
|
|
|
+ try:
|
|
|
+ dt = du.getNow()
|
|
|
+ ad_cost_day(dt)
|
|
|
+ ad(dt)
|
|
|
+ adcreative(dt)
|
|
|
+ image(dt)
|
|
|
+ except:
|
|
|
+ DingTalkUtils.send("拉取广告数据出错")
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|