lrf402788946 4 năm trước cách đây
mục cha
commit
b463ef85db
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/user.js

+ 1 - 1
app/service/user.js

@@ -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);