This commit is contained in:
k
2021-04-08 23:29:47 +08:00
committed by GitHub
7 changed files with 36 additions and 4 deletions

View File

@@ -116,6 +116,13 @@ public abstract class Captcha extends Randoms {
*/
public abstract String toBase64();
/**
* 获取图片类型
*
* @return 图片格式MIME类型
*/
public abstract String getContentType();
/**
* 输出base64编码
*
@@ -308,4 +315,4 @@ public abstract class Captcha extends Randoms {
public void setCharType(int charType) {
this.charType = charType;
}
}
}