diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index 5901fe5..23850da 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -146,6 +146,8 @@ class DispatchHandler(tornado.web.RequestHandler): result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"} log.error(result) return self.write_error(2) + if area == 0 or area == str(0): + return self.write({'errcode': 2, "errmsg": f"area != 0 "}) if gameid and locationid: key_word = f"ad::{gameid}_*::{channelid}::*::{locationid}" elif gameid and area: diff --git a/ops/ad_produce.py b/ops/ad_produce.py index 7ee82f5..8b4af72 100644 --- a/ops/ad_produce.py +++ b/ops/ad_produce.py @@ -126,7 +126,7 @@ def produce_task(): log.error(f"write {item}", exc_info=True) all.append(item) except Exception: - log.error("split data failed", exc_info=True) + log.error(f"split data failed,data={line}", exc_info=True) # 检查ID是否存在播放列表中,以及播放次数是否完毕 if all: for line in all: