From 7614d7ff24854ede54d1d35cefae57dc75565b0e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 4 Nov 2022 14:03:20 +0800 Subject: [PATCH] 1 --- webapp/models/Chip.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 +}