mirror of
https://gitee.com/openharmony/account_os_account
synced 2024-11-23 10:10:11 +00:00
事件上报改为异步
Signed-off-by: swg3156201044 <shiweigang2@huawei.com>
This commit is contained in:
parent
1abc4999c1
commit
f28d125460
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user