diff --git a/webapp/models/FragmentPool.php b/webapp/models/FragmentPool.php index 7e4599cd..7afbb456 100644 --- a/webapp/models/FragmentPool.php +++ b/webapp/models/FragmentPool.php @@ -9,12 +9,14 @@ class FragmentPool extends BaseModel { public static function dropHero() { + $allocTime = myself()->_getNowDaySeconds() + + intval((myself()->_getNowTime() - myself()->_getNowDaySeconds()) / 3600) * 3600; $rows = SqlHelper::ormSelect (myself()->_getMysql($targetId), 't_fragment_pool', array( 'fragment_type' => 0, - 'alloc_time' => 0, + 'alloc_time' => $allocTime, ) ); if ($rows) {