mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-11-30 02:48:17 +08:00
commit
7dc7880e5e
@ -175,6 +175,9 @@ public class CertificateController extends BaseController {
|
||||
public String export(String id) {
|
||||
try {
|
||||
CertModel item = certService.getItem(id);
|
||||
if (null == item) {
|
||||
return JsonMessage.getString(400, "导出失败");
|
||||
}
|
||||
String parent = FileUtil.file(item.getCert()).getParent();
|
||||
File zip = ZipUtil.zip(parent);
|
||||
ServletUtil.write(getResponse(), zip);
|
||||
|
Loading…
Reference in New Issue
Block a user