之前下载的图片可能是错的 (服务器忙), 现在重新下载!

This commit is contained in:
life
2016-04-16 16:57:26 +08:00
parent 30394e4149
commit 72059d8fb3
6 changed files with 52 additions and 19 deletions

4
node_modules/leanote_protocol.js generated vendored
View File

@@ -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();
}
});