diff --git a/tall/src/main/java/com/ccsens/tall/web/DebugController.java b/tall/src/main/java/com/ccsens/tall/web/DebugController.java index 2b292916..dd904c6f 100644 --- a/tall/src/main/java/com/ccsens/tall/web/DebugController.java +++ b/tall/src/main/java/com/ccsens/tall/web/DebugController.java @@ -1,5 +1,6 @@ package com.ccsens.tall.web; +import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.ccsens.tall.bean.dto.message.SyncMessageWithStartDto; import com.ccsens.tall.bean.vo.FileVo; @@ -123,11 +124,18 @@ public class DebugController { public JsonResponse https(HttpServletRequest request) throws Exception { String requestUrl = "http://localhost:8001/file/query"; List files = new ArrayList<>(); - files.add(1321760076465311744L); + files.add(1L); + files.add(2L); + files.add(3L); String c = RestTemplateUtil.postBody1(requestUrl,files); JsonResponse a = JSONObject.parseObject(c,JsonResponse.class); +// Object x = a.getData(); +// List filePositions = JSONArray.parseObject(a.getData().toString(),FileVo.FilePosition.class); + + List filePosition = JSONArray.parseArray(a.getData().toString(), FileVo.FilePosition.class); + filePosition.get(0).getId(); return a; } diff --git a/tall/src/main/resources/application-dev.yml b/tall/src/main/resources/application-dev.yml index b99ba8b1..c035b920 100644 --- a/tall/src/main/resources/application-dev.yml +++ b/tall/src/main/resources/application-dev.yml @@ -40,4 +40,5 @@ file: path: /home/cloud/tall/uploads/ domain: http://localhost:7030/v1.0/ imgDomain: http://localhost:7030/v1.0/uploads -filedeal: http://localhost:8001/file/query \ No newline at end of file +#filedeal: http://localhost:8001/file/query +filedeal: https://test.tall.wiki/file/query \ No newline at end of file