From d5251a6940d07f781c44c3bec1c882c299d44748 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 20 Nov 2025 20:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=BF=E9=87=8C=E5=8C=BA=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E5=9C=B0=E5=8C=BAcode=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/command/violation/room/RoomViolationWarningCmdExe.java | 2 +- .../app/command/violation/user/UserViolationAdjustCmdExe.java | 2 +- .../app/command/violation/user/UserViolationWarningCmdExe.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/room/RoomViolationWarningCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/room/RoomViolationWarningCmdExe.java index addc38e0..067692e3 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/room/RoomViolationWarningCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/room/RoomViolationWarningCmdExe.java @@ -145,7 +145,7 @@ public class RoomViolationWarningCmdExe { private boolean isArabicRegion(Long userId) { try { - return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionName()); + return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionCode()); } catch (Exception e) { log.warn("Failed to get user region, userId={}", userId, e); return false; diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationAdjustCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationAdjustCmdExe.java index 8d37c624..66154914 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationAdjustCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationAdjustCmdExe.java @@ -162,7 +162,7 @@ public class UserViolationAdjustCmdExe { private boolean isArabicRegion(Long userId) { try { - return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionName()); + return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionCode()); } catch (Exception e) { log.warn("Failed to get user region, userId={}", userId, e); return false; diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationWarningCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationWarningCmdExe.java index cc7c7f28..5e41f70e 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationWarningCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationWarningCmdExe.java @@ -125,7 +125,7 @@ public class UserViolationWarningCmdExe { private boolean isArabicRegion(Long userId) { try { - return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionName()); + return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionCode()); } catch (Exception e) { log.warn("Failed to get user region, userId={}", userId, e); return false;