解决websdk多个连接情况下,扫描时可能获取不到base64的问题

This commit is contained in:
luoliangyi 2024-04-18 09:51:58 +08:00
parent 35411e5c84
commit dec98c1891
2 changed files with 5 additions and 2 deletions

View File

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

View File

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