From 70f6079bd4b6f831472c49395a2d86be83958a03 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 18 Feb 2025 17:58:21 +0800 Subject: [PATCH] =?UTF-8?q?feature:=E5=8A=A0=E5=85=A5=E4=BA=86=E7=BE=A4?= =?UTF-8?q?=E6=88=90=E5=91=98=E5=8F=98=E5=8C=96=E7=9B=91=E6=8E=A7=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E6=8F=90=E9=86=92=E7=BE=A4=E6=88=90=E5=91=98?= =?UTF-8?q?=EF=BC=8C=E6=9C=89=E4=BA=BA=E9=80=80=E5=87=BA=E4=BA=86=E7=BE=A4?= =?UTF-8?q?=E8=81=8A-=20=E5=88=A0=E9=99=A4=E6=97=A0=E6=95=88=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- group_auto/group_member_change.py | 52 ------------------------------- 1 file changed, 52 deletions(-) diff --git a/group_auto/group_member_change.py b/group_auto/group_member_change.py index d123e6c..cb8cf41 100644 --- a/group_auto/group_member_change.py +++ b/group_auto/group_member_change.py @@ -104,55 +104,3 @@ class GroupMemberChange: # 返回拼接后的结果 return "\n".join(result) - - -def main(): - group_id = "room123" - xml_data_current = """ - - 1 - 1 - 1 - 118 - - - wxid1 - 昵称1 - - - wxid2 - 昵称2 - - - wxid3 - 昵称3 - - - V1_5V25+oDw|v1_5V25+oDw - - - - - - 1 - - - - """ - - # 创建 YourClass 实例 - your_instance = YourClass() - - # 调用 process_message 方法来处理当前数据并获取变化文案 - result = your_instance.process_message(group_id, xml_data_current) - - # 判断是否没有变化 - if "NO_CHANGE" in result: - print("没有变化,跳过处理") - else: - print("检测到变化,进行相关处理") - print(result) # 输出具体的变化文案 - - -if __name__ == "__main__": - main()