|
|
@ -196,7 +196,7 @@ async function groupStatistic (ctx) { |
|
|
|
ctx.status = 200; |
|
|
|
ctx.body = rslt |
|
|
|
} 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 |
|
|
@ -310,7 +310,7 @@ async function groupStatisticOnline (ctx) { |
|
|
|
ctx.status = 200; |
|
|
|
ctx.body = strucRes; |
|
|
|
} 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 |
|
|
|