feat: 修改问题

This commit is contained in:
2025-12-09 17:10:03 +08:00
parent 8b314b9900
commit ef4b9d4935
8 changed files with 52 additions and 6 deletions

View File

@@ -30,11 +30,11 @@ export default forwardRef(({ id, from, detail, userInfo }, ref) => {
// const posterRef = useRef();
const { max_participants, participant_count } = detail || {};
useEffect(() => {
if (id) {
changeMessageType();
}
}, [id]);
// useEffect(() => {
// if (id) {
// changeMessageType();
// }
// }, [id]);
async function changeMessageType() {
try {
@@ -76,6 +76,7 @@ export default forwardRef(({ id, from, detail, userInfo }, ref) => {
const endTime = dayjs(end_time);
const dayofWeek = DayOfWeekMap.get(startTime.day());
const gameLength = `${endTime.diff(startTime, "hour")}小时`;
await changeMessageType();
const url = await generateShareImage({
userAvatar: userInfo.avatar_url,
userNickname: userInfo.nickname,