30 lines
661 B
PHP
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);
|
|
}
|
|
} |