产品页修改

This commit is contained in:
karl 2024-08-06 18:30:23 +08:00
parent be65d373b0
commit 4ca5b458f0
1 changed files with 2 additions and 2 deletions

View File

@ -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);