From a68bed89219287d54564c2e09cc7c01e27456bb8 Mon Sep 17 00:00:00 2001 From: wenlele Date: Fri, 3 Nov 2023 17:59:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=9533333?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/bigScreen/index .js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/api/app/lib/controllers/bigScreen/index .js b/api/app/lib/controllers/bigScreen/index .js index 30265a8..2ce891f 100644 --- a/api/app/lib/controllers/bigScreen/index .js +++ b/api/app/lib/controllers/bigScreen/index .js @@ -76,16 +76,19 @@ const pumpInformation = async function (ctx) { const getPumpStation = async function (ctx) { try { - const { key, methodType, field } = ctx.query; - let res - if (field) { - res = await ctx.redis[methodType]("pumpStation_" + key, field) || [] - } else { - res = await ctx.redis[methodType]("pumpStation_" + key) || [] - } + console.log(ctx); + // const { key, methodType, field } = ctx.query; + + // let res + // if (field) { + // res = await ctx.redis[methodType]("pumpStation_" + key, field) || [] + // } else { + // res = await ctx.redis[methodType]("pumpStation_" + key) || [] + // } ctx.status = 200; - ctx.body = JSON.parse(res) + // ctx.body = JSON.parse(res) + ctx.body = [] } catch (error) { ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); ctx.status = 400;