|
@@ -20,7 +20,7 @@ class UserService extends CrudService {
|
|
|
if (!user) throw new BusinessError(ErrorCode.USER_NOT_EXIST, '用户不存在,无法进入比赛系统');
|
|
|
const { _id: user_id, type } = user;
|
|
|
const obj = { openid, user_id };
|
|
|
- if (type === '0' || type === '3') obj.type = '0';
|
|
|
+ if (type === '0' || type === '3' || type === '2') obj.type = '0';
|
|
|
else obj.type = type;
|
|
|
await this.create(obj);
|
|
|
}
|