Browse Source

debug

dev_trial
巴林闲侠 3 years ago
parent
commit
8d8ec1b7d2
  1. 2
      code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js
  2. 2
      code/VideoAccess-VCMP/api/app/lib/controllers/status/alarm.js
  3. 2
      code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js

2
code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js

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

2
code/VideoAccess-VCMP/api/app/lib/controllers/status/alarm.js

@ -75,7 +75,7 @@ async function record (ctx) {
ctx.status = 204;
} catch (error) {
ctx.fs.logger.error(`path: ${ctx.path}, error: error`);
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
ctx.status = 400;
ctx.body = {
message: typeof error == 'string' ? error : undefined

2
code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js

@ -270,7 +270,7 @@ async function statusRecord (ctx) {
ctx.status = 20;
} catch (error) {
ctx.fs.logger.error(`path: ${ctx.path}, error: error`);
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
ctx.status = 400;
ctx.body = {
message: typeof error == 'string' ? error : undefined

Loading…
Cancel
Save