This commit is contained in:
aozhiwei 2024-01-23 16:27:44 +08:00
parent 2bb5ecf8b6
commit 48ba29d409

View File

@ -300,7 +300,7 @@ class Hero extends BaseModel {
'offer_reward_state' => 0, 'offer_reward_state' => 0,
'tags' => isset($row['tags'])?$row['tags']:'', 'tags' => isset($row['tags'])?$row['tags']:'',
'is_select' => $isSelect, 'is_select' => $isSelect,
'ability' => self::abilityInfo($row, $attr)
); );
@ -325,6 +325,17 @@ class Hero extends BaseModel {
return $avatarInfos; return $avatarInfos;
} }
private static function abilityInfo($row, $attr){
$info = array(
'hp' => 0,
'attack' => 0,
'defence' => 0,
'block' => 0,
'critical' => 0
);
return $info;
}
public static function addFreeHero($heroMeta) public static function addFreeHero($heroMeta)
{ {
return self::internalAddHero( return self::internalAddHero(