|
@@ -23,7 +23,7 @@ class RoomuserService extends CrudService {
|
|
|
if (has_phone) {
|
|
|
throw new BusinessError('此手机号已被注册,请更换手机号');
|
|
|
}
|
|
|
- const res = await this.ctx.service.user.create(data);
|
|
|
+ const res = await this.model.create(data);
|
|
|
if (res) {
|
|
|
const newdata = {
|
|
|
name,
|
|
@@ -34,7 +34,7 @@ class RoomuserService extends CrudService {
|
|
|
deptname: data.deptname,
|
|
|
remark: data.remark,
|
|
|
};
|
|
|
- await this.umodel.create(newdata);
|
|
|
+ await this.ctx.service.user.create(newdata);
|
|
|
}
|
|
|
return res;
|
|
|
}
|