From d8c4504f3e4f2c6bfccfe18e411b77b3714621e3 Mon Sep 17 00:00:00 2001 From: zdc Date: Wed, 8 Apr 2020 10:41:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=B7=A5=E7=BF=BB=E8=AF=91=E6=97=B6?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AF=AD=E9=9F=B3=E8=BD=AC=E6=8D=A2=E6=96=87?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/HttpUtil.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils/HttpUtil.dart b/lib/utils/HttpUtil.dart index a56dd3d..af2015e 100644 --- a/lib/utils/HttpUtil.dart +++ b/lib/utils/HttpUtil.dart @@ -1102,8 +1102,9 @@ class HttpUtil { showToast('请稍后再试'); return; } - data['content'] = - base64Encode(File(msgModel.localFile).readAsBytesSync()); + data['content'] = base64Encode(File(msgModel.localFile).readAsBytesSync()); + print('语音转换的文字: ${utf8.decode(msgModel.enTranslateContent)}'); + data['vcontent'] = base64Encode(msgModel.enTranslateContent); } data["tuserids"] = [UserData().basicInfo.userId];