1
This commit is contained in:
parent
525dd13f10
commit
2fe65d4cec
@ -64,7 +64,7 @@ class HangController{
|
||||
$p_num = $this->getParameter(GOLD);
|
||||
$p_time_limit = $this->getParameter(TIME_LIMIT);
|
||||
$num = floor((time() - $row['hang_time']) / 5 * $p_num['param_value']);
|
||||
if ($num >= $p_time_limit['param_value']) {
|
||||
if ((time() - $row['hang_time']) >= $p_time_limit['param_value']) {
|
||||
$num = floor($p_time_limit['param_value'] / 5 * $p_num['param_value']);
|
||||
}
|
||||
if ($weight != 0) {
|
||||
@ -133,7 +133,7 @@ class HangController{
|
||||
$p_num = $this->getParameter(GOLD);
|
||||
$p_time_limit = $this->getParameter(TIME_LIMIT);
|
||||
$num = floor((time() - $row['hang_time']) / 5 * $p_num['param_value']);
|
||||
if ($num >= $p_time_limit['param_value']) {
|
||||
if ((time() - $row['hang_time']) >= $p_time_limit['param_value']) {
|
||||
$num = floor($p_time_limit['param_value'] / 5 * $p_num['param_value']);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user