This commit is contained in:
yangduo 2025-03-31 17:01:36 +08:00
parent b5f5fd1f04
commit 18b85d8c5d
3 changed files with 6 additions and 6 deletions

View File

@ -77,7 +77,7 @@ class RechargeActivity
}
$nowTime = time();
$todaysecs = phpcommon\getdayseconds($nowTime);
$daysumtarget = intval(metatable\getParameterById(RECHARGE_TARGET)) * 10;
$daysumtarget = intval(metatable\getParameterById(RECHARGE_TARGET)['param_value']) * 10;
foreach ($activityconf as $itemconf) {
if ($nowTime < strtotime($itemconf['time1']) || $nowTime > strtotime($itemconf['time2'])) {
continue;

View File

@ -919,7 +919,7 @@ class RechargeController
if (!$solorow) {
$privilege = new classes\Privilege();
$medals = intval(metatable\getParameterById(MEDAL_LIMIT)) + $privilege->getMedalLimitPlus($account_id);
$medals = intval(metatable\getParameterById(MEDAL_LIMIT)['param_value']) + $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 = intval(metatable\getParameterById(MEDAL_LIMIT)) + $privilege->getMedalLimitPlus($account_id);
$medalsgrowlimit = intval(metatable\getParameterById(MEDAL_LIMIT)['param_value']) + $privilege->getMedalLimitPlus($account_id);
$nowtime = time();
$lastredeem = $nowtime;
$level = 1;
@ -137,7 +137,7 @@ class SoloController
)
);
} else {
$medalsecs = intval(metatable\getParameterById(MEDAL_SECONDS));
$medalsecs = intval(metatable\getParameterById(MEDAL_SECONDS)['param_value']);
$lastredeem = $solorow['lastredeem'];
$medals = $solorow['medals'];
$lastoffline = $solorow['lastoffline'];
@ -155,7 +155,7 @@ class SoloController
if ($lastoffline + 3600 <= $nowtime) {
$offlinehours += ($nowtime - $lastoffline) / 3600;
$offlinelimit = metatable\getParameterById(OFFLINE_LIMIT) + $privilege->getOfflineLimitPlus($account_id);
$offlinelimit = intval(metatable\getParameterById(OFFLINE_LIMIT)['param_value']) + $privilege->getOfflineLimitPlus($account_id);
if ($offlinehours > $offlinelimit) {
$offlinehours = $offlinelimit;
}
@ -811,7 +811,7 @@ class SoloController
$curmedals = $solorow['medals'] - $medalcost;
$lastredeem = $solorow['lastredeem'];
$privilege = new classes\Privilege();
$medalsgrowlimit = intval(metatable\getParameterById(MEDAL_LIMIT)) + $privilege->getMedalLimitPlus($account_id);
$medalsgrowlimit = intval(metatable\getParameterById(MEDAL_LIMIT)['param_value']) + $privilege->getMedalLimitPlus($account_id);
if ($solorow['medals'] >= $medalsgrowlimit && $curmedals < $medalsgrowlimit) {
$lastredeem = time();
}