Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
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
方斌
51business
Commits
5c853f1a
Commit
5c853f1a
authored
Jul 27, 2020
by
任国军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getUserActImage add title&content
parent
bccfde5d
Pipeline
#26876
passed with stage
in 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
courseActImage.js
app/model/class/courseActImage.js
+2
-0
user.js
app/service/course/v5/user.js
+1
-1
No files found.
app/model/class/courseActImage.js
View file @
5c853f1a
...
...
@@ -12,7 +12,9 @@ module.exports = app => {
primaryKey
:
true
,
autoIncrement
:
true
,
},
name
:
STRING
,
title
:
STRING
,
content
:
STRING
,
selected_image
:
STRING
,
unselected_image
:
STRING
,
sort
:
INTEGER
,
...
...
app/service/course/v5/user.js
View file @
5c853f1a
...
...
@@ -604,7 +604,7 @@ class UserService extends Service {
const
{
ctx
}
=
this
;
const
userImageList
=
await
ctx
.
classModel
.
CourseUserActImage
.
findAll
({
where
:
{
user_uuid
:
ctx
.
userUuid
,
status
:
1
,
is_deleted
:
0
}
});
const
imageList
=
await
ctx
.
classModel
.
CourseActImage
.
findAll
({
where
:
{
id
:
{
$in
:
R
.
pluck
(
'image_id'
,
userImageList
)
}
},
attributes
:
[
'id'
,
'selected_image'
,
'unselected_image'
]
});
const
imageList
=
await
ctx
.
classModel
.
CourseActImage
.
findAll
({
where
:
{
id
:
{
$in
:
R
.
pluck
(
'image_id'
,
userImageList
)
}
},
attributes
:
[
'id'
,
'selected_image'
,
'unselected_image'
,
'title'
,
'content'
]
});
const
ret
=
{
list
:
imageList
,
};
...
...
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