|
@@ -277,11 +277,21 @@ class TaskHandler(TaskMapper):
|
|
|
|
|
|
|
|
# 自动关注公众号账号
|
|
# 自动关注公众号账号
|
|
|
async def _auto_follow_account_handler(self) -> int:
|
|
async def _auto_follow_account_handler(self) -> int:
|
|
|
- task = AutoReplyCardsMonitor(
|
|
|
|
|
- pool=self.db_client, log_client=self.log_client
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ task = AutoReplyCardsMonitor(pool=self.db_client, log_client=self.log_client)
|
|
|
await task.deal(task_name="follow_gzh_task")
|
|
await task.deal(task_name="follow_gzh_task")
|
|
|
return self.TASK_SUCCESS_STATUS
|
|
return self.TASK_SUCCESS_STATUS
|
|
|
|
|
|
|
|
|
|
+ # 获取自动关注回复
|
|
|
|
|
+ async def _get_follow_result_handler(self) -> int:
|
|
|
|
|
+ task = AutoReplyCardsMonitor(pool=self.db_client, log_client=self.log_client)
|
|
|
|
|
+ await task.deal(task_name="get_auto_reply_task")
|
|
|
|
|
+ return self.TASK_SUCCESS_STATUS
|
|
|
|
|
+
|
|
|
|
|
+ # 解析自动回复结果
|
|
|
|
|
+ async def _extract_reply_result_handler(self) -> int:
|
|
|
|
|
+ task = AutoReplyCardsMonitor(pool=self.db_client, log_client=self.log_client)
|
|
|
|
|
+ await task.deal(task_name="extract_task")
|
|
|
|
|
+ return self.TASK_SUCCESS_STATUS
|
|
|
|
|
+
|
|
|
|
|
|
|
|
__all__ = ["TaskHandler"]
|
|
__all__ = ["TaskHandler"]
|