话不多少,直接上代码
public static Result finishKillActivity(){
ObjectNode on = Json.newObject();
try{
JsonNode in = request().body().asJson();//接收到的推送信息
Logger.info("收到的推送信息" + in.toString());
on.put("Success", true);
return ok(on.toString());
}catch(Exception e){
Logger.error("失败 :" + e.getMessage(), e);
return ok(on.toString());
}
}