H Vs 2 miesięcy temu
rodzic
commit
f2e8bebd19
3 zmienionych plików z 6 dodań i 3 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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
})


Ładowanie…
Anuluj
Zapisz