diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index 99dd235..2876ec9 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -149,10 +149,11 @@ class DispatchHandler(tornado.web.RequestHandler): def _selfGetAdList(self): try: + pdb.set_trace() input = json.loads(self.get_query_argument('body')) gameid = input['gameid'] - channelid=input['channelid'] - area=input.get('locationid',0) + channelid=input.get('channelid',None) or 6001 + area=input.get('area',0) locationid = input.get('locationid',0) except Exception as e: result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}