34 lines
698 B
PHP
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'],
|
|
);
|
|
}
|
|
|
|
}
|