From a9c717a418d9c2b262fab6a4e5cd10e11ae21b27 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 8 Jun 2021 20:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.server.ts b/src/api.server.ts index 5489472..615fcff 100644 --- a/src/api.server.ts +++ b/src/api.server.ts @@ -133,7 +133,7 @@ export class ApiServer { this.server.addHook('preSerialization', async (request: FastifyRequest, reply: FastifyReply, payload) => { reply.header('X-Powered-By', 'PHP/5.4.16') // @ts-ignore - if (!payload.code) { + if (!payload.errcode) { payload = { errcode: 0, data: payload,