|
@@ -70,12 +70,12 @@ class FightProc {
|
|
$costTili = glc()->sweep_cost_tili;
|
|
$costTili = glc()->sweep_cost_tili;
|
|
$curTili = ctx()->baseInfo->CurTili();
|
|
$curTili = ctx()->baseInfo->CurTili();
|
|
my_Assert($curTili >= $costTili, ErrCode::notenough_tili);
|
|
my_Assert($curTili >= $costTili, ErrCode::notenough_tili);
|
|
-
|
|
|
|
- if(ctx()->privateState->honourCardShop_ts == 0){
|
|
|
|
|
|
+
|
|
|
|
+ if (ctx()->privateState->honourCardShop_ts == 0) {
|
|
$max = glc()->sweepMaxNum;
|
|
$max = glc()->sweepMaxNum;
|
|
my_Assert(ctx()->gates->fightSweepNum < $max, ErrCode::gate_SweepMaxNum_limit);
|
|
my_Assert(ctx()->gates->fightSweepNum < $max, ErrCode::gate_SweepMaxNum_limit);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
ctx()->gates->fightSweepNum += 1;
|
|
ctx()->gates->fightSweepNum += 1;
|
|
ctx()->baseInfo->Consume_tili($costTili);
|
|
ctx()->baseInfo->Consume_tili($costTili);
|
|
$prizeArr = array();
|
|
$prizeArr = array();
|
|
@@ -107,8 +107,7 @@ class FightProc {
|
|
$goodsStr = $tuzhiArr[$index] . ',' . 1;
|
|
$goodsStr = $tuzhiArr[$index] . ',' . 1;
|
|
$prizeArr[] = $goodsStr;
|
|
$prizeArr[] = $goodsStr;
|
|
StoreProc::AddMultiItemInStore($goodsStr);
|
|
StoreProc::AddMultiItemInStore($goodsStr);
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if ($wavesMo->rewardGem != null) {
|
|
if ($wavesMo->rewardGem != null) {
|
|
@@ -298,7 +297,7 @@ class FightProc {
|
|
list($reliveNum) = req()->paras;
|
|
list($reliveNum) = req()->paras;
|
|
$arr = explode(',', glc()->Relive_cost);
|
|
$arr = explode(',', glc()->Relive_cost);
|
|
my_Assert($reliveNum >= 0 && $reliveNum <= Count($arr), ErrCode::paras_err); # 参数范围>0
|
|
my_Assert($reliveNum >= 0 && $reliveNum <= Count($arr), ErrCode::paras_err); # 参数范围>0
|
|
- $amt = $arr[$reliveNum - 1];
|
|
|
|
|
|
+ $amt = $arr[$reliveNum];
|
|
my_Assert(ctx()->base()->Consume_Cash($amt), ErrCode::notenought_yuanbao);
|
|
my_Assert(ctx()->base()->Consume_Cash($amt), ErrCode::notenought_yuanbao);
|
|
UserProc::updateUserInfo();
|
|
UserProc::updateUserInfo();
|
|
return Resp::ok();
|
|
return Resp::ok();
|