diff --git a/api/client/add.js b/api/client/add.js index a5d8b8b..31974a8 100644 --- a/api/client/add.js +++ b/api/client/add.js @@ -17,7 +17,7 @@ module.exports = async (ctx) => { if (!inbound?.success) return (ctx.body = { code: "1", msg: "获取节点失败" }); const uuid = randomUUID(); email = email || uuid.split("-")[0]; - if (expiryTime > 0) { + if (expiryTime!=0) { expiryTime = dayjs(expiryTime, "YYYY-MM-DD HH:mm:ss").valueOf(); } totalGB = totalGB * 1024 * 1024 * 1024;