Commit 8e6e2949 authored by 赵啸非's avatar 赵啸非

添加文件压缩

parent 018e24cf
...@@ -141,7 +141,7 @@ public class SkinBaseController extends BaseCRUDJsonBodyMappingController<SkinBa ...@@ -141,7 +141,7 @@ public class SkinBaseController extends BaseCRUDJsonBodyMappingController<SkinBa
*/ */
@PostMapping(value = "skinzip") @PostMapping(value = "skinzip")
@UnAuth @UnAuth
public String skinzip(@RequestBody SkinBaseEntity query) { public void skinzip(@RequestBody SkinBaseEntity query) {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
try { try {
Rest<byte[]> rest = this.service.compressSkinZip(query, getContext()); Rest<byte[]> rest = this.service.compressSkinZip(query, getContext());
...@@ -155,7 +155,6 @@ public class SkinBaseController extends BaseCRUDJsonBodyMappingController<SkinBa ...@@ -155,7 +155,6 @@ public class SkinBaseController extends BaseCRUDJsonBodyMappingController<SkinBa
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE); jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE);
jsonObject.put(KEY_RESULT_MSG, super.convertException(e)); jsonObject.put(KEY_RESULT_MSG, super.convertException(e));
} }
return jsonObject.toJSONString();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment