fix config not found in crontab

This commit is contained in:
pengtao 2019-08-09 10:54:01 +08:00
parent a983d27a00
commit 7322831812
2 changed files with 7 additions and 10 deletions

View File

@ -2,11 +2,7 @@
##### 接口地址
<<<<<<< HEAD
http://spread.kingsome.cn/webapp/index.php
=======
http://promotion.kingsome.cn/webapp/index.php
>>>>>>> 6e5b56e1f53a0da5d470390653689d7507b00dea
##### 返回格式json
@ -14,12 +10,8 @@ http://promotion.kingsome.cn/webapp/index.php
##### 请求示范
<<<<<<< HEAD
http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"10034","locationid":1001}
=======
http://promotion.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003","channelid":6001,"locationid":1001}
http://promotion.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1004","channelid":6001,"area":1}
>>>>>>> 6e5b56e1f53a0da5d470390653689d7507b00dea
##### 请求参数说明

View File

@ -13,6 +13,11 @@ log = logging.getLogger(__name__)
limit = 10
ad_list_interface_port = 5014
BEGIN = '1999-01-01'
END = '3000-01-01'
def send_cache_data():
mydb = MysqlBase(**mysql_promotion_config)