Commit 2f55f84e authored by shajiaiming's avatar shajiaiming

fix

parent 8f1d88b7
...@@ -91,7 +91,7 @@ class WalletController extends BaseController ...@@ -91,7 +91,7 @@ class WalletController extends BaseController
$node = Yii::$app->params['chain_nodes']['STO']; $node = Yii::$app->params['chain_nodes']['STO'];
$service = new Chain33Service($node); $service = new Chain33Service($node);
$address[] = $token; $address[] = $token;
$execer = 'coins'; $execer = 'user.p.daitaochain.token';
$result = $service->getBalance($address, $execer); $result = $service->getBalance($address, $execer);
if (0 !== $result['code']) { if (0 !== $result['code']) {
$msg = $result['msg']; $msg = $result['msg'];
......
...@@ -7,13 +7,21 @@ use yii\db\Expression; ...@@ -7,13 +7,21 @@ use yii\db\Expression;
class CoinIssueCoin extends CommonActiveRecord class CoinIssueCoin extends CommonActiveRecord
{ {
const STATUS_SUCCESS = 1; //发行成功
const STATUS_FAIL = 0; //发行失败
const UN_PAY = 0; const UN_PAY = 0;
const ALLOW_PAY = 1; const ALLOW_PAY = 1;
const SUCCESS_PAY =2; const SUCCESS_PAY =2;
const STATUS_PEDDING = 0; //待用户确认
const STATUS_CANCEL = 1; //用户点击撤消后的状态
const STATUS_CANCEL_SUCCESS = 2; //撤消成功
const STATUS_CANCEL_FAILED = 3; //撤消失败
const STATUS_CONFIRM = 4; //用户点击确认后的状态
const STATUS_ALLOW = 5; //开启人工审核,管理员后台点击通过后的状态 (未开启人工审核,跳过该状态)
const STATUS_REFUSE = 6; //开启人工审核,管理员后台点击拒绝后的状态 (未开启人工审核,跳过该状态)
const STATUS_SUCCESS = 7; //发行成功
const STATUS_FAILED = 8; //发行失败
const UN_AUDIT = 0; //允许发行(管理员) const UN_AUDIT = 0; //允许发行(管理员)
const ALLOW_ISSUE = 1; //允许发行(管理员) const ALLOW_ISSUE = 1; //允许发行(管理员)
const REFUSE_ISSUE = 2; //拒绝发行 const REFUSE_ISSUE = 2; //拒绝发行
......
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