Commit cae4f3ff authored by shajiaiming's avatar shajiaiming

fix

parent d7781e95
...@@ -14,24 +14,6 @@ use common\models\psources\CoinIssueChainRecord; ...@@ -14,24 +14,6 @@ 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;
}
public function actionValidate() public function actionValidate()
{ {
...@@ -203,7 +185,7 @@ class IssueCoinController extends BaseController ...@@ -203,7 +185,7 @@ class IssueCoinController extends BaseController
$query = CoinIssueCoin::find() $query = CoinIssueCoin::find()
->select('id, name, symbol, type, total, create_time, status, chain_id') ->select('id, name, symbol, type, total, create_time, status, chain_id')
->where(['owner' => $address]) ->where(['owner' => $address])
->andWhere(['in', 'status', [CoinIssueCoin::STATUS_PEDDING, CoinIssueCoin::STATUS_CANCEL_SUCCESS, CoinIssueCoin::STATUS_CANCEL_FAILED, CoinIssueCoin::STATUS_ALLOW, CoinIssueCoin::STATUS_REFUSE, CoinIssueCoin::STATUS_SUCCESS, CoinIssueCoin::STATUS_FAILED]]) ->andWhere(['in', 'status', [CoinIssueCoin::STATUS_PEDDING, CoinIssueCoin::STATUS_CANCEL_SUCCESS, CoinIssueCoin::STATUS_CANCEL_FAILED, CoinIssueCoin::STATUS_CONFIRM, CoinIssueCoin::STATUS_ALLOW, CoinIssueCoin::STATUS_REFUSE, CoinIssueCoin::STATUS_SUCCESS, CoinIssueCoin::STATUS_FAILED]])
->orderBy('create_time desc'); ->orderBy('create_time desc');
$countQuery = clone $query; $countQuery = clone $query;
......
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