Browse Source

refactor(settings): 调整版本信息输出格式对齐

feat(meeting): 更新分享链接使用动态服务器地址
weicu
lxm 1 year ago
parent
commit
bdd69ec5b7
  1. 19
      lib/modules/meeting/views/bottomSheet/share_bottom_sheet.dart

19
lib/modules/meeting/views/bottomSheet/share_bottom_sheet.dart

@ -13,6 +13,7 @@ import 'package:share_plus/share_plus.dart';
import 'package:webview_flutter/webview_flutter.dart';
import '../../../../core/utils/synchrodata.dart';
import '../../../../data/services/version_update_service.dart';
import '../../controllers/meeting_details_controller.dart';
import '../../controllers/mind_map_controller.dart';
import 'second_level_bottom_sheet.dart';
@ -95,19 +96,25 @@ class _ShareBottomSheetState extends State<ShareBottomSheet> {
String id =
'${userId}_${_controller.meetingData.value.id}';
final thumbnail = await getAssetThumbnailFile(
'assets/images/headphone_dark.png',
'share_thumb.png',
);
// final thumbnail = await getAssetThumbnailFile(
// 'assets/images/mine-background.png',
// 'share_thumb.png',
// );
// 获取动态服务器地址
final serverUrl = VersionUpdateService.to.cachedServerUrl;
final serverHost = serverUrl
.replaceFirst('https://', '')
.replaceFirst('http://', '');
final result = await SharePlus.instance.share(ShareParams(
title: _controller.meetingData.value.title,
subject:
'Voitrans WEB,由DeepSound.Ai提供支持-实时记录会议纪要,多语言翻译。',
uri: Uri.parse(
'http://web.ideapsound.com/share/$id/$token',
'https://share.deepechomeet.com/share/$serverHost/voitrans.net/$id/$token',
),
previewThumbnail: thumbnail,
//previewThumbnail: thumbnail,
));
if (result.status == ShareResultStatus.success) {
EasyLoading.showToast('shareSuccess'.tr); // 对应中文:分享完成

Loading…
Cancel
Save