mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-18 09:24:55 +00:00
之前下载的图片可能是错的 (服务器忙), 现在重新下载!
This commit is contained in:
4
node_modules/leanote_protocol.js
generated
vendored
4
node_modules/leanote_protocol.js
generated
vendored
@@ -17,12 +17,14 @@ var leanoteProtocol = {
|
||||
var ret = /fileId=([a-zA-Z0-9]{24})/.exec(url);
|
||||
if (ret && ret[1]) {
|
||||
var fileId = ret[1];
|
||||
// console.log(fileId);
|
||||
// console.log('imageId: ' + fileId);
|
||||
|
||||
File.getImage(ret[1], function(fileLocalPath) {
|
||||
if(fileLocalPath) {
|
||||
// console.log(fileId + ' : ' + fileLocalPath);
|
||||
callback({path: fileLocalPath});
|
||||
} else {
|
||||
console.log('取不到图片: ' + fileId);
|
||||
callback();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user