产品页修改
This commit is contained in:
parent
be65d373b0
commit
4ca5b458f0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue