Skip to content

Commit

Permalink
Update 下载磁盘分隔符
Browse files Browse the repository at this point in the history
  • Loading branch information
waimifeier authored Jan 3, 2024
1 parent dc0dd13 commit 554aa5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/nkk/hikvision/utils/HkUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public static String downloadFileToDisk(int userId, int channelNum, String begin
downloadData.byDrawFrame = 0;
downloadData.byStreamType = 0;

String videoPath = disk.getPath()+"\\"+ UUID.randomUUID().toString()+".mp4";
String videoPath = disk.getPath()+ File.separator + UUID.randomUUID().toString()+".mp4";
int downloadRes = hcNetSDK.NET_DVR_GetFileByTime_V40(userId, videoPath, downloadData);
if(downloadRes<0){
int errorCode = hcNetSDK.NET_DVR_GetLastError();
Expand Down

0 comments on commit 554aa5e

Please sign in to comment.