1
This commit is contained in:
parent
f1564506bc
commit
68481fc610
@ -9,12 +9,14 @@ class FragmentPool extends BaseModel {
|
|||||||
|
|
||||||
public static function dropHero()
|
public static function dropHero()
|
||||||
{
|
{
|
||||||
|
$allocTime = myself()->_getNowDaySeconds() +
|
||||||
|
intval((myself()->_getNowTime() - myself()->_getNowDaySeconds()) / 3600) * 3600;
|
||||||
$rows = SqlHelper::ormSelect
|
$rows = SqlHelper::ormSelect
|
||||||
(myself()->_getMysql($targetId),
|
(myself()->_getMysql($targetId),
|
||||||
't_fragment_pool',
|
't_fragment_pool',
|
||||||
array(
|
array(
|
||||||
'fragment_type' => 0,
|
'fragment_type' => 0,
|
||||||
'alloc_time' => 0,
|
'alloc_time' => $allocTime,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if ($rows) {
|
if ($rows) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user