diff --git a/service/app/admin/controller/IndexController.php b/service/app/admin/controller/IndexController.php index 49e832e0..a7a45f31 100644 --- a/service/app/admin/controller/IndexController.php +++ b/service/app/admin/controller/IndexController.php @@ -329,8 +329,8 @@ class IndexController extends base foreach ($list['data'] as &$item) { // $item['refund_rate'] = bcmul(bcdiv((string)$item['refund'], (string)$item['all'], 4), '100', 2); // $item['asset_rate'] = bcmul(bcdiv((string)$item['asset'], (string)$item['all'], 4), '100', 2); - $item['refund_rate'] = ''; - $item['asset_rate'] = ''; + $item['refund_rate'] = number_format(($item['refund']/$item['all'])*100,2); + $item['asset_rate'] = number_format(($item['asset']/$item['all'])*100,2);; } return $this->success($list);