This commit is contained in:
aozhiwei 2024-10-09 11:14:55 +08:00
parent 81f37155a0
commit fd644c4bf5
2 changed files with 9 additions and 2 deletions

View File

@ -494,7 +494,7 @@ class ToolsController extends BaseController {
public function battleBoxDumpToday() public function battleBoxDumpToday()
{ {
$phase = getReqVal('phase', ''); $phase = getReqVal('phase', '');
BattleBoxService::dumpToday(phase); BattleBoxService::dumpToday($phase);
} }
} }

View File

@ -117,7 +117,14 @@ class BattleBoxService {
public static function dumpToday($phase) public static function dumpToday($phase)
{ {
$data = array(
'phase' => $phase,
'drop_last_time' => self::getDailyPhaseDropLastTime($phase, myself()->_getNowDaySeconds()),
'drop_curr_total' => self::getDailyPhaseDropTotalNum($phase, myself()->_getNowDaySeconds()),
'alloc_num' => self::getDailyPhaseAllocNum($phase, myself()->_getNowDaySeconds()),
'already_alloced_num' => self::getDailyPhaseAlreadyAllocNum($phase, myself()->_getNowDaySeconds()),
);
myself()->_rspData($data);
} }
private static function getDailyPhaseDropLastTime($phase, $time) private static function getDailyPhaseDropLastTime($phase, $time)