!703 新增流转状态通知接口

Merge pull request !703 from m30043719/master
This commit is contained in:
openharmony_ci 2023-09-18 11:49:17 +00:00 committed by Gitee
commit 2f7101e83a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@ config("distributed_sched_config") {
"include",
"${communication_path}/dsoftbus/dsoftbus_enhance/interfaces/kits/broadcast",
"${communication_path}/dsoftbus/interfaces/kits/common",
"${dms_path}/interfaces/kits/napi/include",
"include/distributedWant",
]
defines = []

View File

@ -32,6 +32,7 @@
#include "mission/distributed_sched_mission_manager.h"
#include "mission/mission_info_converter.h"
#include "mission/snapshot_converter.h"
#include "napi_error_code.h"
#endif
#include "ipc_skeleton.h"
#include "message_parcel.h"
@ -444,7 +445,7 @@ int32_t DistributedSchedStub::StartContinuationInner(MessageParcel& data, Messag
if (DistributedSchedPermission::GetInstance().CheckPermission(accessToken,
PERMISSION_DISTRIBUTED_DATASYNC) != ERR_OK) {
HILOGE("check data_sync permission failed!");
StartContinuation(*want, missionId, callerUid, DMS_PERMISSION_DENIED, accessToken);
StartContinuation(*want, missionId, callerUid, DistributedSchedule::PERMISSION_DENIED, accessToken);
return DMS_PERMISSION_DENIED;
}
DistributedSchedPermission::GetInstance().MarkUriPermission(*want, accessToken);