diff --git a/frameworks/ans/native/src/notification_request.cpp b/frameworks/ans/native/src/notification_request.cpp index 14553520944899f10977f62079dd94053cc11d27..d6c194ae117138eaf110924b6a7260a7ad8134c3 100644 --- a/frameworks/ans/native/src/notification_request.cpp +++ b/frameworks/ans/native/src/notification_request.cpp @@ -1638,7 +1638,7 @@ void NotificationRequest::ConvertJsonToNum(NotificationRequest *target, const nl } if (jsonObject.find("creatorUid") != jsonEnd) { - target->creatorUid_ = static_cast(jsonObject.at("creatorUid").get()); + target->creatorUid_ = jsonObject.at("creatorUid").get(); } if (jsonObject.find("creatorPid") != jsonEnd) {