From 6ec6de4d568de257a1a6dfdcc6603ca2744ff44b Mon Sep 17 00:00:00 2001 From: dy Date: Thu, 4 Jan 2024 15:37:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A0=B4=E5=86=B0=E7=A4=BC=E5=8C=85=E6=8B=A6?= =?UTF-8?q?=E6=88=AA=E5=89=8D=E7=AB=AF=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/event/pobinglibao/ApiReceive.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api_s2c/event/pobinglibao/ApiReceive.ts b/src/api_s2c/event/pobinglibao/ApiReceive.ts index 1ca3b81..848c49b 100644 --- a/src/api_s2c/event/pobinglibao/ApiReceive.ts +++ b/src/api_s2c/event/pobinglibao/ApiReceive.ts @@ -6,6 +6,9 @@ import {HongDianChange} from "../../hongdian/fun"; import {PayFun} from "../../../public/pay"; export default async function (call: ApiCall) { + + if (!call.req.id) return call.errorCode(-1) + // 查询活动是否有当前领奖的免费选项 let _hd = (await HuoDongFun.gethdList(call, 10))[0] let gift = _hd?.data?.gift?.find(i => i.id == call.req.id)