|
@ -9,6 +9,10 @@ async function bindAnxin2pep (ctx) { |
|
|
const { userId, pepUserId } = ctx.fs.api |
|
|
const { userId, pepUserId } = ctx.fs.api |
|
|
const { bindId, name, pepProjectId, anxinProjectId = [], appId = [] } = ctx.request.body |
|
|
const { bindId, name, pepProjectId, anxinProjectId = [], appId = [] } = ctx.request.body |
|
|
|
|
|
|
|
|
|
|
|
if(name && pepProjectId){ |
|
|
|
|
|
throw '项企项目与自定义项目名称仅可选择一项' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let bindId_ = bindId |
|
|
let bindId_ = bindId |
|
|
const now = moment() |
|
|
const now = moment() |
|
|
const existRes = await models.ProjectCorrelation.findOne({ |
|
|
const existRes = await models.ProjectCorrelation.findOne({ |
|
|