|
@@ -42,7 +42,9 @@ class PayOrderService extends CrudService {
|
|
|
const { form_id: _id, status: is_pay } = data;
|
|
|
if (pay_for === 'lessonStudent') {
|
|
|
// 因为上课产生的支付,去找lessonStudent,修改指定学生的支付状态
|
|
|
- await this.lessonStudentModel.updateOne({ _id }, { is_pay });
|
|
|
+ console.log(is_pay, _id);
|
|
|
+ const r = await this.lessonStudentModel.updateOne({ _id }, { is_pay });
|
|
|
+ console.log(r);
|
|
|
} else if (pay_for === 'tempLessonApply') {
|
|
|
// 私教课临时上课,需要到临时申请那找到相关数据,再修改lessonStudent
|
|
|
const tempApply = await this.tempLessonApplyModel.findById(_id);
|