Commit 82dd5ef1 authored by shajiaiming's avatar shajiaiming

修复已知问题

parent 161f1933
......@@ -38,7 +38,7 @@ class IssueChainController extends BaseController
foreach ($chain_model as &$val) {
$val->chain_name = isset($val->chain->platform) ? $val->chain->platform : '';
$val->issue_charge = (int)$val->issue_charge;
$val->issue_charge = $val->issue_charge;
$val->charge_unit = isset($val->gas->coin_name) ? $val->gas->coin_name : '';
unset($val->download_url);
unset($val->introduce);
......
......@@ -80,15 +80,16 @@ class WalletController extends BaseController
$code = 0;
$msg = 'success';
$platform_id = Yii::$app->request->get('platform_id', '');
if(empty($platform_id)){
$msg = '参数不能为空';
$address = Yii::$app->request->get('address', '');
if(empty($platform_id) || empty($address)){
$msg = '参数错误';
$code = -1;
$data = null;
goto doEnd;
}
$service = new Chain33Service();
$address[] = '1Dqf6ADz6uCKitFhFqDY8TT93vafDADfEg';
$address[] = $address;
$execer = 'coins';
$result = $service->getBalance($address, $execer);
if (0 !== $result['code'] && null == $result['error']) {
......
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