Kirin 3 年之前
父节点
当前提交
34778bbeb4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/controller/PublicController.php

+ 1 - 1
app/api/controller/PublicController.php

@@ -126,7 +126,7 @@ class PublicController
                 'rank' => $res['miner']['qualityAdjPowerRank'],
                 'ratio' => bcdiv($res['miner']['qualityAdjPower'], $res['miner']['networkQualityAdjPower'], 8),
                 'weightedBlocksMined' => $res['miner']['weightedBlocksMined'],
-                'totalRewards' => bcdiv($res['totalRewards'], '1000000000000000000', 4),
+                'totalRewards' => bcdiv($res['miner']['totalRewards'], '1000000000000000000', 4),
                 'piece' => bcdiv(bcdiv($res['miner']['qualityAdjPower'], bcpow(1024, 3), 8), $res['sectors']['live'], 0)
             ];