fix(pigx-upms-api): 调整社交登录敏感字段脱敏策略,缩短掩码显示长度

- 将 SysSocialDetails 中 appId 和 appSecret 的 @Sensitive 脱敏长度从 4/4 和 9/9 统一调整为 2/2,增强敏感信息保护
This commit is contained in:
PIGCLOUD committed 2026-08-01 11:59:35 +08:00
1 parent ea6940378c
commit d9130d4fbf
1 file changed
+2 -2
@@ -68,7 +68,7 @@ public class SysSocialDetails extends Model<SysSocialDetails> {
/**
* appid
*/
@Sensitive(prefixNoMaskLen = 4, suffixNoMaskLen = 4)
@Sensitive(prefixNoMaskLen = 2, suffixNoMaskLen = 2)
@NotBlank(message = "账号不能为空")
@Schema(description = "appId")
private String appId;
@@ -76,7 +76,7 @@ public class SysSocialDetails extends Model<SysSocialDetails> {
/**
* app_secret
*/
@Sensitive(prefixNoMaskLen = 9, suffixNoMaskLen = 9)
@Sensitive(prefixNoMaskLen = 2, suffixNoMaskLen = 2)
@NotBlank(message = "密钥不能为空", groups = { ValidGroup.Insert.class })
@Schema(description = "app secret")
private String appSecret;