Commit a44adcab437241f2cf13e9eac631b29ee140e271
Committed by
GitHub
Merge pull request #976 from dodu2014/wvp-28181-2.0
fix: 修复请求截图api生成文件名称的异常 #975
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/PlayController.java
| @@ -359,7 +359,7 @@ public class PlayController { | @@ -359,7 +359,7 @@ public class PlayController { | ||
| 359 | message.setKey(key); | 359 | message.setKey(key); |
| 360 | message.setId(uuid); | 360 | message.setId(uuid); |
| 361 | 361 | ||
| 362 | - String fileName = deviceId + "_" + channelId + "_" + DateUtil.getNowForUrl() + "jpg"; | 362 | + String fileName = deviceId + "_" + channelId + "_" + DateUtil.getNowForUrl() + ".jpg"; |
| 363 | playService.getSnap(deviceId, channelId, fileName, (code, msg, data) -> { | 363 | playService.getSnap(deviceId, channelId, fileName, (code, msg, data) -> { |
| 364 | if (code == InviteErrorCode.SUCCESS.getCode()) { | 364 | if (code == InviteErrorCode.SUCCESS.getCode()) { |
| 365 | message.setData(data); | 365 | message.setData(data); |