lrf 2 anos atrás
pai
commit
b8d0da07f0
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      app/service/apply/tryLessonApply.js

+ 2 - 2
app/service/apply/tryLessonApply.js

@@ -13,9 +13,9 @@ class TryLessonApplyService extends CrudService {
   }
   // 处理审核成功的情况
   async afterUpdate(filter, body, data) {
-    const { status } = data;
+    const { result } = data;
     // 审核不通过, 不处理
-    if (status !== '1') return data;
+    if (result !== '1') return data;
     // 通过,则需要在 lessonStudent中添加数据
     const obj = _.pick(data, [ 'school_id', 'lesson_id', 'student_id' ]);
     obj.is_try = '1';