广告次数上报需添加locationid
This commit is contained in:
parent
09a5dff82f
commit
5ff3ccd970
@ -70,7 +70,7 @@ class DispatchHandler(tornado.web.RequestHandler):
|
||||
def _upAdRecording(self):
|
||||
try:
|
||||
adid = unquote(self.get_query_argument('adid'), 'utf-8')
|
||||
localtionid = self.get_query_argument('locationid', 'utf-8')
|
||||
localtionid = self.get_query_argument('locationid')
|
||||
log.info(f" get adid was {adid}")
|
||||
ids = json.loads(adid)
|
||||
except Exception:
|
||||
@ -78,6 +78,9 @@ class DispatchHandler(tornado.web.RequestHandler):
|
||||
log.error(result, exc_info=True)
|
||||
self.write({'errcode': 1, "errmsg": 'get adid failed!'})
|
||||
|
||||
if not localtionid:
|
||||
self.write({'errcode': 1, "errmsg": 'get localtionid failed!'})
|
||||
|
||||
if ids:
|
||||
for id in ids:
|
||||
if id:
|
||||
|
Loading…
x
Reference in New Issue
Block a user