diff --git a/api/app/lib/controllers/project/bind.js b/api/app/lib/controllers/project/bind.js index 9f7f035..b79d089 100644 --- a/api/app/lib/controllers/project/bind.js +++ b/api/app/lib/controllers/project/bind.js @@ -9,6 +9,10 @@ async function bindAnxin2pep (ctx) { const { userId, pepUserId } = ctx.fs.api const { bindId, name, pepProjectId, anxinProjectId = [], appId = [] } = ctx.request.body + if(name && pepProjectId){ + throw '项企项目与自定义项目名称仅可选择一项' + } + let bindId_ = bindId const now = moment() const existRes = await models.ProjectCorrelation.findOne({