fix bug
This commit is contained in:
parent
999521fd35
commit
4d3c87f515
@ -136,7 +136,6 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
|
|
||||||
|
|
||||||
def _selfGetAdList(self):
|
def _selfGetAdList(self):
|
||||||
pdb.set_trace()
|
|
||||||
try:
|
try:
|
||||||
input = json.loads(self.get_query_argument('body'))
|
input = json.loads(self.get_query_argument('body'))
|
||||||
gameid = input['gameid']
|
gameid = input['gameid']
|
||||||
|
@ -137,7 +137,7 @@ def produce_task():
|
|||||||
line['locationid'] = locationid
|
line['locationid'] = locationid
|
||||||
line['area'] = area
|
line['area'] = area
|
||||||
str01 = f"{line.get('gameid', 0)}_{locationid}_{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:
|
if int(line['ad_num']) == 0:
|
||||||
sadd_adkey(key, line)
|
sadd_adkey(key, line)
|
||||||
print(f"add {line} 2 {key}!")
|
print(f"add {line} 2 {key}!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user