|
@ -327,7 +327,7 @@ async function getCmaeraUniqueConfig (ctx) { |
|
|
ctx.status = 200; |
|
|
ctx.status = 200; |
|
|
ctx.body = cameraRes[0] |
|
|
ctx.body = cameraRes[0] |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: error`); |
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); |
|
|
ctx.status = 400; |
|
|
ctx.status = 400; |
|
|
ctx.body = { |
|
|
ctx.body = { |
|
|
message: typeof error == 'string' ? error : undefined |
|
|
message: typeof error == 'string' ? error : undefined |
|
|