修改ippoverusb打印逻辑

Signed-off-by: shanhaiyang <shanhaiyang@huawei.com>
This commit is contained in:
shanhaiyang 2024-11-04 17:17:28 +08:00
parent bc12153957
commit 3e3305790c

View File

@ -3505,7 +3505,7 @@ bool PrintServiceAbility::CheckUserIdInEventType(const std::string &type)
void PrintServiceAbility::ConnectIppOverUsbPrinter(const std::string &printerId)
{
#ifdef IPPOVERUSB_ENABLE
auto printerInfo = printSystemData_.QueryDiscoveryedPrinterInfoById(printerId);
auto printerInfo = printSystemData_.QueryDiscoveredPrinterInfoById(printerId);
if (printerInfo == nullptr) {
PRINT_HILOGD("ConnectIppOverUsbPrinter get printer info failed.");
return;