diff --git a/services/distributed/src/soft_bus/distributed_subscribe_service.cpp b/services/distributed/src/soft_bus/distributed_subscribe_service.cpp index b7b5a96a4325692848198f525516c574c3aae9ae..60435b256c629023e670310408be2b2caa9c0e23 100644 --- a/services/distributed/src/soft_bus/distributed_subscribe_service.cpp +++ b/services/distributed/src/soft_bus/distributed_subscribe_service.cpp @@ -228,7 +228,7 @@ void DistributedService::OnBatchCanceled(const std::vectorDump().c_str()); keysStream << GetNotificationKey(notification) << ' '; - slotTypesStream << notification->GetNotificationRequestPoint()->GetSlotType() << ' '; + slotTypesStream << std::to_string(notification->GetNotificationRequestPoint()->GetSlotType()) << ' '; } std::string notificationKeys = keysStream.str(); std::string slotTypes = slotTypesStream.str();