This commit is contained in:
hackrobot
2024-04-11 16:03:33 +08:00
parent ab2c9cb78a
commit 89289a6ddb

View File

@@ -63,7 +63,8 @@ def saveWxidInfo(account_wxid, wxid, openId=None, h5openid=None):
# 发送小程序模版,建议远程更新 # 发送小程序模版,建议远程更新
def sendminiProgram(data=None, account_wxid=None, wxid=None, msgXml=None): def sendminiProgram(data=None, account_wxid=None, wxid=None, msgXml=None):
# 发送小程序 # 发送小程序
if data.get('isSender') != 1: #不是自己发的消息
# if data.get('isSender') != 1:
root = ET.fromstring(msgXml) #xml-字符串形式 root = ET.fromstring(msgXml) #xml-字符串形式
#打开xml文档 #打开xml文档