Commit 067b521b by sunxiwang

fix

1 parent 0e265a18
......@@ -101,11 +101,7 @@ public class CommonController {
* 网络资源通用下载
*/
@GetMapping("/common/download/url")
public void webResourceDownload(String url, String name, HttpServletRequest request, HttpServletResponse response) throws Exception {
response.setCharacterEncoding("utf-8");
response.setContentType("multipart/form-data");
response.setHeader("Content-Disposition",
"attachment;fileName=" + FileUtils.setFileDownloadHeader(request, name));
public void webResourceDownload(String url, HttpServletRequest request, HttpServletResponse response) throws Exception {
FileUtils.downloadFile(url, response.getOutputStream());
}
}
......@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
/**
* @author sxw
* @author danmo
* @description 企微回调通知接口
* @date 2020/11/6 17:31
**/
......
......@@ -158,12 +158,6 @@ public class WeEmpleCodeController extends BaseController {
try {
//通过员工活码id查询活码数据
List<WeEmpleCode> weEmpleCodeLsit = weEmpleCodeService.selectWeEmpleCodeByIds(idList);
//下载文件名称
String downloadFilename = "批量员工活码.zip";
response.setCharacterEncoding("utf-8");
response.setContentType("multipart/form-data");
response.setHeader("Content-Disposition",
"attachment;fileName=" + FileUtils.setFileDownloadHeader(request, downloadFilename));
//zip输出流
ZipOutputStream zos = new ZipOutputStream(response.getOutputStream());
if (CollectionUtil.isNotEmpty(weEmpleCodeLsit)){
......
......@@ -14,7 +14,7 @@ import java.io.Serializable;
/**
* 微信推送过来的消息,也是同步回复给用户的消息,xml格式
*
* @author sxw
* @author danmo
* @description
* @date 2020/11/10 10:29
**/
......
......@@ -4,7 +4,7 @@ import com.linkwechat.wecom.domain.vo.WxCpXmlMessageVO;
import org.springframework.stereotype.Service;
/**
* @author sxw
* @author danmo
* @description 企微回调工厂接口
* @date 2020/11/9 17:12
**/
......
......@@ -8,7 +8,7 @@ import org.springframework.stereotype.Service;
import java.util.Map;
/**
* @author sxw
* @author danmo
* @description 企微回调策略
* @date 2020/11/8 17:17
**/
......
......@@ -6,7 +6,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
/**
* @author sxw
* @author danmo
* @description 异步任务完成通知
* @date 2020/11/9 14:40
**/
......
......@@ -22,7 +22,7 @@ import java.util.*;
import java.util.stream.Collectors;
/**
* @author sxw
* @author danmo
* @description 企微变更事件通知处理类
* @date 2020/11/9 17:17
**/
......
......@@ -27,7 +27,7 @@ import java.util.List;
import java.util.Optional;
/**
* @author sxw
* @author danmo
* @description 外部联系人回调事件处理
* @date 2020/11/9 14:52
**/
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!