Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
liulingfeng authored Aug 30, 2024
1 parent 9b83ed1 commit 2e46c5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ allprojects {
在对应 module 的 build.gradle 中添加依赖

```
implementation 'io.github.yidun:captcha:3.6.0'
implementation 'io.github.yidun:captcha:3.6.1'
```
### 本地手动依赖

Expand Down Expand Up @@ -103,7 +103,7 @@ public class DemoActivity extends AppCompatActivity {
public void onCaptchaShow() {
}
@Override
public void onValidate(String result, String validate, String msg, String captchaType) {
public void onValidate(String result, String validate, String msg, String captchaType, String errorValidate) {
}
@Override
Expand Down Expand Up @@ -300,6 +300,7 @@ json 字段支持范围如下
| setSlideTip | slideTip:String ||| 滑动模块文案 |
| setRefreshInterval | refreshInterval:int || 300 | 错误提示时长/ms |
| isDisableFocus | disableFocus:boolean || false | input focus状态是否高亮 |
| setUser | user:String ||| 用户标识 |

##### Theme 枚举类说明

Expand Down Expand Up @@ -411,8 +412,9 @@ public interface CaptchaListener {
avoid:躲避障碍验证码 icon_point:图标点选验证码
word_group:词组验证码 inference:图片推理验证码
word_order:语序选词验证码 space:空间推理验证码 voice:语音验证码)
* @param errorValidate 错误校验码,用于二次校验查看本次错误原因
*/
void onValidate(String result, String validate, String msg, String captchaType);
void onValidate(String result, String validate, String msg, String captchaType, String errorValidate);
/**
* 异常回调
Expand Down

0 comments on commit 2e46c5d

Please sign in to comment.