|
@@ -274,12 +274,12 @@ public class StDingProcServiceImpl implements StDingProcService {
|
|
|
List<String> paths = new ArrayList<>();
|
|
|
if (!attachmentList.isEmpty()){
|
|
|
for (Map attachment : attachmentList) {
|
|
|
- if (attachment.get("type").toString().equals("flow.body")){
|
|
|
- List<Map> attachmentUrls = (List<Map>) attachment.get("attachmentUrls");
|
|
|
- for (Map attachmentUrl : attachmentUrls) {
|
|
|
+ if (attachment.get("type").toString().equals("flow.receipt")){
|
|
|
+ List<Map> receiptUrls = (List<Map>) attachment.get("receiptUrls");
|
|
|
+ for (Map receiptUrl : receiptUrls) {
|
|
|
//附件下载到本地
|
|
|
- String url = attachmentUrl.get("url").toString();
|
|
|
- String fileName = attachmentUrl.get("fileName").toString();
|
|
|
+ String url = receiptUrl.get("url").toString();
|
|
|
+ String fileName = receiptUrl.get("key").toString();
|
|
|
String path = filePath + fileName;
|
|
|
downloadNet(url, path);
|
|
|
//添加到路径列表
|
|
@@ -292,7 +292,7 @@ public class StDingProcServiceImpl implements StDingProcService {
|
|
|
Map result = new HashMap();
|
|
|
result.put("state",state);
|
|
|
result.put("procInstId",procInstId);
|
|
|
- result.put("path",paths);
|
|
|
+ result.put("paths",paths);
|
|
|
result.put("userId",userId);
|
|
|
|
|
|
return result;
|
|
@@ -357,7 +357,7 @@ public class StDingProcServiceImpl implements StDingProcService {
|
|
|
param1.put("unionId",unionId);
|
|
|
Map body1 = new HashMap<>();
|
|
|
body1.put("protocol","HEADER_SIGNATURE");
|
|
|
- DDR_New ddrNew = (DDR_New) UtilHttp.doPost("https://api.dingtalk.com//v2.0/storage/spaces/files/" + parentDentryUuid + "/uploadInfos/query", ddClient.initTokenHeader(), param1, body1, DDR_New.class);
|
|
|
+ DDR_New ddrNew = (DDR_New) UtilHttp.doPost("https://api.dingtalk.com/v2.0/storage/spaces/files/" + parentDentryUuid + "/uploadInfos/query", ddClient.initTokenHeader(), param1, body1, DDR_New.class);
|
|
|
String uploadKey = ddrNew.getUploadKey();
|
|
|
Map headerSignatureInfo = ddrNew.getHeaderSignatureInfo();
|
|
|
Map<String,String> headers = (Map<String,String>) headerSignatureInfo.get("headers");
|