fix: pointer

This commit is contained in:
Wbucket
2026-11-06 22:41:33 +08:00
parent a7c4925106
commit 8ce5aa8847
2 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -29,7 +29,7 @@ class Pattern:
num = int(content)
return self.sec_range(num)
except:
logger.debug ("模板内容错误:{}".format(content))
logger.warning ("模板内容错误:{}".format(content))
return None
def extract(self,o_str:str):
@@ -47,6 +47,7 @@ class Pattern:
#消除不完整/非法模板
o_str= o_str.replace("<wt>","")
o_str=o_str.replace("</wt>","")
logger.info(f"过滤后消息:{o_str}")
return {
"content":o_str,