Merge branch 'feature/pay_for_diamond' into dev
This commit is contained in:
commit
976f4b7f36
@ -36,14 +36,14 @@ export async function playerCanReceive(call: ApiCall, callError : boolean = true
|
||||
const price = activityInfo.data['price'];
|
||||
if (!vipScore) {
|
||||
return {
|
||||
payNum: 0, remaining, result: false, activityInfo, showOffList, price
|
||||
payNum: 0, remaining, result: false, activityInfo, showOffList, price, gotAmount: 0
|
||||
};
|
||||
}
|
||||
const payNum = vipScore;
|
||||
// 玩家充值未达标或者奖池余额耗尽则不能领取
|
||||
if (payNum < price || remaining <= 0) {
|
||||
return {
|
||||
payNum, remaining, result: false, activityInfo, showOffList, price
|
||||
payNum, remaining, result: false, activityInfo, showOffList, price, gotAmount: 0
|
||||
}
|
||||
}
|
||||
// 检查玩家今日是否已经领取
|
||||
@ -56,7 +56,7 @@ export async function playerCanReceive(call: ApiCall, callError : boolean = true
|
||||
}
|
||||
}
|
||||
return {
|
||||
payNum, remaining, result: true, activityInfo, showOffList, price
|
||||
payNum, remaining, result: true, activityInfo, showOffList, price, gotAmount: 0
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -8,5 +8,5 @@ export type ResCanReceive = {
|
||||
result: boolean;
|
||||
price: number;
|
||||
showOffList: any[];
|
||||
gotAmount?: number;
|
||||
gotAmount: number;
|
||||
};
|
@ -10370,8 +10370,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
||||
"name": "gotAmount",
|
||||
"type": {
|
||||
"type": "Number"
|
||||
},
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user