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

add button_sub_type

parent 1d0f824d
Pipeline #27274 passed with stage
in 57 seconds
...@@ -28,6 +28,7 @@ module.exports = app => { ...@@ -28,6 +28,7 @@ module.exports = app => {
button_style: INTEGER, button_style: INTEGER,
button_text: STRING, button_text: STRING,
button_type: INTEGER, button_type: INTEGER,
button_sub_type: INTEGER,
button_sub_text: STRING, button_sub_text: STRING,
button_url: STRING, button_url: STRING,
button_pay_text: STRING, button_pay_text: STRING,
......
...@@ -111,7 +111,7 @@ class InstitutionSubService extends Service { ...@@ -111,7 +111,7 @@ class InstitutionSubService extends Service {
// 课程详情 // 课程详情
async getClassInfo(id) { async getClassInfo(id) {
const { ctx } = this; const { ctx } = this;
const attributes = [ 'id', 'institution_id', 'name', 'logo', 'age', 'price', 'price_type', 'mode', 'time', 'class_amount', 'multi_classes', 'cycle', 'description', 'button_style', 'button_text', 'button_type', 'button_sub_text', 'button_url', 'button_pay_text', 'top_price', 'pay_price', 'sub_title', 'pay_count', 'sort', 'pay_url', 'has_address' ]; const attributes = [ 'id', 'institution_id', 'name', 'logo', 'age', 'price', 'price_type', 'mode', 'time', 'class_amount', 'multi_classes', 'cycle', 'description', 'button_style', 'button_text', 'button_type', 'button_sub_text', 'button_url', 'button_pay_text', 'top_price', 'pay_price', 'sub_title', 'pay_count', 'sort', 'pay_url', 'has_address', 'button_sub_type' ];
const classInfo = await ctx.classModel.V5.CourseV5Class.findOne({ where: { id, status: 1, is_deleted: 0 }, attributes, raw: true }); const classInfo = await ctx.classModel.V5.CourseV5Class.findOne({ where: { id, status: 1, is_deleted: 0 }, attributes, raw: true });
if (ctx.isEmpty(classInfo)) { if (ctx.isEmpty(classInfo)) {
ctx.failed('数据不存在'); ctx.failed('数据不存在');
......
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