This commit is contained in:
aozhiwei 2022-06-03 16:22:29 +08:00
parent 78831a30de
commit 2e93891577
2 changed files with 20 additions and 0 deletions

View File

@ -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(

View File

@ -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(