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)