mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-06-28 13:34:18 +08:00
fix: 兼容父类SaAnnotationHandlerInterface#checkMethod
fix: 兼容父类SaAnnotationHandlerInterface#checkMethod Signed-off-by: 最后 <244387066@qq.com>
This commit is contained in:
parent
ebc381772f
commit
f75b6595dd
@ -6,7 +6,7 @@ import cn.dev33.satoken.exception.SaTokenException;
|
|||||||
import com.pj.satoken.custom_annotation.CheckAccount;
|
import com.pj.satoken.custom_annotation.CheckAccount;
|
||||||
import org.noear.solon.annotation.Component;
|
import org.noear.solon.annotation.Component;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.AnnotatedElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 注解 CheckAccount 的处理器
|
* 注解 CheckAccount 的处理器
|
||||||
@ -25,7 +25,7 @@ public class CheckAccountHandler implements SaAnnotationHandlerInterface<CheckAc
|
|||||||
|
|
||||||
// 每次请求校验注解时,会执行的方法
|
// 每次请求校验注解时,会执行的方法
|
||||||
@Override
|
@Override
|
||||||
public void checkMethod(CheckAccount at, Method method) {
|
public void checkMethod(CheckAccount at, AnnotatedElement method) {
|
||||||
// 获取前端请求提交的参数
|
// 获取前端请求提交的参数
|
||||||
String name = SaHolder.getRequest().getParamNotNull("name");
|
String name = SaHolder.getRequest().getParamNotNull("name");
|
||||||
String pwd = SaHolder.getRequest().getParamNotNull("pwd");
|
String pwd = SaHolder.getRequest().getParamNotNull("pwd");
|
||||||
|
Loading…
Reference in New Issue
Block a user