1
This commit is contained in:
parent
894a6397e1
commit
43d164a31a
@ -9,6 +9,7 @@ require_once('models/Bag.php');
|
|||||||
require_once('models/Hero.php');
|
require_once('models/Hero.php');
|
||||||
require_once('models/Gun.php');
|
require_once('models/Gun.php');
|
||||||
require_once('models/Nft.php');
|
require_once('models/Nft.php');
|
||||||
|
require_once('models/Transaction.php');
|
||||||
|
|
||||||
require_once('services/AwardService.php');
|
require_once('services/AwardService.php');
|
||||||
require_once('services/PropertyChgService.php');
|
require_once('services/PropertyChgService.php');
|
||||||
@ -20,12 +21,27 @@ use models\Bag;
|
|||||||
use models\Hero;
|
use models\Hero;
|
||||||
use models\Gun;
|
use models\Gun;
|
||||||
use models\Nft;
|
use models\Nft;
|
||||||
|
use models\Transaction;
|
||||||
|
|
||||||
class BlockChainController extends BaseAuthedController {
|
class BlockChainController extends BaseAuthedController {
|
||||||
|
|
||||||
public function getTransactionList()
|
public function getTransactionList()
|
||||||
{
|
{
|
||||||
|
$trans = array();
|
||||||
|
foreach (Transaction::all() as $tran) {
|
||||||
|
array_push(
|
||||||
|
$trans,
|
||||||
|
array(
|
||||||
|
'item_id' => $tran['item_id'],
|
||||||
|
'action' => Transaction::getActionDesc($tran['action']),
|
||||||
|
'status' => Transaction::getActionDesc($tran['status']),
|
||||||
|
'time' => $tran['createtime'],
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
$this->_rspData(array(
|
||||||
|
'transactions' => $trans
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function active721Nft()
|
public function active721Nft()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user