30 lines
554 B
PHP
30 lines
554 B
PHP
<?php
|
|
|
|
|
|
namespace models;
|
|
|
|
use mt;
|
|
use phpcommon\SqlHelper;
|
|
class NftUpEvent extends BaseModel
|
|
{
|
|
public static function find($transId)
|
|
{
|
|
$row = SqlHelper::ormSelectOne(
|
|
myself()->_getMysql($transId),
|
|
't_nft_up_event',
|
|
array(
|
|
'trans_id' => $transId,
|
|
)
|
|
);
|
|
return $row;
|
|
}
|
|
|
|
public static function add($fieldKv){
|
|
return SqlHelper::insert(
|
|
myself()->_getMysql(''),
|
|
't_nft_up_event',
|
|
$fieldKv
|
|
);
|
|
}
|
|
|
|
} |