Commit 067b521b by sunxiwang

fix

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