This commit is contained in:
pengtao 2019-09-29 14:18:34 +08:00
parent 999521fd35
commit 4d3c87f515
2 changed files with 1 additions and 2 deletions

View File

@ -136,7 +136,6 @@ class DispatchHandler(tornado.web.RequestHandler):
def _selfGetAdList(self):
pdb.set_trace()
try:
input = json.loads(self.get_query_argument('body'))
gameid = input['gameid']

View File

@ -137,7 +137,7 @@ def produce_task():
line['locationid'] = locationid
line['area'] = area
str01 = f"{line.get('gameid', 0)}_{locationid}_{area}"
key = "ad::{0}::{1}::{2}".format(str01, area, locationid)
key = "ad::{0}::{1}::{2}::{3}".format(str01, line['channelid'], area, locationid)
if int(line['ad_num']) == 0:
sadd_adkey(key, line)
print(f"add {line} 2 {key}!")