Skip to content

Commit

Permalink
@fix 打码次序修改问题,减少jar体积
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepybear1113 committed Mar 8, 2023
1 parent 74cb45a commit 6a0b139
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 22 deletions.
Binary file added lib/lept4j-1.18.0-thin.jar
Binary file not shown.
Binary file added lib/tess4j-5.6.0-thin.jar
Binary file not shown.
51 changes: 30 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
</parent>
<groupId>cn.xiejx</groupId>
<artifactId>ddt-assistant</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
<name>ddt-assistant</name>
<description>ddt-assistant</description>
<properties>
<java.version>1.8</java.version>
<versions>10001</versions>
<versions>10010</versions>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -76,28 +76,36 @@
<artifactId>commons-collections4</artifactId>
<version>4.4</version>
</dependency>

<!-- 本地引用的 jar,为了缩减体积,删除了 tess4j.jar 的一些资源文件,变成本地引用 -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.13.0</version>
</dependency>
<dependency>
<groupId>com.github.jai-imageio</groupId>
<artifactId>jai-imageio-core</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.lept4j</groupId>
<artifactId>lept4j</artifactId>
<version>1.18.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/lept4j-1.18.0-thin.jar</systemPath>
</dependency>
<dependency>
<groupId>net.sourceforge.tess4j</groupId>
<artifactId>tess4j</artifactId>
<version>5.2.0</version>
<exclusions>
<exclusion>
<artifactId>pdfbox</artifactId>
<groupId>org.apache.pdfbox</groupId>
</exclusion>
<exclusion>
<artifactId>fontbox</artifactId>
<groupId>org.apache.pdfbox</groupId>
</exclusion>
<exclusion>
<artifactId>pdfbox-debugger</artifactId>
<groupId>org.apache.pdfbox</groupId>
</exclusion>
<exclusion>
<artifactId>pdfbox-tools</artifactId>
<groupId>org.apache.pdfbox</groupId>
</exclusion>
</exclusions>
<version>5.6.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/tess4j-5.6.0-thin.jar</systemPath>
</dependency>
</dependencies>

Expand All @@ -107,6 +115,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h3>平川服务器打码</h3>
<span>打码次序</span>
<template v-for="index in captchaConfig.captchaWay.length">
<label for="select-captchaWay"></label>
<select id="select-captchaWay" v-model="captchaConfig.captchaWay[index]">
<select id="select-captchaWay" v-model="captchaConfig.captchaWay[index - 1]">
<option value="0">不打码</option>
<option value="1">图鉴打码</option>
<option value="2">平川服务器打码</option>
Expand Down

0 comments on commit 6a0b139

Please # to comment.