From 78dea5b3239b1a5dbfd5fe2f99932e2d125c34ba Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 3 Nov 2022 21:14:13 +0800 Subject: [PATCH] 1 --- webapp/controller/FragmentController.class.php | 3 ++- webapp/models/Fragment.php | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/webapp/controller/FragmentController.class.php b/webapp/controller/FragmentController.class.php index bd91a57f..d41ed8ee 100644 --- a/webapp/controller/FragmentController.class.php +++ b/webapp/controller/FragmentController.class.php @@ -22,6 +22,7 @@ class FragmentController extends BaseAuthedController foreach (Fragment::getFragmentList() as $val){ array_push($fragmentList,Fragment::oldToDto($val)); } +error_log(json_encode($fragmentList)); $this->_rspData(array( 'data' => $fragmentList, )); @@ -466,4 +467,4 @@ class FragmentController extends BaseAuthedController const HERO_TYPE = 3; const GUN_TYPE = 7; -} \ No newline at end of file +} diff --git a/webapp/models/Fragment.php b/webapp/models/Fragment.php index 3e8942eb..2c223684 100644 --- a/webapp/models/Fragment.php +++ b/webapp/models/Fragment.php @@ -19,7 +19,8 @@ class Fragment extends BaseModel 'owner_address' => myself()->_getOpenId(), ); $fragmentNft = myself()->_getMarketMysql()->execQuery($sql,$whereKv); - return $fragmentNft; + + return $fragmentNft; } public static function ToDto($row){ @@ -52,4 +53,4 @@ class Fragment extends BaseModel } -} \ No newline at end of file +}