diff --git a/webapp/controller/OutAppPlanetController.class.php b/webapp/controller/OutAppPlanetController.class.php index 8a6f324a..2bd39585 100644 --- a/webapp/controller/OutAppPlanetController.class.php +++ b/webapp/controller/OutAppPlanetController.class.php @@ -1,7 +1,14 @@ _rspErr(1, 'deciamls error'); + returna; + } + + $price = BlockChainService::formatCurrencyEx(1, $decimals); + $rspObj = BlockChainService::beNftMallTransBuyPlanet( + Transaction::BUY_OUTAPP_PLANET_ACTION_TYPE, + $address, + array( + '280001' + ), + BlockChainService::CURRENCY_USDT, + $price + ); + } } diff --git a/webapp/services/BlockChainService.php b/webapp/services/BlockChainService.php index 9cb3b7bb..57c518c9 100644 --- a/webapp/services/BlockChainService.php +++ b/webapp/services/BlockChainService.php @@ -166,7 +166,7 @@ class BlockChainService { } } - public static function beNftMallTransBuyPlanet($address, $ids, $currency, $price) + public static function beNftMallTransBuyPlanet($actionType, $address, $ids, $currency, $price) { if (!($actionType > Transaction::BUY_BEGIN_ACTION_TYPE && $actionType < Transaction::BUY_END_ACTION_TYPE)) {