This commit is contained in:
aozhiwei 2022-09-19 17:35:58 +08:00
parent f1564506bc
commit 68481fc610

View File

@ -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) {