game2006api/webapp/models/ChipPlugin.php
hujiabin 24e610fb85 1
2022-11-11 13:52:36 +08:00

30 lines
661 B
PHP

<?php
namespace models;
use mt;
use phpcommon\SqlHelper;
class ChipPlugin extends BaseModel
{
public static function getInlayChip($tokenId){
$chips = array();
if (! $tokenId){
return $chips;
}
$row = SqlHelper::ormSelectOne(
myself()->_getMarketMysql(),
't_chip_plugin',
array(
'token_id' => $tokenId,
)
);
if ($row){
$chips = array(
$row['chip1'],$row['chip2'],$row['chip3'],$row['chip4']
);
// $chips = array_filter($temp);
}
return implode('|',$chips);
}
}