# 从 R2.6.6.3.27 升级到 R2.6.6.3.28

# 更新时间

2025 年 4 月 30 日

# 更新内容

  1. 打印逻辑增加 printType 参数支持,可选择进行 html 打印或转 pdf 打印。
  2. 修复机器码弹窗不显示的问题。
  3. 解决gateway请求延时问题,优化gateway请求。

# 前端升级步骤

  1. 请到 hos-app-web (opens new window) 代码仓库中 release-2.6.6.3.28 分支中将源码下载到本地。
  2. 如果自己业务工程中src/sys的代码没有进行过手动修改的话,将该代码手动删除,然后将hos-app-websrc/sys的代码复制到本地工程即可;
  3. 如果自己业务工程中src/sys的代码进行过手动修改的话,请自行与src/sys的代码进行比对,手动进行同步并解决冲突代码;

# 后端升级步骤

  1. 在根 pom 文件中修改hos-security-dependencies的版本号为R1.0.8.23
<dependencyManagement>
    <dependencies>

        <dependency>
            <groupId>com.mediway.hos</groupId>
            <artifactId>hos-security-dependencies</artifactId>
            <version>R1.0.8.23</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

gateway 配置文件中增加以下配置:

hos-security-gateway:
  max-connections: 500 #最大连接数,,默认1000
  pending-acquire-timeout: 30 #获取连接的超时时间,单位为秒,默认30
  connect-timeout-millis: 10000 #连接超时时间,单位为毫秒,默认1000毫秒
  read-timeout: 10 #读取超时时间,单位为秒,默认10秒
  write-timeout: 10 #写入超时时间,单位为秒,默认10秒