소스 검색

批量导入账号限制最大账号数bug修复

ellisran 1 년 전
부모
커밋
c1ddb23e77
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/project_account.js

+ 1 - 1
app/service/project_account.js

@@ -476,7 +476,7 @@ module.exports = app => {
                 u.company_id = companyInfo.id;
                 u.account_group = companyInfo.type;
                 if (this._.findIndex(paList, { account: u.account }) === -1 && this._.findIndex(insertData, { account: u.account }) === -1) {
-                    if (maxUser === 0 || userTotal <= maxUser) {
+                    if (maxUser === 0 || userTotal < maxUser) {
                         insertData.push({
                             project_id: pid,
                             account: u.account,