Skip to content

Commit

Permalink
upgrade(core): 2.2.4
Browse files Browse the repository at this point in the history
Closes #17
  • Loading branch information
lltx committed Oct 22, 2024
1 parent 659785b commit 5eb8331
Show file tree
Hide file tree
Showing 28 changed files with 146 additions and 60 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
### 3.1.gradle方式的引入
```groovy
dependencies {
implementation 'io.springboot.plugin:easy-captcha:2.2.3'
implementation 'com.pig4cloud.plugin:easy-captcha:2.2.4'
}
```

Expand All @@ -58,9 +58,9 @@ dependencies {
```xml
<dependencies>
<dependency>
<groupId>io.springboot.plugin</groupId>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>captcha-spring-boot-starter</artifactId>
<version>2.2.3</version>
<version>2.2.4</version>
</dependency>
</dependencies>
```
Expand Down
4 changes: 2 additions & 2 deletions captcha-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.springboot.plugin</groupId>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>easy-captcha</artifactId>
<version>2.2.3</version>
<version>2.2.4</version>
</parent>
<artifactId>captcha-core</artifactId>
<name>captcha-core</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.springboot.captcha;
package com.pig4cloud.captcha;

import io.springboot.captcha.base.ArithmeticCaptchaAbstract;
import com.pig4cloud.captcha.base.ArithmeticCaptchaAbstract;
import lombok.extern.slf4j.Slf4j;

import javax.imageio.ImageIO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.springboot.captcha;
package com.pig4cloud.captcha;

import io.springboot.captcha.base.ChineseCaptchaAbstract;
import com.pig4cloud.captcha.base.ChineseCaptchaAbstract;
import lombok.extern.slf4j.Slf4j;

import javax.imageio.ImageIO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.springboot.captcha;
package com.pig4cloud.captcha;

import io.springboot.captcha.base.ChineseCaptchaAbstract;
import io.springboot.captcha.utils.GifEncoder;
import com.pig4cloud.captcha.base.ChineseCaptchaAbstract;
import com.pig4cloud.captcha.utils.GifEncoder;
import lombok.extern.slf4j.Slf4j;

import java.awt.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.springboot.captcha;
package com.pig4cloud.captcha;

import io.springboot.captcha.base.Captcha;
import io.springboot.captcha.utils.GifEncoder;
import com.pig4cloud.captcha.base.Captcha;
import com.pig4cloud.captcha.utils.GifEncoder;
import lombok.extern.slf4j.Slf4j;

import java.awt.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.springboot.captcha;
package com.pig4cloud.captcha;

import io.springboot.captcha.base.Captcha;
import com.pig4cloud.captcha.base.Captcha;
import lombok.extern.slf4j.Slf4j;

import javax.imageio.ImageIO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.springboot.captcha.base;
package com.pig4cloud.captcha.base;

import com.googlecode.aviator.AviatorEvaluator;
import io.springboot.captcha.engine.Symbol;
import com.pig4cloud.captcha.engine.Symbol;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.springboot.captcha.base;
package com.pig4cloud.captcha.base;

import io.springboot.captcha.utils.FontsUtil;
import com.pig4cloud.captcha.utils.FontsUtil;

import java.awt.*;
import java.awt.geom.CubicCurve2D;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha.base;
package com.pig4cloud.captcha.base;

import java.awt.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha.base;
package com.pig4cloud.captcha.base;

import java.security.SecureRandom;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.springboot.captcha.engine;
package com.pig4cloud.captcha.engine;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.springboot.captcha.servlet;
package com.pig4cloud.captcha.servlet;

import io.springboot.captcha.utils.CaptchaJakartaUtil;
import com.pig4cloud.captcha.utils.CaptchaJakartaUtil;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.springboot.captcha.servlet;
package com.pig4cloud.captcha.servlet;

import io.springboot.captcha.utils.CaptchaUtil;
import com.pig4cloud.captcha.utils.CaptchaUtil;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha.utils;
package com.pig4cloud.captcha.utils;

/**
* 图形验证码工具抽象父类
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.springboot.captcha.utils;
package com.pig4cloud.captcha.utils;


import io.springboot.captcha.SpecCaptcha;
import io.springboot.captcha.base.Captcha;
import com.pig4cloud.captcha.SpecCaptcha;
import com.pig4cloud.captcha.base.Captcha;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.springboot.captcha.utils;
package com.pig4cloud.captcha.utils;

import io.springboot.captcha.SpecCaptcha;
import io.springboot.captcha.base.Captcha;
import com.pig4cloud.captcha.SpecCaptcha;
import com.pig4cloud.captcha.base.Captcha;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha.utils;
package com.pig4cloud.captcha.utils;

import java.io.IOException;
import java.io.OutputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha.utils;
package com.pig4cloud.captcha.utils;

import java.io.*;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha.utils;
package com.pig4cloud.captcha.utils;

import java.awt.*;
import java.io.File;
Expand Down Expand Up @@ -39,7 +39,8 @@ public static Font getFont(String fontName, int style, float size) {

String path = System.getProperty("java.io.tmpdir");

File tempFontFile = new File(path + fontName);
// https://gitee.com/log4j/pig/issues/IAFW9O
File tempFontFile = new File(path + File.separator + fontName);
if(!tempFontFile.exists()){
//临时文件不存在
copyTempFontFile(fontName, tempFontFile);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha.utils;
package com.pig4cloud.captcha.utils;

import java.awt.*;
import java.awt.image.BufferedImage;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha.utils;
package com.pig4cloud.captcha.utils;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha;
package com.pig4cloud.captcha;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
Expand Down
6 changes: 3 additions & 3 deletions captcha-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.springboot.plugin</groupId>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>easy-captcha</artifactId>
<version>2.2.3</version>
<version>2.2.4</version>
</parent>
<artifactId>captcha-spring-boot-starter</artifactId>
<name>captcha-spring-boot-starter</name>
Expand Down Expand Up @@ -46,7 +46,7 @@
</dependency>

<dependency>
<groupId>io.springboot.plugin</groupId>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>captcha-core</artifactId>
<version>2.2.3</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.springboot.captcha;
package com.pig4cloud.captcha;

import io.springboot.captcha.config.CaptchaEndpoint;
import io.springboot.captcha.config.CaptchaProperties;
import com.pig4cloud.captcha.config.CaptchaEndpoint;
import com.pig4cloud.captcha.config.CaptchaProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.springboot.captcha.config;
package com.pig4cloud.captcha.config;

import io.springboot.captcha.ArithmeticCaptcha;
import com.pig4cloud.captcha.ArithmeticCaptcha;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import net.dreamlu.mica.auto.annotation.AutoIgnore;
Expand All @@ -18,7 +18,7 @@
@RequiredArgsConstructor
public class CaptchaEndpoint {

private final io.springboot.captcha.config.CaptchaProperties properties;
private final com.pig4cloud.captcha.config.CaptchaProperties properties;

/**
* 生成验证码
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.springboot.captcha.config;
package com.pig4cloud.captcha.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
Expand Down
Loading

0 comments on commit 5eb8331

Please sign in to comment.