Merge branch 'feature/yuandan' into dev
This commit is contained in:
commit
3d2e73e76d
@ -23,7 +23,7 @@ export default async function (call: ApiCall<ReqDMRec, ResDMRec>) {
|
|||||||
await PlayerFun.cutNeed(call, _hd.data.gameneed);
|
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}`}, {
|
await G.mongodb.cEvent(`yuandan${_hd.hdid}`).updateOne({uid: call.uid, type: `yuandan${_hd.hdid}`}, {
|
||||||
$inc: {[`gameNum`]: 1},
|
$inc: {[`gameNum`]: 1},
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
* 元旦达摩领奖
|
* 元旦达摩领奖
|
||||||
*/
|
*/
|
||||||
export type ReqDMRec = {
|
export type ReqDMRec = {
|
||||||
id: string,
|
|
||||||
prize: { a: string, t: string, n: number } | null
|
prize: { a: string, t: string, n: number } | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
export type ReqZLRec = {
|
export type ReqZLRec = {
|
||||||
id: string,
|
id: string,
|
||||||
dlz: string[]
|
dlz: { a: string, t: string, n: number }[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ResZLRec = {
|
export type ResZLRec = {
|
||||||
|
@ -11403,13 +11403,6 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"name": "id",
|
|
||||||
"type": {
|
|
||||||
"type": "String"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1,
|
|
||||||
"name": "prize",
|
"name": "prize",
|
||||||
"type": {
|
"type": {
|
||||||
"type": "Union",
|
"type": "Union",
|
||||||
@ -11537,8 +11530,31 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
"type": {
|
"type": {
|
||||||
"type": "Array",
|
"type": "Array",
|
||||||
"elementType": {
|
"elementType": {
|
||||||
|
"type": "Interface",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"name": "a",
|
||||||
|
"type": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"name": "t",
|
||||||
|
"type": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"name": "n",
|
||||||
|
"type": {
|
||||||
|
"type": "Number"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user