DP代码优化

Signed-off-by: torrizo <lishenhao2@huawei.com>
This commit is contained in:
torrizo 2024-11-07 10:02:12 +00:00 committed by Gitee
parent 6206d8ffac
commit 1bced6ad34
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -424,7 +424,11 @@ bool DpRadarHelper::ReportSyncDataCb(struct RadarInfo info)
std::string DpRadarHelper::GetHostNameByServiceId(std::string serviceId)
{
return hostNameMap_[serviceId];
if (hostNameMap_.find(serviceId) != hostNameMap_.end())
{
return hostNameMap_[serviceId];
}
return "";
}
std::string DpRadarHelper::GetStringUdidList(std::list<std::string> &udidList)