产品页修改
This commit is contained in:
parent
705b0690a6
commit
be65d373b0
|
@ -327,8 +327,10 @@ class IndexController extends base
|
||||||
$list = $list->paginate($limit)->toArray();
|
$list = $list->paginate($limit)->toArray();
|
||||||
|
|
||||||
foreach ($list['data'] as &$item) {
|
foreach ($list['data'] as &$item) {
|
||||||
$item['refund_rate'] = bcmul(bcdiv((string)$item['refund'], (string)$item['all'], 4), '100', 2);
|
// $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['asset_rate'] = bcmul(bcdiv((string)$item['asset'], (string)$item['all'], 4), '100', 2);
|
||||||
|
$item['refund_rate'] = '';
|
||||||
|
$item['asset_rate'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->success($list);
|
return $this->success($list);
|
||||||
|
|
Loading…
Reference in New Issue