娃娃机改为掉落组
This commit is contained in:
parent
0df09e0f9e
commit
7c83a8bbe8
@ -20,7 +20,7 @@ export default async function (call: ApiCall<ReqDMRec, ResDMRec>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (call.req.id) {
|
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);
|
await PlayerFun.sendPrize(call, prize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* 元旦达摩领奖
|
* 元旦达摩领奖
|
||||||
*/
|
*/
|
||||||
export type ReqDMRec = {
|
export type ReqDMRec = {
|
||||||
id: string | null
|
id: 1 | 0
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ResDMRec = {}
|
export type ResDMRec = {}
|
||||||
|
@ -11410,14 +11410,15 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
{
|
{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"type": {
|
"type": {
|
||||||
"type": "String"
|
"type": "Literal",
|
||||||
|
"literal": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"type": {
|
"type": {
|
||||||
"type": "Literal",
|
"type": "Literal",
|
||||||
"literal": null
|
"literal": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -73,6 +73,7 @@ export class PublicShared {
|
|||||||
* 随机掉落组
|
* 随机掉落组
|
||||||
* @param id 掉落组id
|
* @param id 掉落组id
|
||||||
* @param num 随机次数
|
* @param num 随机次数
|
||||||
|
* @param conf
|
||||||
*/
|
*/
|
||||||
static randomDropGroup(id: string | number, num = 1, conf = G.gc.diaoluo): prizeType[] {
|
static randomDropGroup(id: string | number, num = 1, conf = G.gc.diaoluo): prizeType[] {
|
||||||
let prize = [];
|
let prize = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user