From b55cd9aad0835a96a790e61f9f89edc2fae1be9f Mon Sep 17 00:00:00 2001
From: 刘帅 <rr.iii@qq.com>
Date: 星期二, 29 九月 2026 01:26:37 +0800
Subject: [PATCH] 注释优化、格式优化

---
 cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java b/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java
index d8b3fbe..69e1c50 100644
--- a/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java
+++ b/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java
@@ -247,10 +247,9 @@
     }
 
     /**
-     * Internal-only data source for the management sensitive-data query.  The
-     * caller is authenticated and authorised by the management service; its
-     * Feign interceptor adds the header that permits the response to remain
-     * unmasked for that single request.
+     * 仅供管理端敏感信息查询使用的内部数据接口。
+     * 调用方由管理服务完成认证和授权;其 Feign 拦截器会添加请求头,
+     * 以允许本次响应不进行脱敏。
      */
     @PostMapping("/internal/sensitive/app-user/{id}")
     public Map<String, Object> sensitiveAppUser(@PathVariable("id") Integer id,
@@ -269,9 +268,8 @@
     }
 
     /**
-     * Internal data source used when an APP booking submits its displayed,
-     * masked phone number.  Limit the response to the single field needed for
-     * that booking; callers must use the internal sensitive-data header.
+     * APP 订场提交页面展示的脱敏手机号时使用的内部数据接口。
+     * 仅返回该预约所需的手机号字段;调用方必须携带内部敏感数据访问请求头。
      */
     @PostMapping("/internal/sensitive/site-booking/app-user/{id}/phone")
     public Map<String, Object> siteBookingPhone(@PathVariable("id") Integer id,
@@ -883,8 +881,8 @@
     public void updateAppUser(@RequestBody TAppUser appUser) {
         try {
             TAppUser appUser1 = appUserService.getById(appUser.getId());
-            // A management edit form may contain the displayed masked value.
-            // Never persist that display value over the original identifier.
+            // 管理端编辑表单可能携带页面展示的脱敏值。
+            // 不得使用该展示值覆盖原始证件或联系方式。
             if (appUser.getPhone() != null && appUser.getPhone().contains("*")) appUser.setPhone(appUser1.getPhone());
             if (appUser.getIdCard() != null && appUser.getIdCard().contains("*")) appUser.setIdCard(appUser1.getIdCard());
             appUserService.updateById(appUser);

--
Gitblit v1.7.1