ソースを参照

调整

develop
H Vs 1ヶ月前
コミット
1b78c3f0ff
1個のファイルの変更4行の追加4行の削除
  1. +4
    -4
      app.py

+ 4
- 4
app.py ファイルの表示

@@ -462,10 +462,10 @@ class WechatThreadManager:
cache_wxids = [c.get('userName') for c in cache]
new_friend_wxids = [wxid for wxid in friend_wxids if wxid not in cache_wxids]
data=self.wxchat.save_contacts_brief_to_cache(token_id, app_id, wxid, friend_wxids)
# 推送到kafka
input_message=utils.wx_all_contacts(wxid,data)
kafka_helper.kafka_client.produce_message(input_message)
if len(new_friend_wxids)>0:
# 推送到kafka
input_message=utils.wx_all_contacts(wxid,data)
kafka_helper.kafka_client.produce_message(input_message)

logger.info(f'微信ID {wxid} 登录APPID {app_id} 成功,联系人已定时保存')


読み込み中…
キャンセル
保存