From 976e664f959e8a0737a3c4149b3b297f4d54962c Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 29 May 2025 16:25:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=81=8A=E5=A4=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/blueprints/contacts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/dashboard/blueprints/contacts.py b/admin/dashboard/blueprints/contacts.py index f6cfb34..3eb587a 100644 --- a/admin/dashboard/blueprints/contacts.py +++ b/admin/dashboard/blueprints/contacts.py @@ -267,7 +267,7 @@ def api_send_message(): return jsonify({'success': False, 'message': '未上传文件'}) file = request.files['file'] client_msg_id, create_time, new_msg_id = loop.run_until_complete( - server.client.send_voice_message(wxid, file.read()) + server.client.send_voice_message(wxid, file.read(), format="MP3") ) return jsonify({ 'success': True,