Ver código fonte

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

ellisran 1 ano atrás
pai
commit
c1ddb23e77
1 arquivos alterados com 1 adições e 1 exclusões
  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,