调整ad数据库的字段
This commit is contained in:
parent
387b466426
commit
ea1c9d8313
18
ad_Readme.md
18
ad_Readme.md
@ -44,18 +44,16 @@ http://ad.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003:60
|
|||||||
"totoal": 3,
|
"totoal": 3,
|
||||||
"result": [
|
"result": [
|
||||||
{
|
{
|
||||||
"ad_body": "2",
|
"ad_body": "11",
|
||||||
"ad_image": "https://resource.kingsome.cn//ad/0e04000e-a865-11e9-a181-525400ddcafb_512icon(1)(1).png",
|
"ad_image": "https://resource.kingsome.cn//ad/f7daf1a2-a864-11e9-bf18-525400ddcafb_500甜心icon(1)(1).png",
|
||||||
"ad_num": "40",
|
|
||||||
"ad_sort": "0",
|
"ad_sort": "0",
|
||||||
"ad_title": "2",
|
"ad_title": "aa",
|
||||||
"ad_url": "sdfd",
|
"id": "1009",
|
||||||
"companyid": "1002",
|
"jump_param": "aas1",
|
||||||
"gameid": "1004",
|
"jump_status": "0",
|
||||||
"adid": "1010",
|
"name": "1122"
|
||||||
"locationid": "1001",
|
|
||||||
"name": "22"
|
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
|
||||||
#### 2、广告播放上报
|
#### 2、广告播放上报
|
||||||
|
|
||||||
|
@ -88,7 +88,6 @@ def send_cache_data():
|
|||||||
|
|
||||||
if not my_redis.exists(f"ad::{line['id']}::info"):
|
if not my_redis.exists(f"ad::{line['id']}::info"):
|
||||||
# remove some filed from adinfo
|
# remove some filed from adinfo
|
||||||
log.info(f"adinfo was {line}")
|
|
||||||
remove_list = ('ad_num', 'companyid', 'gameid', 'locationid')
|
remove_list = ('ad_num', 'companyid', 'gameid', 'locationid')
|
||||||
for item in remove_list:
|
for item in remove_list:
|
||||||
line.pop(item)
|
line.pop(item)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user