完成支付功能

This commit is contained in:
kron
2025-07-12 17:12:24 +08:00
parent c6e53453fb
commit cae46224a3
7 changed files with 73 additions and 15 deletions

View File

@@ -1,12 +1,12 @@
import websocket from "@/websocket";
export const formatTimestamp = (timestamp) => {
const date = new Date(timestamp);
const date = new Date(timestamp * 1000);
const year = date.getFullYear();
const month = date.getMonth() + 1;
const day = date.getDate();
return `${year}.${month}.${day}`;
return `${year}${month}${day}`;
};
export const checkConnection = () => {