xielin 5 年之前
父节点
当前提交
6a98597c17
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/Console/Commands/Trace.php

+ 4 - 1
app/Console/Commands/Trace.php

@@ -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])) {