Parcourir la source

调整

develop
H Vs il y a 2 mois
Parent
révision
f2e8bebd19
3 fichiers modifiés avec 6 ajouts et 3 suppressions
  1. +1
    -1
      resources/login_resources.py
  2. +4
    -1
      resources/messages_resource.py
  3. +1
    -1
      wechat/biz.py

+ 1
- 1
resources/login_resources.py Voir le fichier

@@ -131,7 +131,7 @@ def waitting_login_result(wxchat:gewe_chat.GeWeChatCom, token_id, app_id,region_
config=Models.AgentConfig.model_validate({
"chatroomIdWhiteList": [],
"agentTokenId": agent_token_id,
"agentEnabled": True,
"agentEnabled": False,
"addContactsFromChatroomIdWhiteList": [],
"chatWaitingMsgEnabled": True
})


+ 4
- 1
resources/messages_resource.py Voir le fichier

@@ -899,6 +899,9 @@ def remove_markdown_symbol(text: str):
# 去除列表编号等
#text = re.sub(r'^\d+\.\s*', '', text, flags=re.MULTILINE)
text = re.sub('[\\\`\*\_\[\]\#\+\-\!\>]', '', text)


#text = re.sub('[\\\`\*\_\[\]\#\+\-\!\>]', '', text)
text = re.sub('[\\\`\*\_\[\]\#\+\!\>]', '', text)
print(text)
return text

+ 1
- 1
wechat/biz.py Voir le fichier

@@ -350,7 +350,7 @@ def login_or_reconnect(wxchat:gewe_chat.GeWeChatCom, token_id, app_id, region_id
config=Models.AgentConfig.model_validate({
"chatroomIdWhiteList": [],
"agentTokenId": agent_token_id,
"agentEnabled": True,
"agentEnabled": False,
"addContactsFromChatroomIdWhiteList": [],
"chatWaitingMsgEnabled": True
})


Chargement…
Annuler
Enregistrer