leanote protocol移到main进程, 所有图片的操作通过db_client进行操作

This commit is contained in:
life
2015-12-18 13:10:40 +08:00
parent 31b1eba870
commit 13873a64c0
19 changed files with 580 additions and 468 deletions

View File

@@ -103,7 +103,7 @@ define(function() {
var me = this;
// http://127.0.0.1:8912/api/file/getImage?fileId=5581029f6289dc3301000000
// 找到图片
var reg = new RegExp(Api.evtService.localUrl + '/api/file/getImage\\?fileId=([0-9a-zA-Z]{24})', 'g');
var reg = new RegExp('leanote://file/getImage\\?fileId=([0-9a-zA-Z]{24})', 'g');
// console.log(Api.evtService.localUrl + '/api/file/getImage\\?fileId=([0-9a-zA-Z]{24})');
var matches = content.match(reg);
// content = content.replace(reg, Evt.leanoteUrl + '/api/file/getImage');