lrf 2 anni fa
parent
commit
1384fac854
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/service/group/group.js

+ 1 - 1
app/service/group/group.js

@@ -43,7 +43,7 @@ class GroupService extends CrudService {
    * @param {Transaction} tran 数据库事务实例
    */
   async join(customer, group_id, tran) {
-    const result = await this.checkGroupCanJoin({ id: group_id });
+    const result = await this.checkGroupCanJoin({ id: group_id, customer });
     if (!result.result) throw new BusinessError(ErrorCode.DATA_INVALID, result.msg);
     const data = await this.model.findById(group_id);
     if (!data) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到团信息');