mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Update] MiraiMessageSender 对已上传的图片所属ImageId设置10天有效期;
This commit is contained in:
parent
dbc9f4c90b
commit
1c556c5b94
@ -138,7 +138,7 @@ public class MiraiMessageSender implements MessageSender {
|
|||||||
log.debug("imageName [{}] 缓存失效或强制更新, 正在更新缓存...", imageName);
|
log.debug("imageName [{}] 缓存失效或强制更新, 正在更新缓存...", imageName);
|
||||||
image = uploadImage0(new File(absolutePath));
|
image = uploadImage0(new File(absolutePath));
|
||||||
String cacheExpireAt;
|
String cacheExpireAt;
|
||||||
long expireTime = 0;
|
long expireTime = 864000000; // 10d
|
||||||
if(!Strings.isNullOrEmpty(cacheExpireAt = code.getParameter("cacheExpireAt"))) {
|
if(!Strings.isNullOrEmpty(cacheExpireAt = code.getParameter("cacheExpireAt"))) {
|
||||||
try {
|
try {
|
||||||
expireTime = Integer.parseInt(cacheExpireAt);
|
expireTime = Integer.parseInt(cacheExpireAt);
|
||||||
|
Loading…
Reference in New Issue
Block a user