|
@@ -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, '未找到团信息');
|