Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-execute-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 718513b6
authored
Jan 08, 2024
by
Hayreal
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop触达中心-执行sop企微任务
1 parent
8fae4e06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
platform-execute/src/main/java/cn/com/glsx/execute/modules/converter/rop/RopRequestConveter.java
platform-execute/src/main/java/cn/com/glsx/execute/modules/service/sopTask/ExecuteTaskService.java
platform-execute/src/main/java/cn/com/glsx/execute/modules/converter/rop/RopRequestConveter.java
View file @
718513b
...
@@ -298,7 +298,7 @@ public class RopRequestConveter {
...
@@ -298,7 +298,7 @@ public class RopRequestConveter {
}
}
if
(
dto
.
getVideo
()
!=
null
)
{
if
(
dto
.
getVideo
()
!=
null
)
{
paramsMap
.
add
(
field
.
getName
()
+
"["
+
i
+
"].video.mediaId"
,
dto
.
getVideo
().
getMediaId
());
paramsMap
.
add
(
field
.
getName
()
+
"["
+
i
+
"].video.mediaId"
,
dto
.
getVideo
().
getMediaId
());
paramsMap
.
add
(
field
.
getName
()
+
"["
+
i
+
"].video.thumbMediaId"
,
dto
.
getVideo
().
getThumbMediaId
());
//
paramsMap.add(field.getName() + "[" + i + "].video.thumbMediaId", dto.getVideo().getThumbMediaId());
}
}
if
(
dto
.
getLink
()
!=
null
)
{
if
(
dto
.
getLink
()
!=
null
)
{
paramsMap
.
add
(
field
.
getName
()
+
"["
+
i
+
"].link.url"
,
dto
.
getLink
().
getUrl
());
paramsMap
.
add
(
field
.
getName
()
+
"["
+
i
+
"].link.url"
,
dto
.
getLink
().
getUrl
());
...
...
platform-execute/src/main/java/cn/com/glsx/execute/modules/service/sopTask/ExecuteTaskService.java
View file @
718513b
...
@@ -155,10 +155,10 @@ public class ExecuteTaskService {
...
@@ -155,10 +155,10 @@ public class ExecuteTaskService {
throw
new
AdminException
(
ResultEnum
.
UPLOAD_MEDIA_FAIL
);
throw
new
AdminException
(
ResultEnum
.
UPLOAD_MEDIA_FAIL
);
}
}
attContent
.
setMediaId
(
mediaId
);
attContent
.
setMediaId
(
mediaId
);
if
(
attType
.
equals
(
VEDIO
)){
//
if (attType.equals(VEDIO)){
String
firstOfVideoMediaId
=
workWechatService
.
uploadMediaGetMediaId
(
workWechatDTO
);
//
String firstOfVideoMediaId = workWechatService.uploadMediaGetMediaId(workWechatDTO);
attContent
.
setThumbMediaId
(
firstOfVideoMediaId
);
//
attContent.setThumbMediaId(firstOfVideoMediaId);
}
//
}
}
}
return
contentList
;
return
contentList
;
}
}
...
@@ -257,7 +257,7 @@ public class ExecuteTaskService {
...
@@ -257,7 +257,7 @@ public class ExecuteTaskService {
WorkWechatMomentAttachmentDTO
attachmentDTO
=
new
WorkWechatMomentAttachmentDTO
();
WorkWechatMomentAttachmentDTO
attachmentDTO
=
new
WorkWechatMomentAttachmentDTO
();
WorkWechatMomentAttachmentVideoDTO
video
=
new
WorkWechatMomentAttachmentVideoDTO
();
WorkWechatMomentAttachmentVideoDTO
video
=
new
WorkWechatMomentAttachmentVideoDTO
();
video
.
setMediaId
(
content
.
getMediaId
());
video
.
setMediaId
(
content
.
getMediaId
());
video
.
setThumbMediaId
(
content
.
getThumbMediaId
());
//
video.setThumbMediaId(content.getThumbMediaId());
// video.setThumbMediaId("WWME_-ZewEAAATblGy61HEuxve8lRqzXgqw");
// video.setThumbMediaId("WWME_-ZewEAAATblGy61HEuxve8lRqzXgqw");
attachmentDTO
.
setVideo
(
video
);
attachmentDTO
.
setVideo
(
video
);
attachmentDTO
.
setMsgType
(
"video"
);
attachmentDTO
.
setMsgType
(
"video"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment