1
This commit is contained in:
parent
68481fc610
commit
5aeb8b691b
@ -9,20 +9,6 @@ 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' => $allocTime,
|
||||
)
|
||||
);
|
||||
if ($rows) {
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static function dropGun()
|
||||
@ -30,4 +16,19 @@ class FragmentPool extends BaseModel {
|
||||
|
||||
}
|
||||
|
||||
private static function internalGet($type)
|
||||
{
|
||||
$allocTime = myself()->_getNowDaySeconds() +
|
||||
intval((myself()->_getNowTime() - myself()->_getNowDaySeconds()) / 3600) * 3600;
|
||||
$rows = SqlHelper::ormSelect
|
||||
(myself()->_getMysql($targetId),
|
||||
't_fragment_pool',
|
||||
array(
|
||||
'fragment_type' => $type,
|
||||
'alloc_time' => $allocTime,
|
||||
)
|
||||
);
|
||||
return $rows ? $rows : array();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user