1
This commit is contained in:
parent
74da8ff34d
commit
3a8b989fb4
@ -31,6 +31,26 @@ class FragmentPool extends BaseModel {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static function getHeroNum()
|
||||
{
|
||||
$items = self::internalGet(0);
|
||||
$num = 0;
|
||||
foreach ($items as $item) {
|
||||
$num += $item['fragment_num'];
|
||||
}
|
||||
return $num;
|
||||
}
|
||||
|
||||
public static function getGunNum()
|
||||
{
|
||||
$items = self::internalGet(1);
|
||||
$num = 0;
|
||||
foreach ($items as $item) {
|
||||
$num += $item['fragment_num'];
|
||||
}
|
||||
return $num;
|
||||
}
|
||||
|
||||
private static function internalGet($type)
|
||||
{
|
||||
$allocTime = self::getAllocTime();
|
||||
|
Loading…
x
Reference in New Issue
Block a user