game2006api/webapp/models/NftUpEvent.php
hujiabin 57afca9c1b 1
2022-11-08 14:31:27 +08:00

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
);
}
}