mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-21 05:45:23 -04:00
Description:Security check
Match-id-e53066c1703557b07cb7c9b48a9114e61ccb2e8f
This commit is contained in:
@@ -55,10 +55,12 @@ DevInfo GetLocalDeviceInfo()
|
||||
|
||||
std::string GetLocalNetworkId()
|
||||
{
|
||||
if (GetLocalDeviceInfo().networkId.empty()) {
|
||||
std::string localNetworkId = GetLocalDeviceInfo().networkId;
|
||||
if (localNetworkId.empty()) {
|
||||
DHLOGE("local networkId is empty!");
|
||||
}
|
||||
return GetLocalDeviceInfo().networkId;
|
||||
DHLOGI("GetLocalNetworkId, device local networkId is %s", GetAnonyString(localNetworkId).c_str());
|
||||
return localNetworkId;
|
||||
}
|
||||
|
||||
std::string GetUUIDBySoftBus(const std::string &networkId)
|
||||
|
||||
Reference in New Issue
Block a user