From 5bdd6a7e48feeba24419e35ee81ca1be1065d9a5 Mon Sep 17 00:00:00 2001 From: guoyi Date: Sat, 26 Apr 2025 18:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8D=E7=A7=B0=E9=87=87?= =?UTF-8?q?=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guoyi --- .../core/src/contentsensormanager/content_sensor_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/core/src/contentsensormanager/content_sensor_manager.cpp b/services/core/src/contentsensormanager/content_sensor_manager.cpp index 487e42b7..9ed8ea38 100644 --- a/services/core/src/contentsensormanager/content_sensor_manager.cpp +++ b/services/core/src/contentsensormanager/content_sensor_manager.cpp @@ -126,7 +126,8 @@ int32_t ContentSensorManager::CollectInfoToProfileData(DeviceProfile& collectPro collectProfile.SetAccountId(oldDeviceProfile.GetAccountId()); } std::string marketName = ContentSensorManagerUtils::GetInstance().ObtainMarketName(); - if (!oldDeviceProfile.GetDeviceName().empty() && oldDeviceProfile.GetDeviceName() != marketName) { + if (!oldDeviceProfile.GetDeviceName().empty() && oldDeviceProfile.GetDeviceName() != marketName && + collectProfile.GetDeviceName() == collectProfile.GetProductName()) { collectProfile.SetDeviceName(oldDeviceProfile.GetDeviceName()); } } -- Gitee