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

fix address

parent 4e7abd6e
Pipeline #27410 passed with stage
in 20 seconds
...@@ -379,7 +379,7 @@ class UserService extends Service { ...@@ -379,7 +379,7 @@ class UserService extends Service {
} }
// 获取课程详情 // 获取课程详情
const classInfo = await ctx.classModel.V5.CourseV5Class.findOne({ where: { id, status: 1, is_deleted: 0 }, attributes: [ 'id', 'institution_id', 'name', 'pay_price', 'button_type' ] }); const classInfo = await ctx.classModel.V5.CourseV5Class.findOne({ where: { id, status: 1, is_deleted: 0 }, attributes: [ 'id', 'institution_id', 'name', 'pay_price', 'button_type', 'has_address' ] });
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