fix: canReceive 接口添加玩家领取到的数额
This commit is contained in:
parent
bcca0ebbab
commit
4a6a40403d
@ -51,7 +51,7 @@ export async function playerCanReceive(call: ApiCall, callError : boolean = true
|
|||||||
if (playerActivityInfo) {
|
if (playerActivityInfo) {
|
||||||
if (playerActivityInfo[zeroTime]) {
|
if (playerActivityInfo[zeroTime]) {
|
||||||
return {
|
return {
|
||||||
payNum, remaining, result: false, activityInfo, showOffList, price
|
payNum, remaining, result: false, activityInfo, showOffList, price, gotAmount: playerActivityInfo[zeroTime]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -63,7 +63,7 @@ export async function playerCanReceive(call: ApiCall, callError : boolean = true
|
|||||||
export default async function (call: ApiCall<ReqCanReceive, ResCanReceive>) {
|
export default async function (call: ApiCall<ReqCanReceive, ResCanReceive>) {
|
||||||
const canReceiveResult = await playerCanReceive(call);
|
const canReceiveResult = await playerCanReceive(call);
|
||||||
if (canReceiveResult) {
|
if (canReceiveResult) {
|
||||||
const { payNum, remaining, result, showOffList, price } = canReceiveResult;
|
const { payNum, remaining, result, showOffList, price, gotAmount } = canReceiveResult;
|
||||||
call.succ({ payNum, remaining, result, showOffList, price });
|
call.succ({ payNum, remaining, result, showOffList, price, gotAmount });
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -52,7 +52,7 @@ export type eventType = {
|
|||||||
kaifujingsai: ResOpenKaifujingsai;
|
kaifujingsai: ResOpenKaifujingsai;
|
||||||
zhoumolibao: ResOpenZhoumolibao & { refreshTime: number; };
|
zhoumolibao: ResOpenZhoumolibao & { refreshTime: number; };
|
||||||
payForDiamond: {
|
payForDiamond: {
|
||||||
[time: number]: number[]
|
[time: number]: number
|
||||||
}
|
}
|
||||||
} & {
|
} & {
|
||||||
[k: `${number}jijin`]: ResOpenYuedujijin;
|
[k: `${number}jijin`]: ResOpenYuedujijin;
|
||||||
|
@ -8,4 +8,5 @@ export type ResCanReceive = {
|
|||||||
result: boolean;
|
result: boolean;
|
||||||
price: number;
|
price: number;
|
||||||
showOffList: any[];
|
showOffList: any[];
|
||||||
|
gotAmount?: number;
|
||||||
};
|
};
|
@ -10159,6 +10159,14 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
"type": "Any"
|
"type": "Any"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"name": "gotAmount",
|
||||||
|
"type": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"optional": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user