diff --git a/src/api_s2c/event/yuandan/ApiDMRec.ts b/src/api_s2c/event/yuandan/ApiDMRec.ts index db205dc..693d595 100644 --- a/src/api_s2c/event/yuandan/ApiDMRec.ts +++ b/src/api_s2c/event/yuandan/ApiDMRec.ts @@ -19,8 +19,9 @@ export default async function (call: ApiCall) { await PlayerFun.cutNeed(call, _hd.data.gameneed); } + let prize = [] if (call.req.id) { - let prize = PublicShared.randomDropGroup('1', 1, {'1': _hd.data.game}); + prize = PublicShared.randomDropGroup('1', 1, {'1': _hd.data.game}); await PlayerFun.sendPrize(call, prize); } @@ -28,7 +29,7 @@ export default async function (call: ApiCall) { $inc: {[`gameNum`]: 1}, }, {upsert: true}) - call.succ({}) + call.succ({prize}) HongDianChange.sendChangeKey(call.uid, ['yuandan']); } diff --git a/src/shared/protocols/event/yuandan/PtlDMRec.ts b/src/shared/protocols/event/yuandan/PtlDMRec.ts index 8de9bbb..c77a5e9 100644 --- a/src/shared/protocols/event/yuandan/PtlDMRec.ts +++ b/src/shared/protocols/event/yuandan/PtlDMRec.ts @@ -1,3 +1,5 @@ +import {prizeType} from "../../type"; + /** * 元旦达摩领奖 */ @@ -5,4 +7,6 @@ export type ReqDMRec = { id: 1 | 0 } -export type ResDMRec = {} +export type ResDMRec = { + prize: prizeType[] +} diff --git a/src/shared/protocols/serviceProto.ts b/src/shared/protocols/serviceProto.ts index 8e2ac50..d24faef 100644 --- a/src/shared/protocols/serviceProto.ts +++ b/src/shared/protocols/serviceProto.ts @@ -11427,7 +11427,20 @@ export const serviceProto: ServiceProto = { ] }, "event/yuandan/PtlDMRec/ResDMRec": { - "type": "Interface" + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "prize", + "type": { + "type": "Array", + "elementType": { + "type": "Reference", + "target": "type/prizeType" + } + } + } + ] }, "event/yuandan/PtlDZRec/ReqDZRec": { "type": "Interface",