game2006api/webapp/models/SeasonCard.php
aozhiwei d3d9561ca9 1
2021-12-03 11:21:59 +08:00

34 lines
617 B
PHP

<?php
namespace models;
require_once('mt/Item.php');
use mt;
use phpcommon\SqlHelper;
class SeasonCard extends BaseModel {
public static function find($itemId)
{
$row = SqlHelper::ormSelectOne(
myself()->_getSelfMysql(),
't_bag',
array(
'account_id' => myself()->_getAccountId(),
'item_id' => $itemId,
)
);
return $row;
}
public static function toDto($row)
{
return array(
'item_id' => $row['item_id'],
'item_num' => $row['item_num'],
);
}
}