|
@@ -461,6 +461,8 @@ class ActiveProc {
|
|
|
$mo = GameConfig::activity_promopackinfo_getItem($typeId); # 查询奖励数据
|
|
|
my_Assert(null != $mo, ErrCode::err_const_no); # 防御找不到配置
|
|
|
|
|
|
+ my_Assert(ctx()->baseInfo->cash >= explode(',', $mo->cost)[1], ErrCode::notenough_cash_msg);
|
|
|
+
|
|
|
$rewardArr = ctx()->privateState->limitTsBuy_RewardRecord;
|
|
|
$count = array_count_values(array_keys($rewardArr, $typeId))[$typeId];
|
|
|
my_Assert($count < $mo->limitNum, ErrCode::user_shop_LimitNum);
|