This commit is contained in:
aozhiwei 2024-08-09 11:15:54 +08:00
parent 6b3c2ce7d3
commit 412ed6ec93
2 changed files with 0 additions and 57 deletions

View File

@ -1,35 +0,0 @@
<?php
namespace models;
use mt;
use phpcommon\SqlHelper;
class ActivateNft extends BaseModel {
public static function find($oldTokenId)
{
$row = SqlHelper::ormSelectOne(
myself()->_getMarketMysql(),
't_activate_nft',
array(
'old_token_id' => $oldTokenId,
)
);
return $row;
}
public static function add($oldTokenId, $account, $newTokenId)
{
SqlHelper::insert(
myself()->_getMarketMysql(),
't_activate_nft',
array(
'account' => $account,
'old_token_id' => $oldTokenId,
'new_token_id' => $newTokenId,
)
);
}
}

View File

@ -1,22 +0,0 @@
<?php
namespace models;
use mt;
use phpcommon\SqlHelper;
class ActivateNftEvent extends BaseModel {
public static function find($oldTokenId)
{
$row = SqlHelper::ormSelectOne(
myself()->_getMarketMysql(),
't_activate_event',
array(
'old_token_id' => $oldTokenId,
)
);
return $row;
}
}