字节赚翻
This commit is contained in:
parent
f3d137d9e7
commit
9cd6ee5d15
|
@ -158,6 +158,30 @@ public:
|
|||
else
|
||||
type = true;
|
||||
}
|
||||
else if (wcscmp(set_test_name_.c_str(), HGPDTTOOLDB_NAME_PAPER_FEED) == 0)
|
||||
{
|
||||
if (strcmp((char*)data, STATU_DESC_SCAN_STOPPED) != 0)
|
||||
{
|
||||
type = false;
|
||||
wchar_t buf[128] = L"走纸检测失败,原因--->";
|
||||
wcscat(buf, wstr.c_str());
|
||||
wstr = buf;
|
||||
}
|
||||
else
|
||||
type = true;
|
||||
}
|
||||
else if(wcscmp(set_test_name_.c_str(), HGPDTTOOLDB_NAME_AUTO_FLAT_FIELD) == 0)
|
||||
{
|
||||
if (strcmp((char*)data, STATU_DESC_SCANNER_ERR_DEVICE_AUTO_FAIL_OVER) != 0)
|
||||
{
|
||||
type = false;
|
||||
wchar_t buf[128] = L"平场校正失败,原因--->";
|
||||
wcscat(buf, wstr.c_str());
|
||||
wstr = buf;
|
||||
}
|
||||
else
|
||||
type = true;
|
||||
}
|
||||
|
||||
h->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void*)wstr.c_str(), type);
|
||||
}
|
||||
|
@ -171,8 +195,8 @@ public:
|
|||
{
|
||||
if (wcscmp(set_test_name_.c_str(), HGPDTTOOLDB_NAME_AUTO_FLAT_FIELD) == 0)
|
||||
{
|
||||
std::string str = StringToUtf((char*)data);
|
||||
h->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_FALT_INFO, (void*)&str[0], type);
|
||||
//std::string str = StringToUtf((char*)data);
|
||||
h->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_FALT_INFO, (wchar_t*)wstr.c_str(), type);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue