Commit c7ba1e17 authored by 任国军's avatar 任国军

courseInfo add institution_logo & images

parent 1ed9a8f5
Pipeline #21668 passed with stage
in 12 seconds
...@@ -89,7 +89,7 @@ class InstitutionSubService extends Service { ...@@ -89,7 +89,7 @@ class InstitutionSubService extends Service {
const studentWorks = await ctx.classModel.V5.CourseV5StudentWorks.findAll({ where: { class_id: id, status: 1, is_deleted: 0 }, order: [[ 'sort', 'asc' ]], attributes: [ 'id', 'name', 'sub_title', 'description', 'video_url', 'cover_image' ] }); const studentWorks = await ctx.classModel.V5.CourseV5StudentWorks.findAll({ where: { class_id: id, status: 1, is_deleted: 0 }, order: [[ 'sort', 'asc' ]], attributes: [ 'id', 'name', 'sub_title', 'description', 'video_url', 'cover_image' ] });
// 顶部图片 // 顶部图片
const imageList = await ctx.classModel.V5.CourseImage.findAll({ where: { type: 5, type_id: id, status: 'online', is_deleted: 0 }, order: [[ 'sort', 'asc' ]] }); const imageList = await ctx.classModel.V5.CourseImages.findAll({ where: { type: 5, type_id: id, status: 'online', is_deleted: 0 }, order: [[ 'sort', 'asc' ]] });
const images = []; const images = [];
for (const v of imageList) { for (const v of imageList) {
images.push({ images.push({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment