针对云阅卷系统启动扫描后,不等状态改变就取图的操作适配
This commit is contained in:
parent
428d567c0b
commit
1b54abb175
|
@ -2227,7 +2227,8 @@ COM_API_IMPLEMENT(scanner, int, get_scanned_images(DWORD milliseconds))
|
||||||
TranslateMessage(&msg);
|
TranslateMessage(&msg);
|
||||||
DispatchMessageW(&msg);
|
DispatchMessageW(&msg);
|
||||||
}
|
}
|
||||||
Sleep(elapse);
|
else
|
||||||
|
Sleep(elapse);
|
||||||
|
|
||||||
int ev = get_event();
|
int ev = get_event();
|
||||||
|
|
||||||
|
|
|
@ -1332,6 +1332,9 @@ Result huagao_ds::call(const Identity& origin, DataGroup dg, Dat dat, Msg msg, v
|
||||||
try {
|
try {
|
||||||
// we can override almost anything from SourceFromThis, even the top-most source instance call
|
// we can override almost anything from SourceFromThis, even the top-most source instance call
|
||||||
//FileTools::write_log("D:\\1.txt", "call:datagroup-"+to_string((int)dg)+"dat-"+to_string(int(dat))+"msg-"+to_string(int(msg)));
|
//FileTools::write_log("D:\\1.txt", "call:datagroup-"+to_string((int)dg)+"dat-"+to_string(int(dat))+"msg-"+to_string(int(msg)));
|
||||||
|
if (dat == Dat::ImageNativeXfer && state() == DsState::Enabled) // 云阅卷扫描端不等状态改变,直接取图,此处设置一次状态 2022-11-07
|
||||||
|
notifyXferReady();
|
||||||
|
|
||||||
return Base::call(origin, dg, dat, msg, data);
|
return Base::call(origin, dg, dat, msg, data);
|
||||||
}
|
}
|
||||||
catch (const CapabilityException& e) {
|
catch (const CapabilityException& e) {
|
||||||
|
|
Loading…
Reference in New Issue