diff --git a/services/implementation/src/authentication_v2/dm_auth_state.cpp b/services/implementation/src/authentication_v2/dm_auth_state.cpp index 9a0952c9cc4e44280e30b0020ce6c475e36674a6..df52e3b14afdd2e64a177f8cad34ca24ead13297 100644 --- a/services/implementation/src/authentication_v2/dm_auth_state.cpp +++ b/services/implementation/src/authentication_v2/dm_auth_state.cpp @@ -82,7 +82,7 @@ const std::map NEW_AND_OLD_REPLAY_MAPPING = { int32_t DmAuthState::GetTaskTimeout(std::shared_ptr context, const char* taskName, int32_t taskTimeOut) { LOGI("GetTaskTimeout, taskName: %{public}s, authType_: %{public}d", taskName, context->authType); - if (DmAuthState::IsImportAuthCodeCompatibility(context->authType)) { + if (AUTH_TYPE_IMPORT_AUTH_CODE == context->authType) { auto timeout = TASK_TIME_OUT_MAP.find(std::string(taskName)); if (timeout != TASK_TIME_OUT_MAP.end()) { return timeout->second;