Merge branch 'master' of http://git.kingsome.cn/ops/promotion
This commit is contained in:
commit
5278fd1c4e
@ -151,15 +151,17 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
try:
|
try:
|
||||||
input = json.loads(self.get_query_argument('body'))
|
input = json.loads(self.get_query_argument('body'))
|
||||||
gameid = input['gameid']
|
gameid = input['gameid']
|
||||||
locationid = input['locationid']
|
channelid=input['channelid']
|
||||||
|
area=input.get('locationid',0)
|
||||||
|
locationid = input.get('locationid',0)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}
|
result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}
|
||||||
log.error(result)
|
log.error(result)
|
||||||
self.write_error(2)
|
self.write_error(2)
|
||||||
return False
|
return False
|
||||||
if gameid and locationid:
|
if gameid and channelid and locationid:
|
||||||
key = f"ad::{gameid}::{locationid}"
|
key = f"ad::{gameid}::{channelid}::*::{locationid}"
|
||||||
|
pdb.set_trace()
|
||||||
ids = my_redis.smembers(key)
|
ids = my_redis.smembers(key)
|
||||||
info = []
|
info = []
|
||||||
if not ids:
|
if not ids:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user