Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

gsc / gsc-vcp-pad-facade

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Merged
Merge Request !13 opened Nov 10, 2026 by 叶立庆@yelq

上线合并

v5.8.7.2发起合并请求到master分支

Edited Nov 10, 2026
Request to merge v5.8.7.2 into master
×

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b v5.8.7.2 origin/v5.8.7.2

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git checkout master
git merge --no-ff v5.8.7.2

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

Merged by 叶立庆 Nov 10, 2026

  • The changes were merged into master.
  • Discussion 1
  • Commits 1
  • Changes 1
  • {{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • 2641f1b3da612f8e5cf4541059e216a6?s=80&d=identicon
    Toggle discussion
    王欣伟
    @wangxw1 started a discussion on commit f81ebfc3 Oct 27, 2026
    • @wangxw1 王欣伟
      @wangxw1 commented Oct 27, 2026
      Master

      一、关键问题与优化建议(仅限 Top 3)

      1. 【安全性】合同预览地址(URL)的安全与防越权风险

        • 分析:电子合同通常包含大量敏感信息(用户身份证号、签署签名、交易金额、联系电话等)。如果 previewUrl 是静态 OSS/CDN 文件的直链且长期有效,容易发生水平越权或数据爬取泄露。
        • 建议:确保服务端生成的 previewUrl 是具备时效性的预签名临时链接(如阿里云 OSS Presigned URL,设置合理的过期时间如 5~15 分钟),或通过后端专用的鉴权中转接口进行访问流控。
      2. 【可维护性】OpenAPI/Swagger 注解定义不够完善

        • 分析:当前 @Schema(description = "合同预览地址") 仅声明了描述,缺少示例值(example)及相关约束说明。
        • 建议:补充 example 和是否可空说明,便于前后端接口联调与生成规范的 API 文档。例如: java @Schema(description = "合同预览地址(临时授权访问,有效期15分钟)", example = "https://oss.domain.com/contract/preview/xxx.pdf?Expires=...") private String previewUrl;
      3. 【健壮性】序列化版本兼容性注意

        • 分析:该类实现了 Serializable 接口。作为对外暴露的 VO(位于 facade 层,可能用于 RPC/Dubbo 传输或 Redis 缓存),新增字段时若未固定 serialVersionUID 或依赖特定序列化框架,可能引发反序列化异常。
        • 建议:确认该 VO 类是否显式声明了 private static final long serialVersionUID;并确保该类具有对应的 Getter/Setter(如已添加 @Data 或明确生成方法)。

      二、评分明细

      • 功能实现的正确性与健壮性:38 / 40 分(功能明确清晰,需注意 RPC/缓存反序列化兼容性)
      • 安全性与潜在风险:27 / 30 分(需重点防范文件直链泄露与越权访问)
      • 最佳实践与可维护性:19 / 20 分(命名与位置符合规范,文档元数据可进一步丰富)
      • 性能与资源利用:5 / 5 分(无额外性能开销)
      • 提交信息质量:5 / 5 分(提交信息语义清晰,符合规范)

      总分:94分

  • @yelq 叶立庆
    @yelq

    merged

    Nov 10, 2026

    merged

    Toggle commit list
  • @yelq 叶立庆
    @yelq

    mentioned in commit a464ecdf

    Nov 10, 2026

    mentioned in commit a464ecdf

    Toggle commit list
  • Write
  • Preview
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
  • Please register or sign in to post a comment
叶立庆
Assignee
叶立庆 @yelq
Assign to
None
Milestone
None
Assign milestone
Time tracking
1
1 participant
Reference: gsc/gsc-vcp-pad-facade!13
×

Revert this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
×

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.