This commit is contained in:
yangduo 2025-03-31 16:51:38 +08:00
parent 60cfb23e40
commit b5f5fd1f04
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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();
}