|
@@ -90,13 +90,14 @@ class Trace extends Command
|
|
|
$zip->add($this->save_dir, true);
|
|
|
$zip->close();
|
|
|
$md5 = md5_file($zipPath);
|
|
|
- $this->line('------ZIP包MD5码:' . $md5 . ',地址:' . $zipPath);
|
|
|
+ $this->line('------ZIP包MD5码:' . $md5);
|
|
|
|
|
|
$zipUrl = Storage::put('/trace/' . date('Ym'), file_get_contents($zipPath));
|
|
|
$data = [
|
|
|
'md5' => $md5,
|
|
|
'zip' => $zipUrl
|
|
|
];
|
|
|
+ $this->line('zip地址:' . $zipUrl);
|
|
|
$this->line('------开始上链:' . $md5);
|
|
|
$row = $this->transcation($md5);
|
|
|
$this->line('------上链结果:' . var_export($row, true));
|
|
@@ -147,6 +148,8 @@ class Trace extends Command
|
|
|
$eos->setWalletInfo($walletName, $walletPassword);
|
|
|
$aliceBalance = $api->getCurrencyBalance('eosio.token', $accountA, $coinCode);
|
|
|
$bobBalance = $api->getCurrencyBalance('eosio.token', $accountB, $coinCode);
|
|
|
+ $this->line('balance-a:'.var_export($aliceBalance,true));
|
|
|
+ $this->line('balance-b:'.var_export($bobBalance,true));
|
|
|
$balaceA = 0;
|
|
|
$balaceB = 0;
|
|
|
if (isset($aliceBalance[$accountA])) {
|