This commit is contained in:
yangduo 2025-04-01 22:51:40 +08:00
parent d2cd7f34f6
commit bf8775797e

View File

@ -368,14 +368,21 @@ class PassController{
$season = array();
$season_meta_table = require('../res/season@season.php');
$number = 0;
for ($i = 1; $i <= count($season_meta_table); $i++) {
$season = $this->getSeason($i);
if (time() >= strtotime($season['open_time']) && time() <= strtotime($season['end_time'])) {
$number = $i;
break;
}
}
$item_multiply = $this->getExplode($season[$name]);
if ($number == 0) {
phpcommon\sendError(ERR_USER_BASE + 3, '没有该奖励 3');
return;
}
$item_multiply = $this->getExplode($$season_meta_table[$number][$name]);
$items = $item_multiply[$passid - 1];
$reward = array();