Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
2105c8e0
Commit
2105c8e0
authored
Mar 10, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈
parent
a3a57abb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
QwMomentController.java
...oban/manage/web/controller/moment/QwMomentController.java
+22
-2
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/moment/QwMomentController.java
View file @
2105c8e0
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
moment
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
...
...
@@ -112,8 +113,27 @@ public class QwMomentController {
@RequestMapping
(
"material-list"
)
public
RestResponse
<
List
<
TaskMaterialVO
>>
getTaskMaterial
(
Long
planId
)
{
ServiceResponse
<
QwMomentPlanDTO
>
detailResp
=
this
.
qwMomentApiService
.
detail
(
planId
)
;
return
null
;
List
<
TaskMaterialVO
>
list
=
new
ArrayList
<>()
;
if
(
detailResp
.
isSuccess
()
&&
null
!=
detailResp
.
getResult
())
{
String
json
=
detailResp
.
getResult
().
getMediaInfo
()
;
JSONArray
arr
=
JSONArray
.
parseArray
(
json
)
;
for
(
int
i
=
0
;
i
<
arr
.
size
();
i
++)
{
JSONObject
obj
=
arr
.
getJSONObject
(
i
)
;
TaskMaterialVO
vo
=
new
TaskMaterialVO
();
vo
.
setMaterialType
(
obj
.
getInteger
(
"materialType"
));
vo
.
setImgUrl
(
obj
.
getString
(
"imgUrl"
));
if
(
vo
.
getMaterialType
()==
4
)
{
vo
.
setLink
(
obj
.
getString
(
"videoUrl"
));
}
if
(
vo
.
getMaterialType
()==
3
)
{
vo
.
setLink
(
obj
.
getString
(
"link"
));
}
vo
.
setMaterialTitle
(
obj
.
getString
(
"title"
));
vo
.
setMaterialContent
(
obj
.
getString
(
"contentText"
));
list
.
add
(
vo
);
}
}
return
RestResponse
.
successResult
(
list
)
;
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment