🐞 fix(订单): 各种类型的订单在支付之前校验次数
This commit is contained in:
@@ -125,9 +125,9 @@ export async function makeLimitPackageReward(roleId: string, roleName: string, s
|
||||
if (!item) {
|
||||
return STATUS.ACTIVITY_NO_PRODUCT;
|
||||
}
|
||||
// if (item.countMax > 0 && item.buyCount >= item.countMax) {
|
||||
// return STATUS.ACTIVITY_MAX_COUNT;
|
||||
// }
|
||||
if (item.countMax > 0 && item.buyCount >= item.countMax) {
|
||||
return STATUS.ACTIVITY_MAX_COUNT;
|
||||
}
|
||||
|
||||
let rewardArray = stringToRewardParam(item.reward)
|
||||
let result = await addReward(roleId, roleName, sid, serverId, rewardArray, ITEM_CHANGE_REASON.BUY_LIMIT_PACKAGE);
|
||||
|
||||
Reference in New Issue
Block a user