调整ad数据库的字段

This commit is contained in:
pengtao 2019-07-19 15:57:10 +08:00
parent 387b466426
commit ea1c9d8313
2 changed files with 8 additions and 11 deletions

View File

@ -44,18 +44,16 @@ http://ad.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003:60
"totoal": 3,
"result": [
{
"ad_body": "2",
"ad_image": "https://resource.kingsome.cn//ad/0e04000e-a865-11e9-a181-525400ddcafb_512icon(1)(1).png",
"ad_num": "40",
"ad_body": "11",
"ad_image": "https://resource.kingsome.cn//ad/f7daf1a2-a864-11e9-bf18-525400ddcafb_500甜心icon(1)(1).png",
"ad_sort": "0",
"ad_title": "2",
"ad_url": "sdfd",
"companyid": "1002",
"gameid": "1004",
"adid": "1010",
"locationid": "1001",
"name": "22"
"ad_title": "aa",
"id": "1009",
"jump_param": "aas1",
"jump_status": "0",
"name": "1122"
},
}
#### 2、广告播放上报

View File

@ -88,7 +88,6 @@ def send_cache_data():
if not my_redis.exists(f"ad::{line['id']}::info"):
# remove some filed from adinfo
log.info(f"adinfo was {line}")
remove_list = ('ad_num', 'companyid', 'gameid', 'locationid')
for item in remove_list:
line.pop(item)