Commit 4f92ecbd authored by 任国军's avatar 任国军

change home class limit 3->6

parent 28d70a48
Pipeline #26668 passed with stage
in 14 seconds
......@@ -539,19 +539,19 @@ class InstitutionSubService extends Service {
// 精品课
classList = await ctx.classModel.V5.CourseV5Class.findAll({ where: { id: { $in: classIds }, price_type: 3, status: 1, is_deleted: 0 }, attributes, order: [[ 'sort', 'asc' ], [ 'id', 'desc' ]], offset: 0, limit: 3, raw: true });
classList = await ctx.classModel.V5.CourseV5Class.findAll({ where: { id: { $in: classIds }, price_type: 3, status: 1, is_deleted: 0 }, attributes, order: [[ 'sort', 'asc' ], [ 'id', 'desc' ]], offset: 0, limit: 6, raw: true });
classList = await this.formatClassList(classList);
for (const i in classList) {
classList[i].institution_icon = '';
}
results.push({
title: '精品课',
value: 3,
value: 6,
class: classList,
});
// 低价课
classList = await ctx.classModel.V5.CourseV5Class.findAll({ where: { id: { $in: classIds }, price_type: 2, status: 1, is_deleted: 0 }, attributes, order: [[ 'sort', 'asc' ], [ 'id', 'desc' ]], offset: 0, limit: 3, raw: true });
classList = await ctx.classModel.V5.CourseV5Class.findAll({ where: { id: { $in: classIds }, price_type: 2, status: 1, is_deleted: 0 }, attributes, order: [[ 'sort', 'asc' ], [ 'id', 'desc' ]], offset: 0, limit: 6, raw: true });
classList = await this.formatClassList(classList);
for (const i in classList) {
classList[i].institution_icon = '';
......@@ -563,7 +563,7 @@ class InstitutionSubService extends Service {
});
// 体验课
classList = await ctx.classModel.V5.CourseV5Class.findAll({ where: { id: { $in: classIds }, price_type: 1, status: 1, is_deleted: 0 }, attributes, order: [[ 'sort', 'asc' ], [ 'id', 'desc' ]], offset: 0, limit: 3, raw: true });
classList = await ctx.classModel.V5.CourseV5Class.findAll({ where: { id: { $in: classIds }, price_type: 1, status: 1, is_deleted: 0 }, attributes, order: [[ 'sort', 'asc' ], [ 'id', 'desc' ]], offset: 0, limit: 6, raw: true });
classList = await this.formatClassList(classList);
for (const i in classList) {
classList[i].institution_icon = '';
......
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