|  |  |  | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Value; | 
|---|
|  |  |  | import org.springframework.http.MediaType; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RestController; | 
|---|
|  |  |  | 
|---|
|  |  |  | private String requestVideoCommonUrl;// | 
|---|
|  |  |  | @Value("${video.ys.requestVideoCameraPreUrl: ezopen://open.ys7.com/}") | 
|---|
|  |  |  | private String requestVideoCameraPreUrl;// | 
|---|
|  |  |  | @Value("${video.ys.requestVideoCameraTailUrl: /1.live&themeId=}") | 
|---|
|  |  |  | private String requestVideoCameraTailUrl;// | 
|---|
|  |  |  | @Value("${video.ys.requestVideoCameraTail4LiveUrl: /1.live}") | 
|---|
|  |  |  | private String requestVideoCameraTail4LiveUrl;// | 
|---|
|  |  |  | @Value("${video.ys.requestVideoCameraTail4ThemeIdUrl: themeId=}") | 
|---|
|  |  |  | private String requestVideoCameraTail4ThemeIdUrl;// | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private static final String DATEPATHPARAM = "&date="; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private void setSv(VideoSv sv, YsAppSv ysSv){ | 
|---|
|  |  |  | 
|---|
|  |  |  | schema = @Schema(implementation = VoCamera.class))} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @PostMapping(path = "some", consumes = MediaType.APPLICATION_JSON_VALUE) | 
|---|
|  |  |  | @GetMapping(path = "some") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<QueryResultVo<List<VoVideo>>> some(VideoQo queryQo){ | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | 
|---|
|  |  |  | sb.append("&url="); | 
|---|
|  |  |  | sb.append(requestVideoCameraPreUrl); | 
|---|
|  |  |  | sb.append(vo.devNo); | 
|---|
|  |  |  | sb.append(requestVideoCameraTailUrl); | 
|---|
|  |  |  | vvo.videoUrl4Simple = sb.toString() + "simple"; | 
|---|
|  |  |  | vvo.videoUrl4Standard = sb.toString() + "standard" ; | 
|---|
|  |  |  | vvo.videoUrl4Security = sb.toString() + "security" ; | 
|---|
|  |  |  | sb.append(requestVideoCameraTail4LiveUrl); | 
|---|
|  |  |  | sb.append("&"); | 
|---|
|  |  |  | sb.append(requestVideoCameraTail4ThemeIdUrl); | 
|---|
|  |  |  | vvo.videoUrl4Simple = sb.toString() + "simple" + DATEPATHPARAM ; | 
|---|
|  |  |  | vvo.videoUrl4Standard = sb.toString() + "standard" + DATEPATHPARAM ; | 
|---|
|  |  |  | vvo.videoUrl4Security = sb.toString() + "security" + DATEPATHPARAM ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | StringBuilder sb1 = new StringBuilder(); | 
|---|
|  |  |  | sb1.append(requestVideoCommonUrl); | 
|---|
|  |  |  | sb1.append("?url="); | 
|---|
|  |  |  | sb1.append(requestVideoCameraPreUrl); | 
|---|
|  |  |  | sb1.append(vo.devNo); | 
|---|
|  |  |  | sb1.append(requestVideoCameraTail4LiveUrl); | 
|---|
|  |  |  | sb1.append("&accessToken="); | 
|---|
|  |  |  | sb1.append(ysApp.accessToken); | 
|---|
|  |  |  | sb1.append("&"); | 
|---|
|  |  |  | sb1.append(requestVideoCameraTail4ThemeIdUrl); | 
|---|
|  |  |  | vvo.videoUrl4PcLive = sb1.toString() + "pcLive&env=" + DATEPATHPARAM ; | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | vvo.videoUrl4Simple = "" ; | 
|---|
|  |  |  | vvo.videoUrl4Standard = "" ; | 
|---|
|  |  |  | vvo.videoUrl4Security = "" ; | 
|---|
|  |  |  | vvo.videoUrl4PcLive = "" ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | list.add(vvo) ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | QueryResultVo<List<VoVideo>> res = new QueryResultVo<>() ; | 
|---|