This commit is contained in:
aozhiwei 2022-11-03 21:14:13 +08:00
parent 8169f4219f
commit 78dea5b323
2 changed files with 5 additions and 3 deletions

View File

@ -22,6 +22,7 @@ class FragmentController extends BaseAuthedController
foreach (Fragment::getFragmentList() as $val){ foreach (Fragment::getFragmentList() as $val){
array_push($fragmentList,Fragment::oldToDto($val)); array_push($fragmentList,Fragment::oldToDto($val));
} }
error_log(json_encode($fragmentList));
$this->_rspData(array( $this->_rspData(array(
'data' => $fragmentList, 'data' => $fragmentList,
)); ));
@ -466,4 +467,4 @@ class FragmentController extends BaseAuthedController
const HERO_TYPE = 3; const HERO_TYPE = 3;
const GUN_TYPE = 7; const GUN_TYPE = 7;
} }

View File

@ -19,7 +19,8 @@ class Fragment extends BaseModel
'owner_address' => myself()->_getOpenId(), 'owner_address' => myself()->_getOpenId(),
); );
$fragmentNft = myself()->_getMarketMysql()->execQuery($sql,$whereKv); $fragmentNft = myself()->_getMarketMysql()->execQuery($sql,$whereKv);
return $fragmentNft;
return $fragmentNft;
} }
public static function ToDto($row){ public static function ToDto($row){
@ -52,4 +53,4 @@ class Fragment extends BaseModel
} }
} }