fix: store本地优先+脚本保存七牛云失败不阻塞
This commit is contained in:
@@ -27,11 +27,11 @@ public class CachedStorageService implements StorageService {
|
||||
|
||||
@Override
|
||||
public void store(String path, String content) {
|
||||
// 先本地,保证不丢
|
||||
local.store(path, content);
|
||||
// 再七牛云
|
||||
if (isQiniuMode()) {
|
||||
qiniu.store(path, content);
|
||||
try { local.store(path, content); } catch (Exception ignored) {}
|
||||
} else {
|
||||
local.store(path, content);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user