Skip to content

Commit 8e8c8da

Browse files
committed
弹幕处理机制,前置校验用户名+弹幕内容违禁词
1 parent 6fcc392 commit 8e8c8da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

utils/my_handle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,8 @@ def comment_handle(self, data):
12961296
"""
12971297
用户名也得过滤一下,防止炸弹人
12981298
"""
1299-
# 用户弹幕违禁判断
1300-
if self.prohibitions_handle(user_name):
1299+
# 用户名以及弹幕违禁判断
1300+
if self.prohibitions_handle(user_name) or self.prohibitions_handle(content):
13011301
return
13021302

13031303
# 1、本地问答库 处理

0 commit comments

Comments
 (0)