Commit 28c846cc authored by shajiaiming's avatar shajiaiming

fix

parent 9ddbde28
......@@ -129,10 +129,14 @@ class WalletController extends BaseController
}
}
if ('BTY' == strtoupper($symbol)) {
$switch = true;
}
if (false == $switch) {
$result = $service->getTokenBalance($address, $execer, $symbol);
} else {
$result = $service->getBalance($address, $execer);
$result = $service->getBalance($address, $execer = '');
}
if (0 !== $result['code']) {
......
......@@ -256,7 +256,7 @@ class Chain33Service
return $this->send($params, 'Chain33.Query');
}
public function getBalance($address, $execer)
public function getBalance($address, $execer = "")
{
$params = [
'addresses' => $address,
......
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