lrf 2 anni fa
parent
commit
0c0821f197
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      app/service/matchSign.js

+ 1 - 0
app/service/matchSign.js

@@ -37,6 +37,7 @@ class MatchSignService extends CrudService {
 
   async checkFit(body) {
     const { match_id, group_id, project_id, user_id, card = '22010319950601161X' } = body;
+    await this.checkHas(body);
     const { pass, msg, gender: cardGender, age: cardAge } = this.idCodeValid(card);
     if (!pass) throw new BusinessError(ErrorCode.SERVICE_FAULT, msg);
     // 1.看 match 状态 是否为报名中