【新增】私有证书

This commit is contained in:
cai
2025-09-03 15:15:59 +08:00
parent efd052a297
commit 954cd1638d
442 changed files with 76787 additions and 7483 deletions

View File

@@ -0,0 +1,13 @@
export const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
export const paginate = <T>(list: T[], page: number, pageSize: number) => {
const start = (page - 1) * pageSize;
const end = start + pageSize;
return { slice: list.slice(start, end), total: list.length };
};
export const nowSec = () => Math.floor(Date.now() / 1000);
export const fen = (yuan: number) => Math.round(yuan * 100);
export const yuan = (fenVal: number) => Number((fenVal / 100).toFixed(2));