lrf 2 年之前
父节点
当前提交
1384fac854
共有 1 个文件被更改,包括 1 次插入1 次删除
  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, '未找到团信息');