API Token 有效时间改成无限

This commit is contained in:
eoao
2025-08-11 10:44:33 +08:00
parent 181dcd87a3
commit ab977ae64a

View File

@@ -166,7 +166,7 @@ const publicService = {
const uuid = uuidv4(); const uuid = uuidv4();
await c.env.kv.put(KvConst.PUBLIC_KEY, uuid, { expirationTtl: 60 * 60 * 24 * 7 }); await c.env.kv.put(KvConst.PUBLIC_KEY, uuid);
return {token: uuid} return {token: uuid}
}, },