|
|
@@ -62,8 +62,11 @@ public class VideoRecognitionServiceImpl implements VideoRecognitionService {
|
|
|
Map<String, String> map = videoProcessTool.processVideo(playerInfo.getVideo(), 0);
|
|
|
if (map != null) {
|
|
|
playerInfo.setImage(map.get("image"));
|
|
|
- playerInfo.setRanking(Integer.valueOf(map.get("rank").replace("第", "")));
|
|
|
playerInfo.setLiveTime(map.get("参赛时间"));
|
|
|
+ try {
|
|
|
+ playerInfo.setRanking(Integer.valueOf(map.get("rank").replace("第", "")));
|
|
|
+ } catch (Exception ignore) {
|
|
|
+ }
|
|
|
try {
|
|
|
playerInfo.setScore(Float.parseFloat(map.get("评分")));
|
|
|
} catch (Exception ignore) {
|