由于修改了表列,数据库更改名字
This commit is contained in:
parent
ec5a1bff92
commit
bc607834f5
|
@ -70,11 +70,11 @@ namespace ver_2
|
||||||
HGBase_CreateDir(cfgPath);
|
HGBase_CreateDir(cfgPath);
|
||||||
|
|
||||||
char oldDbPath[256];
|
char oldDbPath[256];
|
||||||
sprintf(oldDbPath, "%s%s", cfgPath, "imageList.db");
|
sprintf(oldDbPath, "%s%s", cfgPath, "config2.db");
|
||||||
HGBase_DeleteFile(oldDbPath);
|
HGBase_DeleteFile(oldDbPath);
|
||||||
|
|
||||||
char newDbPath[256];
|
char newDbPath[256];
|
||||||
sprintf(newDbPath, "%s%s", cfgPath, "config2.db");
|
sprintf(newDbPath, "%s%s", cfgPath, "newConfig2.db");
|
||||||
|
|
||||||
m_sqlite = NULL;
|
m_sqlite = NULL;
|
||||||
sqlite3_open_v2(newDbPath, &m_sqlite, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE |
|
sqlite3_open_v2(newDbPath, &m_sqlite, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE |
|
||||||
|
|
|
@ -164,9 +164,9 @@
|
||||||
req1.image_path = message['image_path'];
|
req1.image_path = message['image_path'];
|
||||||
socket.send(JSON.stringify(req1));
|
socket.send(JSON.stringify(req1));
|
||||||
|
|
||||||
//var req2 = {'func':'delete_local_file', 'file_path':''};
|
var req2 = {'func':'delete_local_file', 'file_path':''};
|
||||||
//req2.file_path = message['image_path'];
|
req2.file_path = message['image_path'];
|
||||||
//socket.send(JSON.stringify(req2));
|
socket.send(JSON.stringify(req2));
|
||||||
}
|
}
|
||||||
else if ("stop_scan" == message['func'])
|
else if ("stop_scan" == message['func'])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue