在做token拦截器的时候,为什么拦截器里接收不到参数
public class TokenFilter implements ActionFilter {
@SuppressWarnings("unused")
private static final Log log = Logs.get();
private ApiService apiService= Mvcs.ctx().getDefaultIoc().get(ApiService.class);
public View match(ActionContext context) {
String appId = Strings.sNull(context.getRequest().getParameter("appId"));
String token = Strings.sNull(context.getRequest().getParameter("token"));
System.out.println("appId--:" + context.getRequest().getParameter("appId"));
if (!apiService.verifyToken(appId, token)) {
return new UTF8JsonView(JsonFormat.compact()).setData(Result.error(-1,"token invalid"));
}
return null;
}
}