From 6763b7cbf801261de75756982d10fbd818897be2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 14 Feb 2022 15:57:46 +0800 Subject: [PATCH] 1 --- webapp/controller/RestApiController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/RestApiController.class.php b/webapp/controller/RestApiController.class.php index c87319cd..6245b7ca 100644 --- a/webapp/controller/RestApiController.class.php +++ b/webapp/controller/RestApiController.class.php @@ -32,7 +32,7 @@ class RestApiController extends BaseController { return; } if ($idx == 0) { - $this->nftInfo(explode($requestUri)); + $this->nftInfo(explode('/', $requestUri)); } } } @@ -41,7 +41,7 @@ class RestApiController extends BaseController { { $tokenId = $path[4]; if (empty($tokenId)) { - myself()->_rspErr(1, 'nft found'); + myself()->_rspErr(1, 'nft not found'); return; } $nftDb = Nft::getNft($tokenId);