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

fix class image

parent 0cd7ed73
Pipeline #14745 passed with stage
in 34 seconds
......@@ -181,7 +181,7 @@ class InstitutionService extends Service {
const classs = await ctx.classModel.CourseClass.one({ where });
classs.dataValues.age_text = Number(classs.max_age) > 0 ? `${classs.min_age}-${classs.max_age}岁` : '';
classs.dataValues.point_tags = classs.point ? classs.point.split(',') : [];
const class_images = await ctx.classModel.CourseImages.findAll({ where: { type: 2, type_id: classs.id, is_video: 0 } });
const class_images = await ctx.classModel.CourseImages.findAll({ where: { type: 2, type_id: classs.id } });
// 处理图片
const photo_album = [];
const photo_check = []; // 去重
......
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