Merge branch 'feature/yuandan' into dev

This commit is contained in:
dy 2023-12-26 16:21:38 +08:00
commit 3d2e73e76d
4 changed files with 26 additions and 11 deletions

View File

@ -23,7 +23,7 @@ export default async function (call: ApiCall<ReqDMRec, ResDMRec>) {
await PlayerFun.cutNeed(call, _hd.data.gameneed);
}
await PlayerFun.sendPrize(call, prize || []);
await PlayerFun.sendPrize(call, prize ? [prize] : []);
await G.mongodb.cEvent(`yuandan${_hd.hdid}`).updateOne({uid: call.uid, type: `yuandan${_hd.hdid}`}, {
$inc: {[`gameNum`]: 1},

View File

@ -2,7 +2,6 @@
*
*/
export type ReqDMRec = {
id: string,
prize: { a: string, t: string, n: number } | null
}

View File

@ -4,7 +4,7 @@
*/
export type ReqZLRec = {
id: string,
dlz: string[]
dlz: { a: string, t: string, n: number }[]
}
export type ResZLRec = {

View File

@ -11403,13 +11403,6 @@ export const serviceProto: ServiceProto<ServiceType> = {
"properties": [
{
"id": 0,
"name": "id",
"type": {
"type": "String"
}
},
{
"id": 1,
"name": "prize",
"type": {
"type": "Union",
@ -11537,7 +11530,30 @@ export const serviceProto: ServiceProto<ServiceType> = {
"type": {
"type": "Array",
"elementType": {
"type": "String"
"type": "Interface",
"properties": [
{
"id": 0,
"name": "a",
"type": {
"type": "String"
}
},
{
"id": 1,
"name": "t",
"type": {
"type": "String"
}
},
{
"id": 2,
"name": "n",
"type": {
"type": "Number"
}
}
]
}
}
}