Compare commits

..

No commits in common. "1292156a9d7fc1de02d86a30d8ebb811eee7178f" and "95a3e9d3fb68ac18644d8144b543e2240f3cd46b" have entirely different histories.

3 changed files with 4 additions and 22 deletions

View File

@ -19,9 +19,8 @@ export default async function (call: ApiCall<ReqDMRec, ResDMRec>) {
await PlayerFun.cutNeed(call, _hd.data.gameneed); await PlayerFun.cutNeed(call, _hd.data.gameneed);
} }
let prize = []
if (call.req.id) { if (call.req.id) {
prize = PublicShared.randomDropGroup('1', 1, {'1': _hd.data.game}); let prize = PublicShared.randomDropGroup('1', 1, {'1': _hd.data.game});
await PlayerFun.sendPrize(call, prize); await PlayerFun.sendPrize(call, prize);
} }
@ -29,7 +28,7 @@ export default async function (call: ApiCall<ReqDMRec, ResDMRec>) {
$inc: {[`gameNum`]: 1}, $inc: {[`gameNum`]: 1},
}, {upsert: true}) }, {upsert: true})
call.succ({prize}) call.succ({})
HongDianChange.sendChangeKey(call.uid, ['yuandan']); HongDianChange.sendChangeKey(call.uid, ['yuandan']);
} }

View File

@ -1,5 +1,3 @@
import {prizeType} from "../../type";
/** /**
* *
*/ */
@ -7,6 +5,4 @@ export type ReqDMRec = {
id: 1 | 0 id: 1 | 0
} }
export type ResDMRec = { export type ResDMRec = {}
prize: prizeType[]
}

View File

@ -11427,20 +11427,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
] ]
}, },
"event/yuandan/PtlDMRec/ResDMRec": { "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": { "event/yuandan/PtlDZRec/ReqDZRec": {
"type": "Interface", "type": "Interface",