a
This commit is contained in:
parent
dc9ea6d743
commit
e151833f40
@ -80,9 +80,9 @@ def send_cache_data():
|
||||
class DispatchHandler(tornado.web.RequestHandler):
|
||||
|
||||
def get(self):
|
||||
if self.get('c') == 'Ops' and self.get('a') == 'selfChecking':
|
||||
if self.get_query_argument('c') == 'Ops' and self.get_query_argument('a') == 'selfChecking':
|
||||
self._selfCheckingHandler()
|
||||
elif self.get('c') == 'Ops' and self.get('a') == 'getAdList':
|
||||
elif self.get_query_argument('c') == 'Ops' and self.get_query_argument('a') == 'getAdList':
|
||||
self._selfGetAdList()
|
||||
else:
|
||||
self.write("pls check args!")
|
||||
@ -95,16 +95,19 @@ class DispatchHandler(tornado.web.RequestHandler):
|
||||
|
||||
|
||||
def _selfGetAdList(self):
|
||||
input = json.loads(self.request.body)
|
||||
input = json.loads(self.get_query_argument('body'))
|
||||
gameid = input['gameid']
|
||||
localid = input['localtionid']
|
||||
localid = input['localid']
|
||||
key = f"{gameid}::{localid}"
|
||||
ids = my_redis.hmgetall(key)
|
||||
ids = my_redis.smembers(key)
|
||||
info = []
|
||||
pdb.set_trace()
|
||||
for id in ids:
|
||||
temp = my_redis.hgetall[f"{id}::info"]
|
||||
keys=f"{id}::info"
|
||||
temp = my_redis.hgetall(f"{id}::info")
|
||||
info.append(temp)
|
||||
self.write(json.dumps(info))
|
||||
result={'code':200,"message":{"totoal":len(info),"result":json.dumps(info)}}
|
||||
self.write(result)
|
||||
|
||||
|
||||
def make_app():
|
||||
|
Loading…
x
Reference in New Issue
Block a user