xuzhicheng2014
杰2014
2019-01-03 09:55

jfinal 如何获取第三方回调数据l

20
  • java

腾讯云视频加密转码请求处理成功后,腾讯云那边会回调我这边的服务器,回调示例如下:

POST /path/to/your/service
HOST: www.example.com

{
    "version": "4.0",
    "eventType": "ConcatComplete",
    "data": {
        "vodTaskId": "concat-1edb7eb88a599d05abe451cfc541cfbd",
        "fileInfo": [
            {
                "fileType": "m3u8",
                "status": 0,
                "message": "",
                "fileId": "14508071098244931831",
                "fileUrl": "http://125xx.vod2.myqcloud.com/vod125xx/14508071098244931831/playlist.f6.m3u8"
            },
            {
                "fileType": "mp4",
                "status": 0,
                "message": "",
                "fileId": "14508071098244929440",
                "fileUrl": "http://125xx.vod2.myqcloud.com/vod125xx/14508071098244929440/f0.mp4"
            }
        ]
    }
}

那我方法这边要怎么解析才能获取到这些数据?
我用String complete = getPara("ConcatComplete"); 放发获取到的数据都是空的,有谁了解的帮忙看下

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答