添加功能

This commit is contained in:
李鹏宇
2026-01-15 18:15:09 +08:00
parent de130fac09
commit b81a56417e
+1
View File
@@ -106,6 +106,7 @@ class WeComApps(models.Model):
token = self.env['wecom.apps'].search([('name', '=', '审批消息通知')])['access_token']
data = {'msgid': msg_id}
url = f'https://qyapi.weixin.qq.com/cgi-bin/message/recall?access_token={token}'
_logger.info(f"------------------------获取msg_id:{msg_id}tokenID:{token}当前url{url}-------------------------------")
requests.post(url=url, data=json.dumps(data))
def sync_send_message_textcard(self, content_item='', touser='', category='default', user_id=None, title="", description="", url="", btntxt="详情"):