From b5f5fd1f04476eda1c645dba318ca23988101719 Mon Sep 17 00:00:00 2001 From: yangduo Date: Mon, 31 Mar 2025 16:51:38 +0800 Subject: [PATCH] fix --- webapp/controller/RechargeController.class.php | 2 +- webapp/controller/SoloController.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index 278d1f4..18c6ff5 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -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, diff --git a/webapp/controller/SoloController.class.php b/webapp/controller/SoloController.class.php index 92ba846..84f435b 100644 --- a/webapp/controller/SoloController.class.php +++ b/webapp/controller/SoloController.class.php @@ -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(); }