lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
1384fac854
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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, '未找到团信息');