|
|
@ -62,7 +62,7 @@ async function getCameraProject (ctx, next) { |
|
|
|
const axbindCameraRes = await ctx.app.fs.axyRequest.get('vcmp/camera/project', { query: { token, cameraId: cameraIds.join(',') } }) |
|
|
|
|
|
|
|
// 查对应创建者信息
|
|
|
|
const corUsers = await ctx.app.fs.authRequest.get(`user/${[...createUserIds].join(',')}/message`, { query: { token } }) |
|
|
|
const corUsers = await ctx.app.fs.authRequest.get(`user/${[...createUserIds].join(',') || -1}/message`, { query: { token } }) |
|
|
|
|
|
|
|
for (let { dataValues: camera } of cameraRes) { |
|
|
|
const corBindCamera = axbindCameraRes.find(b => b.cameraId == camera.id) |
|
|
@ -226,7 +226,9 @@ async function del (ctx) { |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
await ctx.app.fs.axyRequest.delete('vcmp/camera/project', { query: { token, cameraId: cameraId.join(',') } }) |
|
|
|
if (cameraId.length) { |
|
|
|
await ctx.app.fs.axyRequest.delete('vcmp/camera/project', { query: { token, cameraId: cameraId.join(',') } }) |
|
|
|
} |
|
|
|
|
|
|
|
ctx.status = 204; |
|
|
|
} catch (error) { |
|
|
|