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);
}
let prize = []
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);
}
@ -29,7 +28,7 @@ export default async function (call: ApiCall<ReqDMRec, ResDMRec>) {
$inc: {[`gameNum`]: 1},
}, {upsert: true})
call.succ({prize})
call.succ({})
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
}
export type ResDMRec = {
prize: prizeType[]
}
export type ResDMRec = {}

View File

@ -11427,20 +11427,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
]
},
"event/yuandan/PtlDMRec/ResDMRec": {
"type": "Interface",
"properties": [
{
"id": 0,
"name": "prize",
"type": {
"type": "Array",
"elementType": {
"type": "Reference",
"target": "type/prizeType"
}
}
}
]
"type": "Interface"
},
"event/yuandan/PtlDZRec/ReqDZRec": {
"type": "Interface",