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