修改安全规范告警

Signed-off-by: lipan <lipan111@huawei.com>
This commit is contained in:
lipan 2024-04-26 15:03:13 +08:00
parent 29e8c1d20a
commit b35c87afc4

View File

@ -302,8 +302,8 @@ std::string OAIDService::GainOAID()
if (cJSON_IsString(oaidObj)) {
oaid = oaidObj->valuestring;
}
cJSON_Delete(root);
}
cJSON_Delete(root);
oaid_ = oaid;
bool update = WriteValueToKvStore(OAID_KVSTORE_KEY, oaid_);
OAID_HILOGI(OAID_MODULE_SERVICE, "update oaid %{public}s", update ? "success" : "failed");