버그 수정
This commit is contained in:
@@ -41,13 +41,14 @@ class che_포상 extends Command\NationCommand{
|
||||
$isGold = $this->arg['isGold'];
|
||||
$amount = $this->arg['amount'];
|
||||
$destGeneralID = $this->arg['destGeneralID'];
|
||||
if(is_float($amount)){
|
||||
$amount = Util::toInt($amount);
|
||||
}
|
||||
else if(!is_int($amount)){
|
||||
if(!is_numeric($amount)){
|
||||
return false;
|
||||
}
|
||||
$amount = Util::round($amount, -2);
|
||||
$amount = Util::valueFit($amount, 100, GameConst::$maxResourceActionAmount);
|
||||
if($amount <= 0){
|
||||
return false;
|
||||
}
|
||||
if(!is_bool($isGold)){
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user