fix
This commit is contained in:
parent
b5f5fd1f04
commit
18b85d8c5d
@ -77,7 +77,7 @@ class RechargeActivity
|
|||||||
}
|
}
|
||||||
$nowTime = time();
|
$nowTime = time();
|
||||||
$todaysecs = phpcommon\getdayseconds($nowTime);
|
$todaysecs = phpcommon\getdayseconds($nowTime);
|
||||||
$daysumtarget = intval(metatable\getParameterById(RECHARGE_TARGET)) * 10;
|
$daysumtarget = intval(metatable\getParameterById(RECHARGE_TARGET)['param_value']) * 10;
|
||||||
foreach ($activityconf as $itemconf) {
|
foreach ($activityconf as $itemconf) {
|
||||||
if ($nowTime < strtotime($itemconf['time1']) || $nowTime > strtotime($itemconf['time2'])) {
|
if ($nowTime < strtotime($itemconf['time1']) || $nowTime > strtotime($itemconf['time2'])) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -919,7 +919,7 @@ class RechargeController
|
|||||||
|
|
||||||
if (!$solorow) {
|
if (!$solorow) {
|
||||||
$privilege = new classes\Privilege();
|
$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(
|
$gamelevel = array(
|
||||||
'curlevel' => 1,
|
'curlevel' => 1,
|
||||||
'curwave' => 0,
|
'curwave' => 0,
|
||||||
|
@ -87,7 +87,7 @@ class SoloController
|
|||||||
|
|
||||||
$medals = 0;
|
$medals = 0;
|
||||||
$privilege = new classes\Privilege();
|
$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();
|
$nowtime = time();
|
||||||
$lastredeem = $nowtime;
|
$lastredeem = $nowtime;
|
||||||
$level = 1;
|
$level = 1;
|
||||||
@ -137,7 +137,7 @@ class SoloController
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$medalsecs = intval(metatable\getParameterById(MEDAL_SECONDS));
|
$medalsecs = intval(metatable\getParameterById(MEDAL_SECONDS)['param_value']);
|
||||||
$lastredeem = $solorow['lastredeem'];
|
$lastredeem = $solorow['lastredeem'];
|
||||||
$medals = $solorow['medals'];
|
$medals = $solorow['medals'];
|
||||||
$lastoffline = $solorow['lastoffline'];
|
$lastoffline = $solorow['lastoffline'];
|
||||||
@ -155,7 +155,7 @@ class SoloController
|
|||||||
|
|
||||||
if ($lastoffline + 3600 <= $nowtime) {
|
if ($lastoffline + 3600 <= $nowtime) {
|
||||||
$offlinehours += ($nowtime - $lastoffline) / 3600;
|
$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) {
|
if ($offlinehours > $offlinelimit) {
|
||||||
$offlinehours = $offlinelimit;
|
$offlinehours = $offlinelimit;
|
||||||
}
|
}
|
||||||
@ -811,7 +811,7 @@ class SoloController
|
|||||||
$curmedals = $solorow['medals'] - $medalcost;
|
$curmedals = $solorow['medals'] - $medalcost;
|
||||||
$lastredeem = $solorow['lastredeem'];
|
$lastredeem = $solorow['lastredeem'];
|
||||||
$privilege = new classes\Privilege();
|
$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) {
|
if ($solorow['medals'] >= $medalsgrowlimit && $curmedals < $medalsgrowlimit) {
|
||||||
$lastredeem = time();
|
$lastredeem = time();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user