Browse Source

文件上传

fanzherong_v 1 month ago
parent
commit
f16220c7cc

+ 1 - 1
snowy-plugin/snowy-plugin-dev/src/main/java/vip/xiaonuo/dev/modular/file/service/impl/DevFileServiceImpl.java

@@ -123,8 +123,8 @@ public class DevFileServiceImpl extends ServiceImpl<DevFileMapper, DevFile> impl
             String result = HttpRequest.post(devConfigApi.getValueByKey("SNOWY_FILE_PATH")).
                     form("groupName", "hnzy").
                     form("imageFile", imgFile).execute().body();
-            JSONObject json = (JSONObject) JSONObject.parse(result);
             log.info("文件上传result:"+result);
+            JSONObject json = (JSONObject) JSONObject.parse(result);
             if(StringUtils.equals(json.getString("success"),"true")){
                 map.put("imageFile",json.get("imageFile"));
             }