修改版本和图片域名转换

This commit is contained in:
eoao
2025-09-04 01:22:00 +08:00
parent 4d31dbc9c4
commit 613582c13e
7 changed files with 32 additions and 23 deletions

View File

@@ -264,7 +264,7 @@ const init = {
`ALTER TABLE setting ADD COLUMN site_key TEXT;`,
`ALTER TABLE setting ADD COLUMN secret_key TEXT;`,
`ALTER TABLE setting ADD COLUMN background TEXT;`,
`ALTER TABLE setting ADD COLUMN login_opacity INTEGER NOT NULL DEFAULT 0.80;`,
`ALTER TABLE setting ADD COLUMN login_opacity INTEGER NOT NULL DEFAULT 0.88;`,
`ALTER TABLE user ADD COLUMN create_ip TEXT;`,
`ALTER TABLE user ADD COLUMN active_ip TEXT;`,

View File

@@ -22,7 +22,7 @@ const attService = {
metadate.contentDisposition = `attachment; filename="${attachment.filename}"`
} else {
metadate.contentDisposition = `inline; filename="${attachment.filename}"`
metadate.cacheControl = `max-age=604800`
metadate.cacheControl = `max-age=259200`
}
await r2Service.putObj(c, attachment.key, attachment.content, metadate);
@@ -119,7 +119,7 @@ const attService = {
attData.type = attConst.type.EMBED;
await r2Service.putObj(c, attData.key, attData.buff, {
contentType: attData.mimeType,
cacheControl: `max-age=604800`,
cacheControl: `max-age=259200`,
contentDisposition: `inline; filename="${attData.filename}"`
});
}