From e3a37757ba3518604c0299241e133040b1eea496 Mon Sep 17 00:00:00 2001 From: chenhao Date: Tue, 4 Aug 2026 16:51:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(prompt):=E8=BF=94=E5=9B=9Eh5=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/biz/MeetingController.java | 6 +++++- frontend/src/pages/business/MeetingDetail.tsx | 16 ++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/backend/src/main/java/com/imeeting/controller/biz/MeetingController.java b/backend/src/main/java/com/imeeting/controller/biz/MeetingController.java index a1b048e..3e1f9cb 100644 --- a/backend/src/main/java/com/imeeting/controller/biz/MeetingController.java +++ b/backend/src/main/java/com/imeeting/controller/biz/MeetingController.java @@ -1,5 +1,6 @@ package com.imeeting.controller.biz; +import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.imeeting.common.MeetingConstants; import com.imeeting.common.SysParamKeys; @@ -221,13 +222,16 @@ public class MeetingController { @Operation(summary = "获取会议分享配置") @GetMapping("/share-config") @PreAuthorize("isAuthenticated()") - public ApiResponse> getShareConfig() { + public ApiResponse> getShareConfig(@RequestParam(name = "meetingId", required = false) Long meetingId) { String baseUrl = StringUtils.hasText(h5BaseUrl) ? h5BaseUrl.trim() : ""; if (baseUrl.endsWith("/")) { baseUrl = baseUrl.substring(0, baseUrl.length() - 1); } Map result = new HashMap<>(); result.put("h5BaseUrl", baseUrl); + if (meetingId != null) { + result.put("h5PreviewUrl", baseUrl + StrUtil.format("/meetings/{}/preview", meetingId)); + } return ApiResponse.ok(result); } diff --git a/frontend/src/pages/business/MeetingDetail.tsx b/frontend/src/pages/business/MeetingDetail.tsx index eccf8ca..138f9b1 100644 --- a/frontend/src/pages/business/MeetingDetail.tsx +++ b/frontend/src/pages/business/MeetingDetail.tsx @@ -2276,8 +2276,8 @@ const MeetingDetail: React.FC = () => { @@ -2286,14 +2286,14 @@ const MeetingDetail: React.FC = () => { setSharePasswordDraft(normalizeAccessPasswordInput(event.target.value))} /> - + ) : null} ) : null} @@ -2309,7 +2309,7 @@ const MeetingDetail: React.FC = () => { />
- {'\u4f7f\u7528\u624b\u673a\u626b\u7801\u540e\u5c06\u8df3\u8f6c\u5230\u4f1a\u8bae\u9884\u89c8\u9875\uff0c\u82e5\u5df2\u5f00\u542f\u5bc6\u7801\u9700\u624b\u52a8\u8f93\u5165\u3002'} + {'使用手机扫码后将跳转到会议预览页,若已开启密码需手动输入。'}
@@ -2317,10 +2317,10 @@ const MeetingDetail: React.FC = () => {