Commit 68881b36 authored by 任国军's avatar 任国军

fix bugs

parent b3bc1c96
Pipeline #14455 passed with stage
in 6 seconds
......@@ -180,8 +180,9 @@ class InstitutionService extends Service {
const where = { id: class_id };
let 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(';') : [];
classs.dataValues.point_tags = classs.point ? classs.point.split(',') : [];
classs.dataValues.photo_album = classs.image ? classs.image.split(';') : [];
classs.dataValues.class_period = classs.class_period > 0 ? classs.class_period : '';
return classs;
}
......
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