|
@@ -19,7 +19,7 @@ class UserService extends CrudService {
|
|
|
const { name, phone, passwd, role } = data;
|
|
|
console.log(data);
|
|
|
assert(name && phone && passwd, '缺少部分信息项');
|
|
|
- if (`${role}` !== '5') { assert(/^\d{11}$/i.test(phone), 'phone无效'); }
|
|
|
+ // if (`${role}` !== '5') { assert(/^\d{11}$/i.test(phone), 'phone无效'); }
|
|
|
// const user = await this.model.findOne({ phone });
|
|
|
// if (user) {
|
|
|
// throw new BusinessError(ErrorCode.DATA_EXISTED);
|