@At("tpm/pushlantent")
@Ok("json")
public Result pushCustomerLantent(String timestamp, String access_token, String appid, HttpServletRequest request, HttpServletResponse response){
Result re = new Result();
String key = "xx";
if(access_token.equals(MyUtils.md5(key+timestamp)) && appid.equals("xx")){
try {
BufferedReader br = new BufferedReader(new InputStreamReader(request.getInputStream()));
StringBuffer sb = new StringBuffer();
String temp;
while ((temp = br.readLine()) != null) {
sb.append(temp);
}
br.close();
response.setStatus(200);
}catch (Exception e) {
return null;
}
}else{
response.setStatus(401);//401认证失败
return null;
}
return re;
}
上面这样的代码 取不到流数据……