diff --git a/webapp/models/Chip.php b/webapp/models/Chip.php index 31b5b1d4..10d7a722 100644 --- a/webapp/models/Chip.php +++ b/webapp/models/Chip.php @@ -28,6 +28,17 @@ class Chip extends BaseModel return $chipList; } + public static function findByTokenId($tokenId) + { + $row = SqlHelper::ormSelectOne( + myself()->_getMysql($tokenId), + 't_chip', + array( + 'token_id' => $tokenId + ) + ); + } + public static function getChipList($cb) { // SqlHelper::ormSelect( @@ -333,4 +344,4 @@ class Chip extends BaseModel return $MaxStrength; } -} \ No newline at end of file +}