|
@@ -152,11 +152,11 @@ class Trace extends Command
|
|
|
$this->line('balance-b:'.json_encode($bobBalance,true));
|
|
|
$balaceA = 0;
|
|
|
$balaceB = 0;
|
|
|
- if (isset($aliceBalance[$accountA])) {
|
|
|
- $balaceA = $aliceBalance[$accountA][0];
|
|
|
+ if (isset($aliceBalance[0])) {
|
|
|
+ $balaceA = $aliceBalance[0];
|
|
|
}
|
|
|
- if (isset($bobBalance[$accountB])) {
|
|
|
- $balaceB = $bobBalance[$accountB][0];
|
|
|
+ if (isset($bobBalance[0])) {
|
|
|
+ $balaceB = $bobBalance[0];
|
|
|
}
|
|
|
if ($balaceA == 0 && $balaceB == 0) {
|
|
|
$this->line("两个账号都没钱了,快充钱");
|