解决websdk多个连接情况下,扫描时可能获取不到base64的问题
This commit is contained in:
parent
35411e5c84
commit
dec98c1891
|
@ -4493,6 +4493,11 @@ namespace ver_2
|
|||
{
|
||||
WSUser::SaneImageCallback(imagePath.c_str(), blank ? true : false, *iter);
|
||||
}
|
||||
|
||||
if (p->m_scanTemp)
|
||||
{
|
||||
HGBase_DeleteFile(imagePath.c_str());
|
||||
}
|
||||
}
|
||||
HGBase_LeaveLock(p->m_lock);
|
||||
|
||||
|
|
|
@ -949,8 +949,6 @@ namespace ver_2
|
|||
|
||||
if (p->m_startScanIsLocalSave)
|
||||
cJSON_AddItemToObject(retJson, "image_path", cJSON_CreateString(StdStringToUtf8(path).c_str()));
|
||||
else
|
||||
HGBase_DeleteFile(path);
|
||||
|
||||
if (p->m_startScanIsGetBase64)
|
||||
cJSON_AddItemToObject(retJson, "image_base64", cJSON_CreateString(base64.c_str()));
|
||||
|
|
Loading…
Reference in New Issue