Merge branch 'feature/yuandan' into dev
This commit is contained in:
commit
9ee67b5193
@ -23,7 +23,9 @@ export default async function (call: ApiCall<ReqDMRec, ResDMRec>) {
|
||||
await PlayerFun.cutNeed(call, _hd.data.gameneed);
|
||||
}
|
||||
|
||||
await PlayerFun.sendPrize(call, prize ? [prize] : []);
|
||||
if (prize){
|
||||
await PlayerFun.sendPrize(call, [prize] );
|
||||
}
|
||||
|
||||
await G.mongodb.cEvent(`yuandan${_hd.hdid}`).updateOne({uid: call.uid, type: `yuandan${_hd.hdid}`}, {
|
||||
$inc: {[`gameNum`]: 1},
|
||||
|
@ -27,10 +27,10 @@ export default async function (call: ApiCall<ReqDZRec, ResDZRec>) {
|
||||
await PlayerFun.sendPrize(call, prize);
|
||||
|
||||
await G.mongodb.cEvent(`yuandan${_hd.hdid}`).updateOne({uid: call.uid, type: `yuandan${_hd.hdid}`}, {
|
||||
$set: {[`gift.${gift.id}`]: JSON.stringify(prize)},
|
||||
$set: {[`gift.${gift.id}`]: prize},
|
||||
}, {upsert: true})
|
||||
|
||||
call.succ({})
|
||||
call.succ({[gift.id]: prize})
|
||||
|
||||
HongDianChange.sendChangeKey(call.uid, ['yuandan']);
|
||||
}
|
||||
|
@ -30,10 +30,10 @@ export default async function (call: ApiCall<ReqZLRec, ResZLRec>) {
|
||||
await PlayerFun.sendPrize(call, prize);
|
||||
|
||||
await G.mongodb.cEvent(`yuandan${_hd.hdid}`).updateOne({uid: call.uid, type: `yuandan${_hd.hdid}`}, {
|
||||
$set: {[`qiandao.${call.req.id}`]: JSON.stringify(prize)},
|
||||
$set: {[`qiandao.${call.req.id}`]: prize},
|
||||
}, {upsert: true})
|
||||
|
||||
call.succ({})
|
||||
call.succ({[call.req.id]: prize})
|
||||
|
||||
HongDianChange.sendChangeKey(call.uid, ['yuandan']);
|
||||
}
|
||||
|
@ -7,5 +7,5 @@ export type ReqDZRec = {
|
||||
}
|
||||
|
||||
export type ResDZRec = {
|
||||
|
||||
[k: string]: any;
|
||||
}
|
||||
|
@ -8,5 +8,5 @@ export type ReqZLRec = {
|
||||
}
|
||||
|
||||
export type ResZLRec = {
|
||||
|
||||
[k: string]: any;
|
||||
}
|
||||
|
@ -11497,7 +11497,13 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
||||
]
|
||||
},
|
||||
"event/yuandan/PtlDZRec/ResDZRec": {
|
||||
"type": "Interface"
|
||||
"type": "Interface",
|
||||
"indexSignature": {
|
||||
"keyType": "String",
|
||||
"type": {
|
||||
"type": "Any"
|
||||
}
|
||||
}
|
||||
},
|
||||
"event/yuandan/PtlExchange/ReqExchange": {
|
||||
"type": "Interface",
|
||||
@ -11593,7 +11599,13 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
||||
]
|
||||
},
|
||||
"event/yuandan/PtlZLRec/ResZLRec": {
|
||||
"type": "Interface"
|
||||
"type": "Interface",
|
||||
"indexSignature": {
|
||||
"keyType": "String",
|
||||
"type": {
|
||||
"type": "Any"
|
||||
}
|
||||
}
|
||||
},
|
||||
"event/yuedujijin/PtlOpen/ReqOpen": {
|
||||
"type": "Interface",
|
||||
|
Loading…
Reference in New Issue
Block a user