diff --git a/interfaces/inner_api/native/cloudsync_kit_inner/cloud_sync_callback.h b/interfaces/inner_api/native/cloudsync_kit_inner/cloud_sync_callback.h index 10cc38ea692d46fe0e5aa904724e925f496acc4b..66e22ae6b1d593230ae5b584d926c544bb5e47f7 100644 --- a/interfaces/inner_api/native/cloudsync_kit_inner/cloud_sync_callback.h +++ b/interfaces/inner_api/native/cloudsync_kit_inner/cloud_sync_callback.h @@ -58,6 +58,7 @@ public: * CLOUD_STORAGE_FULL 云空间满 * LOCAL_STORAGE_FULL 本地空间满 * DEVICE_TEMPERATURE_TOO_HIGH 设备温度过高 + * REMOTE_SERVER_ABNORMAL 远端设备故障 * BUSINESS_MODE_CHANGED 商业模式变更 */ virtual void OnSyncStateChanged(CloudSyncState state, ErrorType error) {}; diff --git a/interfaces/inner_api/native/cloudsync_kit_inner/cloud_sync_constants.h b/interfaces/inner_api/native/cloudsync_kit_inner/cloud_sync_constants.h index b5b63ac8ea1d1ce37d9d80425ee56d8ec3ac5c90..516a47e7946536c310eb48714c0a69ca1040e9ce 100644 --- a/interfaces/inner_api/native/cloudsync_kit_inner/cloud_sync_constants.h +++ b/interfaces/inner_api/native/cloudsync_kit_inner/cloud_sync_constants.h @@ -61,6 +61,7 @@ enum ErrorType { CLOUD_STORAGE_FULL, LOCAL_STORAGE_FULL, DEVICE_TEMPERATURE_TOO_HIGH, + REMOTE_SERVER_ABNORMAL, BUSINESS_MODE_CHANGED, PERMISSION_NOT_ALLOW, INNER_ERROR, diff --git a/interfaces/kits/js/cloudfilesync/cloud_sync_n_exporter.cpp b/interfaces/kits/js/cloudfilesync/cloud_sync_n_exporter.cpp index e3cfc8cbd1616f1acde49e68cd3e143d71f06fb3..ea3343911cbcbc522e9f59af35b7d8b74ce14189 100644 --- a/interfaces/kits/js/cloudfilesync/cloud_sync_n_exporter.cpp +++ b/interfaces/kits/js/cloudfilesync/cloud_sync_n_exporter.cpp @@ -163,6 +163,7 @@ void InitErrorType(napi_env env, napi_value exports) DECLARE_NAPI_STATIC_PROPERTY("LOCAL_STORAGE_FULL", NVal::CreateInt32(env, LOCAL_STORAGE_FULL).val_), DECLARE_NAPI_STATIC_PROPERTY("DEVICE_TEMPERATURE_TOO_HIGH", NVal::CreateInt32(env, DEVICE_TEMPERATURE_TOO_HIGH).val_), + DECLARE_NAPI_STATIC_PROPERTY("REMOTE_SERVER_ABNORMAL", NVal::CreateInt32(env, REMOTE_SERVER_ABNORMAL).val_), }; napi_value obj = nullptr; napi_create_object(env, &obj);