diff --git a/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.cpp b/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.cpp index 15b92e02b98c3947c22bba9a9562c8a70cf1fff6..9b6ccd0ef951cddd879cee9721437efcb17e17cc 100644 --- a/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.cpp +++ b/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.cpp @@ -124,7 +124,7 @@ bool BundleMgrService::GetAllFormsInfo(std::vector &formInfo) form.name = PARAM_FORM_NAME; form.updateEnabled = true; form.updateDuration = 1; - form.scheduledUpateTime = "06:06"; + form.scheduledUpdateTime = "06:06"; form.jsComponentName = FORM_JS_COMPOMENT_NAME; form.formVisibleNotify = true; form.supportDimensions = {1, 2}; @@ -141,7 +141,7 @@ bool BundleMgrService::GetFormsInfoByApp(const std::string &bundleName, std::vec form.name = PARAM_FORM_NAME; form.updateEnabled = true; form.updateDuration = 1; - form.scheduledUpateTime = "06:06"; + form.scheduledUpdateTime = "06:06"; form.jsComponentName = FORM_JS_COMPOMENT_NAME; form.formVisibleNotify = true; form.supportDimensions = {1, 2}; @@ -161,7 +161,7 @@ bool BundleMgrService::GetFormsInfoByModule( form.name = PARAM_FORM_NAME; form.updateEnabled = true; form.updateDuration = 1; - form.scheduledUpateTime = "06:06"; + form.scheduledUpdateTime = "06:06"; form.jsComponentName = FORM_JS_COMPOMENT_NAME; form.formVisibleNotify = true; form.supportDimensions = {1, 2}; diff --git a/interfaces/kits/napi/aafwk/formManager/napi_form_manager.cpp b/interfaces/kits/napi/aafwk/formManager/napi_form_manager.cpp index 8d621a674affba11d00dd626ad89dc7f718c8989..9fbbf7a5cc4ea38bee6a51600e6062d5a3eaefca 100644 --- a/interfaces/kits/napi/aafwk/formManager/napi_form_manager.cpp +++ b/interfaces/kits/napi/aafwk/formManager/napi_form_manager.cpp @@ -273,8 +273,8 @@ static void ParseFormInfoIntoNapi(napi_env env, const FormInfo &formInfo, napi_v // scheduledUpdateTime napi_value scheduledUpdateTime; - napi_create_string_utf8(env, formInfo.scheduledUpateTime.c_str(), NAPI_AUTO_LENGTH, &scheduledUpdateTime); - HILOG_DEBUG("%{public}s, scheduledUpdateTime=%{public}s.", __func__, formInfo.scheduledUpateTime.c_str()); + napi_create_string_utf8(env, formInfo.scheduledUpdateTime.c_str(), NAPI_AUTO_LENGTH, &scheduledUpdateTime); + HILOG_DEBUG("%{public}s, scheduledUpdateTime=%{public}s.", __func__, formInfo.scheduledUpdateTime.c_str()); napi_set_named_property(env, result, "scheduledUpdateTime", scheduledUpdateTime); // defaultDimension diff --git a/services/formmgr/src/form_mgr_adapter.cpp b/services/formmgr/src/form_mgr_adapter.cpp index 37951539ab49feee613779810cfcd22072aae476..66abcf4432a6b089efa563c9a66821f7701eb468 100644 --- a/services/formmgr/src/form_mgr_adapter.cpp +++ b/services/formmgr/src/form_mgr_adapter.cpp @@ -1186,7 +1186,7 @@ ErrCode FormMgrAdapter::CreateFormItemInfo(const BundleInfo &bundleInfo, itemInfo.SetFormName(formInfo.name); itemInfo.SetEnableUpdateFlag(formInfo.updateEnabled); itemInfo.SetUpdateDuration(formInfo.updateDuration); - itemInfo.SetScheduledUpdateTime(formInfo.scheduledUpateTime); + itemInfo.SetScheduledUpdateTime(formInfo.scheduledUpdateTime); itemInfo.SetJsComponentName(formInfo.jsComponentName); itemInfo.SetFormVisibleNotify(formInfo.formVisibleNotify); itemInfo.SetFormSrc(formInfo.src); diff --git a/services/formmgr/src/form_sys_event_receiver.cpp b/services/formmgr/src/form_sys_event_receiver.cpp index 4864fb78d001320429b3e07b76cfdc189d19822a..d70134defb085dce995be5ecb0d871ecc4ebafdb 100644 --- a/services/formmgr/src/form_sys_event_receiver.cpp +++ b/services/formmgr/src/form_sys_event_receiver.cpp @@ -204,7 +204,7 @@ bool FormSysEventReceiver::ProviderFormUpdated(const int64_t formId, FormBmsHelper::GetInstance().NotifyModuleNotRemovable(formRecord.bundleName, formRecord.moduleName); FormTimerCfg timerCfg; GetTimerCfg(updatedForm.updateEnabled, updatedForm.updateDuration, - updatedForm.scheduledUpateTime, timerCfg); + updatedForm.scheduledUpdateTime, timerCfg); HandleTimerUpdate(formId, formRecord, timerCfg); FormDataMgr::GetInstance().SetVersionUpgrade(formId, true); return true; diff --git a/services/formmgr/test/mock/src/mock_bundle_manager.cpp b/services/formmgr/test/mock/src/mock_bundle_manager.cpp index d889b20d7417f0b61928b61f4746cd86ec54f4b0..a1c87bc1dcafffe9f5889ea7368cea890fd033db 100644 --- a/services/formmgr/test/mock/src/mock_bundle_manager.cpp +++ b/services/formmgr/test/mock/src/mock_bundle_manager.cpp @@ -129,7 +129,7 @@ bool BundleMgrService::GetFormsInfoByApp(const std::string &bundleName, std::vec form.name = PARAM_FORM_NAME; form.updateEnabled = true; form.updateDuration = 1; - form.scheduledUpateTime = "06:06"; + form.scheduledUpdateTime = "06:06"; form.jsComponentName = FORM_JS_COMPOMENT_NAME; form.formVisibleNotify = true; form.supportDimensions = {1, 2}; @@ -147,7 +147,7 @@ bool BundleMgrService::GetFormsInfoByModule(const std::string &bundleName, const form.name = PARAM_FORM_NAME; form.updateEnabled = true; form.updateDuration = 1; - form.scheduledUpateTime = "06:06"; + form.scheduledUpdateTime = "06:06"; form.jsComponentName = FORM_JS_COMPOMENT_NAME; form.formVisibleNotify = true; form.supportDimensions = {1, 2};