ソースを参照

创建用户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 {