1
This commit is contained in:
parent
78831a30de
commit
2e93891577
@ -80,6 +80,16 @@ class Gun extends BaseModel {
|
||||
return !empty($gunList) ? $gunList[0] : null;
|
||||
}
|
||||
|
||||
public static function getRawPveCegUpLimit()
|
||||
{
|
||||
$cegUpLimit = 0;
|
||||
Hero::getGunList(function ($row) use(&$cegUpLimit) {
|
||||
$gunDto = self::toDto($row);
|
||||
$cegUpLimit += $gunDto['raw_pve_ceg_uplimit'];
|
||||
});
|
||||
return $cegUpLimit;
|
||||
}
|
||||
|
||||
public static function getGunList($cb)
|
||||
{
|
||||
SqlHelper::ormSelect(
|
||||
|
@ -68,6 +68,16 @@ class Hero extends BaseModel {
|
||||
return !empty($heroList) ? $heroList[0] : null;
|
||||
}
|
||||
|
||||
public static function getRawPveCegUpLimit()
|
||||
{
|
||||
$cegUpLimit = 0;
|
||||
Hero::getHeroList(function ($row) use(&$cegUpLimit) {
|
||||
$heroDto = self::toDto($row);
|
||||
$cegUpLimit += $heroDto['raw_pve_ceg_uplimit'];
|
||||
});
|
||||
return $cegUpLimit;
|
||||
}
|
||||
|
||||
public static function getHeroList($cb)
|
||||
{
|
||||
SqlHelper::ormSelect(
|
||||
|
Loading…
x
Reference in New Issue
Block a user