Explorar o código

创建用户role为4的

guhongwei %!s(int64=3) %!d(string=hai) anos
pai
achega
dcf36ef2bb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/service/achieve_apply.js

+ 1 - 0
app/service/achieve_apply.js

@@ -29,6 +29,7 @@ class Achieve_applyService extends CrudService {
         personalData.password = '123456';
         personalData.code = 'CGPIXT';
         personalData.status = '1';
+        personalData.role = '4';
         user = await this.httpUtil.cpost('/users/personal', 'live', personalData);
         if (!user) throw new BusinessError(ErrorCode.SERVICE_FAULT, '用户创建失败!');
       } else {