diff --git a/services/ans/src/advanced_notification_live_view_service.cpp b/services/ans/src/advanced_notification_live_view_service.cpp index ed39e55e286c7be4708d947e6ca64a13ba7d0281..3cfc334e666ebeafdadd2a8d2840d7421fe4e5ce 100644 --- a/services/ans/src/advanced_notification_live_view_service.cpp +++ b/services/ans/src/advanced_notification_live_view_service.cpp @@ -68,11 +68,6 @@ void AdvancedNotificationService::RecoverLiveViewFromDb(int32_t userId) continue; } - if (FlowControl(record) != ERR_OK) { - ANS_LOGE("Flow control failed."); - continue; - } - // Turn off ringtone and vibration during recovery process auto notificationFlags = record->request->GetFlags(); notificationFlags->SetSoundEnabled(NotificationConstant::FlagStatus::CLOSE); diff --git a/services/ans/src/advanced_notification_publish_service.cpp b/services/ans/src/advanced_notification_publish_service.cpp index c7bac3a21ef78d748e13490deac7e6b2dec3c3c9..27eaddec5466e83b5e228c74e02336cb76dfe7fd 100644 --- a/services/ans/src/advanced_notification_publish_service.cpp +++ b/services/ans/src/advanced_notification_publish_service.cpp @@ -2035,11 +2035,6 @@ ErrCode AdvancedNotificationService::PublishNotificationBySa(const sptrrequest, bundleOption); - result = FlowControl(record); - if (result != ERR_OK) { - return result; - } - #ifdef ENABLE_ANS_EXT_WRAPPER EXTENTION_WRAPPER->GetUnifiedGroupInfo(request); #endif diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index f9872f96c66c777e0e6317448f148b1919f08faa..bc11ca8323650474dae52f02b04965239b8a66e7 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -595,11 +595,6 @@ ErrCode AdvancedNotificationService::PublishPreparedNotification(const sptrGetUnifiedGroupInfo(request); #endif diff --git a/services/ans/src/notification_preferences_database.cpp b/services/ans/src/notification_preferences_database.cpp index d517f469c642f79dee325bca9345d85d714b9241..79b081669447174759ba32166f45ba0c6bf49184 100644 --- a/services/ans/src/notification_preferences_database.cpp +++ b/services/ans/src/notification_preferences_database.cpp @@ -1177,7 +1177,7 @@ int32_t NotificationPreferencesDatabase::StringToInt(const std::string &str) con { int32_t value = 0; if (!str.empty()) { - value = stoi(str, nullptr); + value = atoi(str.c_str()); } return value; } @@ -1186,7 +1186,7 @@ int64_t NotificationPreferencesDatabase::StringToInt64(const std::string &str) c { int64_t value = 0; if (!str.empty()) { - value = stoll(str, nullptr); + value = atoll(str.c_str()); } return value; }