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