From 68481fc610767e44c0e72a833dac8a735097df7c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 19 Sep 2022 17:35:58 +0800 Subject: [PATCH] 1 --- webapp/models/FragmentPool.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {