Commit debb44ad authored by shajiaiming's avatar shajiaiming

test

parent db6b650c
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace api\controllers; namespace api\controllers;
use common\service\chain33\Chain33Service;
use Yii; use Yii;
use yii\data\Pagination; use yii\data\Pagination;
use api\base\BaseController; use api\base\BaseController;
...@@ -11,6 +12,24 @@ use common\models\psources\CoinIssueChainRecord; ...@@ -11,6 +12,24 @@ use common\models\psources\CoinIssueChainRecord;
class IssueCoinController extends BaseController class IssueCoinController extends BaseController
{ {
public function actionIsManager()
{
$node = [
'scheme' => 'https',
'host' => 'jiedian1.bityuan.com',
'port' => 8801,
];
// $node = [
// 'scheme' => 'http',
// 'host' => '47.97.193.201',
// 'port' => 8901,
// ];
$chain_service = new Chain33Service($node);
$result = $chain_service->query();
echo json_encode($result);exit;
}
/** /**
* 发行申请 * 发行申请
* @return array * @return array
......
...@@ -246,6 +246,16 @@ class Chain33Service ...@@ -246,6 +246,16 @@ class Chain33Service
return $this->send($params, 'Chain33.QueryTransaction'); return $this->send($params, 'Chain33.QueryTransaction');
} }
public function query()
{
$params = [
"execer" => 'manage',
"funcName" => "GetConfigItem",
"payload" => ['data' => 'b2e242443a928e789f341087c65d779e1173ac81df8c9467097373a052b378af']
];
return $this->send($params, 'Chain33.Query');
}
public function getBalance($address, $execer) public function getBalance($address, $execer)
{ {
$params = [ $params = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment