添加评论开关

This commit is contained in:
2025-10-27 16:57:25 +08:00
parent a808747d43
commit 77d2978db1
2 changed files with 3 additions and 3 deletions

2
.idea/misc.xml generated
View File

@@ -3,5 +3,5 @@
<component name="Black"> <component name="Black">
<option name="sdkName" value="Python 3.12 (AI-IOS)" /> <option name="sdkName" value="Python 3.12 (AI-IOS)" />
</component> </component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="IOSAI" project-jdk-type="Python SDK" />
</project> </project>

View File

@@ -416,7 +416,7 @@ class ScriptManager():
retries = 0 retries = 0
while not event.is_set(): while not event.is_set():
try: try:
self.greetNewFollowers(udid, needReply, needTranslate, event) self.greetNewFollowers(udid, needReply, needTranslate, isComment,event)
except Exception as e: except Exception as e:
retries += 1 retries += 1
@@ -599,7 +599,7 @@ class ScriptManager():
event.wait(timeout=1) event.wait(timeout=1)
LogManager.method_info("停止脚本成功", method="task") LogManager.method_info("停止脚本成功", method="task")
# 使用yolo v8模型进行评论 # 使用OCR进行评论
if isComment: if isComment:
self.comment_flow(filePath, session, udid, 100, 100) self.comment_flow(filePath, session, udid, 100, 100)