소스 검색

创建用户role为4的

guhongwei 3 년 전
부모
커밋
dcf36ef2bb
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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 {