diff --git a/src/pages/playRoom/component/settleMoal/index.tsx b/src/pages/playRoom/component/settleMoal/index.tsx index dac0663..fb14078 100644 --- a/src/pages/playRoom/component/settleMoal/index.tsx +++ b/src/pages/playRoom/component/settleMoal/index.tsx @@ -27,9 +27,17 @@ export function SettleMoal () { { victoryPlayers?.map(([player, victoryInfo]) =>
- :
当前情况不能查看胜者牌型
+
+ { + victoryInfo.cards + ? + :
当前情况不能查看胜者牌型
+ } +
} placement='bottom' trigger={'click'} showCancel={false} icon={<>}> diff --git a/src/pages/playRoom/hooks/usePlayers.ts b/src/pages/playRoom/hooks/usePlayers.ts index 27b468a..9d3ba91 100644 --- a/src/pages/playRoom/hooks/usePlayers.ts +++ b/src/pages/playRoom/hooks/usePlayers.ts @@ -77,12 +77,10 @@ export default function usePlayersCards (): [PlayerInfoType[], PlayerInfoType | }); // =================== Heartbeat Detection ==================== - socket.on('heartbeat', (data, callback) => { + socket.on('heartbeat', (callback) => { console.log('============ heartbeat =================='); - setTimeout(() => { - callback(); - }, 5000); + callback(); }); return () => {