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