|
@@ -293,7 +293,7 @@ class FightProc {
|
|
|
// 复活可以扣除复活币(暂无)或者元宝,(客户端看广告复活不需要跟服务器通讯)
|
|
|
list($reliveNum) = req()->paras;
|
|
|
$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];
|
|
|
my_Assert(ctx()->base()->Consume_Cash($amt), ErrCode::notenought_yuanbao);
|
|
|
UserProc::updateUserInfo();
|