产品页修改

This commit is contained in:
karl 2024-08-06 18:28:49 +08:00
parent 705b0690a6
commit be65d373b0
1 changed files with 4 additions and 2 deletions

View File

@ -327,8 +327,10 @@ class IndexController extends base
$list = $list->paginate($limit)->toArray();
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'] = 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'] = '';
}
return $this->success($list);