mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-18 17:52:17 +00:00
之前下载的图片可能是错的 (服务器忙), 现在重新下载!
This commit is contained in:
12
node_modules/file_main.js
generated
vendored
12
node_modules/file_main.js
generated
vendored
@@ -109,9 +109,15 @@ var File = {
|
||||
if(has && fileLocalPath) {
|
||||
fs.exists(fileLocalPath, function(exists) {
|
||||
if(exists) {
|
||||
// console.log('本地存在');
|
||||
callback(fileLocalPath);
|
||||
// me.retImage(fileLocalPath, res);
|
||||
if (fileLocalPath.indexOf('; charset=utf-8') < 0) {
|
||||
// console.log('本地存在 ' + fileId);
|
||||
callback(fileLocalPath);
|
||||
}
|
||||
else {
|
||||
// 存在, 但之前存错了
|
||||
console.log('存在, 但之前存错了 ' + fileId);
|
||||
getImageFromApi();
|
||||
}
|
||||
} else {
|
||||
getImageFromApi();
|
||||
}
|
||||
|
Reference in New Issue
Block a user