mirror of
https://gitee.com/openharmony/distributeddatamgr_datamgr_service
synced 2024-11-23 06:50:35 +00:00
fix
Signed-off-by: wenjinchao <wenjinchao@huawei.com> Change-Id: Ib0289fe243162144c02bfd10118e61891ccd2949
This commit is contained in:
parent
b7d7b46a45
commit
5c512a7246
@ -273,7 +273,7 @@ bool UdmfServiceImpl::IsReadAndKeep(const std::vector<Privilege> &privileges, co
|
||||
int32_t UdmfServiceImpl::ProcessUri(const QueryOption &query, UnifiedData &unifiedData)
|
||||
{
|
||||
std::string localDeviceId = PreProcessUtils::GetLocalDeviceId();
|
||||
int32_t verifyRes = VerifyUnifiedData(unifiedData);
|
||||
int32_t verifyRes = ProcessCrossDeviceData(unifiedData);
|
||||
if (verifyRes != E_OK) {
|
||||
ZLOGE("verify unifieddata fail, key=%{public}s, stauts=%{public}d", query.key.c_str(), verifyRes);
|
||||
return verifyRes;
|
||||
@ -320,10 +320,10 @@ int32_t UdmfServiceImpl::ProcessUri(const QueryOption &query, UnifiedData &unifi
|
||||
return E_OK;
|
||||
}
|
||||
|
||||
int32_t UdmfServiceImpl::VerifyUnifiedData(UnifiedData &unifiedData)
|
||||
int32_t UdmfServiceImpl::ProcessCrossDeviceData(UnifiedData &unifiedData)
|
||||
{
|
||||
if (unifiedData.GetRuntime() == nullptr) {
|
||||
ZLOGE("get runtime empty!");
|
||||
ZLOGE("Get runtime empty!");
|
||||
return E_DB_ERROR;
|
||||
}
|
||||
std::string localDeviceId = PreProcessUtils::GetLocalDeviceId();
|
||||
|
Loading…
Reference in New Issue
Block a user