mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-09 03:06:37 +08:00
style: restore Prettier formatting in renewal.ts (#298)
This commit is contained in:
@@ -14,6 +14,7 @@ const addMonths = (timestamp: number, months: number): number => {
|
|||||||
const next = new Date(date);
|
const next = new Date(date);
|
||||||
|
|
||||||
next.setMonth(next.getMonth() + months);
|
next.setMonth(next.getMonth() + months);
|
||||||
|
|
||||||
return next.getTime();
|
return next.getTime();
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -72,7 +73,9 @@ export const getNodeRenewalSnapshot = (
|
|||||||
nextDueTime = advanced;
|
nextDueTime = advanced;
|
||||||
}
|
}
|
||||||
|
|
||||||
const diffDays = Math.ceil((nextDueTime - Date.now()) / (1000 * 60 * 60 * 24));
|
const diffDays = Math.ceil(
|
||||||
|
(nextDueTime - Date.now()) / (1000 * 60 * 60 * 24),
|
||||||
|
);
|
||||||
|
|
||||||
if (diffDays <= 0) {
|
if (diffDays <= 0) {
|
||||||
return {
|
return {
|
||||||
@@ -110,5 +113,6 @@ export const formatNodeRenewalTime = (timestamp?: number): string => {
|
|||||||
if (!timestamp || timestamp <= 0) {
|
if (!timestamp || timestamp <= 0) {
|
||||||
return "未设置";
|
return "未设置";
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Date(timestamp).toLocaleString();
|
return new Date(timestamp).toLocaleString();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user