|
@@ -86,59 +86,9 @@ public class TestController extends BaseController {
|
|
|
|
|
|
|
|
|
@PostMapping("/test")
|
|
|
- public ResultData test(String aaa) throws Exception {
|
|
|
+ public ResultData test(String path) throws Exception {
|
|
|
|
|
|
- SpringScheduledTaskAop bean = SpringUtil.getBean(SpringScheduledTaskAop.class);
|
|
|
- System.out.println("123");
|
|
|
-
|
|
|
-// JSONObject dataJson = new JSONObject();
|
|
|
-// dataJson.put("obj2txt", true);
|
|
|
-// dataJson.put("split_type", "SPLIT_V6");
|
|
|
-// dataJson.put("data_describe", "double spherical");
|
|
|
-// dataJson.put("skybox_type", "SKYBOX_V5");
|
|
|
-// FileUtils.writeFile(path + "/data.json", dataJson.toString());
|
|
|
-//
|
|
|
-// if("V2".equals(buildType)){
|
|
|
-// CreateObjUtil.objToTxt(path , "1");
|
|
|
-// }
|
|
|
-// if("V3".equals(buildType)){
|
|
|
-// CreateObjUtil.build3dModel(path , "1");
|
|
|
-// }
|
|
|
-
|
|
|
-// folderService.list();
|
|
|
-
|
|
|
-// long aaaaaaa = redisUtil.incr("aaaaaaa", 1);
|
|
|
-
|
|
|
-// String test = "123";
|
|
|
-// if(test.equals("123")){
|
|
|
-// throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
|
|
|
-// }
|
|
|
-
|
|
|
-// ArrayList<String> strings = new ArrayList<>();
|
|
|
-// strings.add("1.jpg");
|
|
|
-// strings.add("2.jpg");
|
|
|
-// return ResultData.ok(new UploadPanoramaVO(5, strings));
|
|
|
-
|
|
|
-// BuildSceneMqMessage buildSceneMqMessage = new BuildSceneMqMessage();
|
|
|
-// buildSceneMqMessage.setFileId("123123123123");
|
|
|
-// TLogMqWrapBean<BuildSceneMqMessage> tLogMqWrap = new TLogMqWrapBean(buildSceneMqMessage);
|
|
|
-// rocketMQProducer.syncSend("test_topic_dsx", tLogMqWrap);
|
|
|
-
|
|
|
-// ResultData<Camera> cameraById = platformGoodsClient.getCameraById(123L);
|
|
|
-// Enumeration<String> headerNames = request.getHeaderNames();
|
|
|
-// while (headerNames.hasMoreElements()){
|
|
|
-// String s = headerNames.nextElement();
|
|
|
-// log.info(s + "=" + request.getHeader(s));
|
|
|
-// }
|
|
|
-//
|
|
|
-// TLogIdGenerator bean = SpringUtil.getBean(TLogIdGenerator.class);
|
|
|
-// log.info(bean.generateTraceId());
|
|
|
-
|
|
|
- for(int i=0; i<1; i++){
|
|
|
- BuildSceneCallMessage message = new BuildSceneCallMessage();
|
|
|
- message.setFileId("hhjjS鬼地方个" + "-" + i);
|
|
|
- rabbitMqProducer.sendByWorkQueue(modelingQueueConfig.modelingPre, message);
|
|
|
- }
|
|
|
+ uploadToOssUtil.uploadBySh(path, "test_dsx/bin.tar");
|
|
|
|
|
|
return ResultData.ok();
|
|
|
|