2021与蓝度共同重构项目,服务端
zhanzhiqin
2022-05-26 3ba4c2178ab3ff0f1e5abcca58c7868d666b531d
ximon-admin/src/main/java/com/sandu/ximon/admin/service/XiXunPlayerService.java
@@ -75,7 +75,9 @@
                            sourcePro -> {
                                long fileId = Long.parseLong(sourcePro.getId());
                                LedSFile file = xiXunFileService.getById(fileId);
                                sourcePro.setUrl(file.getFileUrl());
                                String fileUrl = file.getFileUrl();
                                String[] split = fileUrl.split("/");
                                sourcePro.setId(split[split.length-1]);
                                sourcePro.setMd5(file.getMd5());
                            }
                    );
@@ -199,7 +201,7 @@
//        //这里是下方的post回调地址,需要修改IP地址
        command.setNotificationURL("");
        //资源下载链接的请求头
        command.setPreDownloadURL("");
        command.setPreDownloadURL("https://ximonsmart.oss-cn-shanghai.aliyuncs.com/");
        command.setTask(taskPro);
        xixun.set_id(UUID.randomUUID().toString());
        xixun.setCommand(command);