game2005api/webapp/models/GunTalent.php
aozhiwei 44ccdc20a0 1
2021-11-26 19:54:59 +08:00

34 lines
698 B
PHP

<?php
namespace models;
use mt;
use phpcommon\SqlHelper;
class GunTalent extends BaseModel {
public static function find($typeId, $talentId)
{
$row = SqlHelper::ormSelectOne(
myself()->_getSelfMysql(),
't_gun_talent',
array(
'account_id' => myself()->_getAccountId(),
'type_id' => $typeId,
'type_id' => $row['type_id'],
)
);
return $row;
}
public static function toDto($row)
{
return array(
'type_id' => $row['type_id'],
'talent_id' => $row['talent_id'],
'talent_lv' => $row['talent_lv'],
);
}
}