@@ -86,7 +86,7 @@ class UserService extends CrudService {
user.unionid = unionid;
await user.save();
} else {
- const stud = await this.stuModel.findOne({ id_number });
+ const stud = await this.stuModel.findOne({ id_number: { $regex: `^${id_number}$`, $options: 'i' } });
if (!stud) {
throw new BusinessError(ErrorCode.USER_NOT_EXIST);
}