!2293 事件上报改为异步

Merge pull request !2293 from swg/async
This commit is contained in:
openharmony_ci 2024-11-20 03:34:58 +00:00 committed by Gitee
commit cfca7064ea
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -57,7 +57,7 @@ void AccountInfoReport::ReportSecurityInfo(const std::string &user, int32_t id,
int64_t eventId = 1011015001; // 1011015001: report event id
std::string content = TransformIntoJson(userName, id, event, result);
std::shared_ptr<EventInfo> eventInfo = std::make_shared<EventInfo>(eventId, "1.0", content);
NativeDataCollectKit::ReportSecurityInfo(eventInfo);
NativeDataCollectKit::ReportSecurityInfoAsync(eventInfo);
#endif
}
} // namespace AccountSA