fix
This commit is contained in:
parent
60cfb23e40
commit
b5f5fd1f04
@ -919,7 +919,7 @@ class RechargeController
|
||||
|
||||
if (!$solorow) {
|
||||
$privilege = new classes\Privilege();
|
||||
$medals = metatable\getParameterById(MEDAL_LIMIT) + $privilege->getMedalLimitPlus($account_id);
|
||||
$medals = intval(metatable\getParameterById(MEDAL_LIMIT)) + $privilege->getMedalLimitPlus($account_id);
|
||||
$gamelevel = array(
|
||||
'curlevel' => 1,
|
||||
'curwave' => 0,
|
||||
|
@ -87,7 +87,7 @@ class SoloController
|
||||
|
||||
$medals = 0;
|
||||
$privilege = new classes\Privilege();
|
||||
$medalsgrowlimit = metatable\getParameterById(MEDAL_LIMIT) + $privilege->getMedalLimitPlus($account_id);
|
||||
$medalsgrowlimit = intval(metatable\getParameterById(MEDAL_LIMIT)) + $privilege->getMedalLimitPlus($account_id);
|
||||
$nowtime = time();
|
||||
$lastredeem = $nowtime;
|
||||
$level = 1;
|
||||
@ -811,7 +811,7 @@ class SoloController
|
||||
$curmedals = $solorow['medals'] - $medalcost;
|
||||
$lastredeem = $solorow['lastredeem'];
|
||||
$privilege = new classes\Privilege();
|
||||
$medalsgrowlimit = metatable\getParameterById(MEDAL_LIMIT) + $privilege->getMedalLimitPlus($account_id);
|
||||
$medalsgrowlimit = intval(metatable\getParameterById(MEDAL_LIMIT)) + $privilege->getMedalLimitPlus($account_id);
|
||||
if ($solorow['medals'] >= $medalsgrowlimit && $curmedals < $medalsgrowlimit) {
|
||||
$lastredeem = time();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user