diff --git a/utils.py b/utils.py index 32c7333..71738d0 100644 --- a/utils.py +++ b/utils.py @@ -60,7 +60,7 @@ def saveWxidInfo(account_wxid, wxid, openId=None, h5openid=None): # 发送小程序模版,建议远程更新 -def sendminiProgram(data, account_wxid, wxid, msgXml): +def sendminiProgram(data=None, account_wxid=None, wxid=None, msgXml=None): # 发送小程序 if data.get('isSender') != 1: root = ET.fromstring(msgXml) #xml-字符串形式