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

test

parent a8055205
Pipeline #27889 passed with stage
in 10 seconds
...@@ -693,7 +693,7 @@ class UserService extends Service { ...@@ -693,7 +693,7 @@ class UserService extends Service {
status: ctx.isEmpty(institutionInfo.pay_column) && classInfo.has_address === 0 ? 1 : 0, status: ctx.isEmpty(institutionInfo.pay_column) && classInfo.has_address === 0 ? 1 : 0,
}; };
if (order.status === 1) { if (order.status === 1) {
// 判断是否兑换码 // 判断是否需要兑换码
let redeem = ''; let redeem = '';
if (actInfo.type === 2) { if (actInfo.type === 2) {
const redeemCode = await ctx.classModel.V5.CourseRedeemCode.findOne({ where: { class_id: actInfo.class_id, status: 1, is_used: 0, is_deleted: 0 }, raw: true }); const redeemCode = await ctx.classModel.V5.CourseRedeemCode.findOne({ where: { class_id: actInfo.class_id, status: 1, is_used: 0, is_deleted: 0 }, raw: true });
......
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