|
@@ -64,8 +64,8 @@ class ActiveProc {
|
|
$Mo = GameConfig::activity_cashmall_getItem($typeId); # 常量数据
|
|
$Mo = GameConfig::activity_cashmall_getItem($typeId); # 常量数据
|
|
my_Assert(null != $Mo, ErrCode::err_const_no); # 防御找不到配置数据
|
|
my_Assert(null != $Mo, ErrCode::err_const_no); # 防御找不到配置数据
|
|
|
|
|
|
- my_Assert(ctx()->baseInfo->cash >= explode(',', $mo->cost)[1], ErrCode::notenough_cash_msg);
|
|
|
|
- ctx()->baseInfo->Consume_Cash(explode(',', $mo->cost)[1]);
|
|
|
|
|
|
+ my_Assert(ctx()->baseInfo->cash >= explode(',', $Mo->cost)[1], ErrCode::notenough_cash_msg);
|
|
|
|
+ ctx()->baseInfo->Consume_Cash(explode(',', $Mo->cost)[1]);
|
|
|
|
|
|
$rewardArr = ctx()->privateState->YuanbaoBuy_RewardRecord;
|
|
$rewardArr = ctx()->privateState->YuanbaoBuy_RewardRecord;
|
|
$count = array_count_values($rewardArr)[$typeId];
|
|
$count = array_count_values($rewardArr)[$typeId];
|