nftInfo(explode('/', $requestUri)); } } } private function nftInfo($path) { $tokenId = $path[4]; if (empty($tokenId)) { myself()->_rspErr(1, 'nft not found'); return; } $nftDb = Nft::getNft($tokenId); if (empty($nftDb)) { myself()->_rspErr(1, 'nft not found'); return; } $nftDto = Nft::toDto($nftDb); if (!$nftDto) { myself()->_rspErr(1, 'nft not found'); return; } myself()->_rspData($nftDto); } }