破冰礼包拦截前端空字符串请求

This commit is contained in:
dy 2024-01-04 15:37:09 +08:00
parent 52ab7e9979
commit 6ec6de4d56

View File

@ -6,6 +6,9 @@ import {HongDianChange} from "../../hongdian/fun";
import {PayFun} from "../../../public/pay"; import {PayFun} from "../../../public/pay";
export default async function (call: ApiCall<ReqReceive, ResReceive>) { export default async function (call: ApiCall<ReqReceive, ResReceive>) {
if (!call.req.id) return call.errorCode(-1)
// 查询活动是否有当前领奖的免费选项 // 查询活动是否有当前领奖的免费选项
let _hd = (await HuoDongFun.gethdList(call, 10))[0] let _hd = (await HuoDongFun.gethdList(call, 10))[0]
let gift = _hd?.data?.gift?.find(i => i.id == call.req.id) let gift = _hd?.data?.gift?.find(i => i.id == call.req.id)