diff --git a/src/api_s2c/event/yuandan/ApiDMRec.ts b/src/api_s2c/event/yuandan/ApiDMRec.ts index f62c238..db205dc 100644 --- a/src/api_s2c/event/yuandan/ApiDMRec.ts +++ b/src/api_s2c/event/yuandan/ApiDMRec.ts @@ -20,7 +20,7 @@ export default async function (call: ApiCall) { } if (call.req.id) { - let prize = PublicShared.randomDropGroup(call.req.id, 1, _hd.data.game); + let prize = PublicShared.randomDropGroup('1', 1, {'1': _hd.data.game}); await PlayerFun.sendPrize(call, prize); } diff --git a/src/shared/protocols/event/yuandan/PtlDMRec.ts b/src/shared/protocols/event/yuandan/PtlDMRec.ts index 0f18459..8de9bbb 100644 --- a/src/shared/protocols/event/yuandan/PtlDMRec.ts +++ b/src/shared/protocols/event/yuandan/PtlDMRec.ts @@ -2,7 +2,7 @@ * 元旦达摩领奖 */ export type ReqDMRec = { - id: string | null + id: 1 | 0 } export type ResDMRec = {} diff --git a/src/shared/protocols/serviceProto.ts b/src/shared/protocols/serviceProto.ts index 17478cc..a7b174a 100644 --- a/src/shared/protocols/serviceProto.ts +++ b/src/shared/protocols/serviceProto.ts @@ -11410,14 +11410,15 @@ export const serviceProto: ServiceProto = { { "id": 0, "type": { - "type": "String" + "type": "Literal", + "literal": 1 } }, { "id": 1, "type": { "type": "Literal", - "literal": null + "literal": 0 } } ] diff --git a/src/shared/public/public.ts b/src/shared/public/public.ts index 02c3aa2..5860b9b 100644 --- a/src/shared/public/public.ts +++ b/src/shared/public/public.ts @@ -73,6 +73,7 @@ export class PublicShared { * 随机掉落组 * @param id 掉落组id * @param num 随机次数 + * @param conf */ static randomDropGroup(id: string | number, num = 1, conf = G.gc.diaoluo): prizeType[] { let prize = [];